
(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 36 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y1) (* c y0)))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0))))))
(t_4
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= y3 -1.22e+237)
(* z (+ (* k (- (* b y0) (* i y1))) (* y3 t_1)))
(if (<= y3 -2.55e+126)
t_3
(if (<= y3 -4.6e-75)
t_4
(if (<= y3 -1.75e-154)
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4)))))
(if (<= y3 -4e-217)
t_4
(if (<= y3 -4.2e-236)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= y3 6.9e-276)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* y5 (- (* y k) (* t j))) (* c (- (* x y) (* z t))))))
(if (<= y3 7.8e+99)
t_3
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j (- (* y0 y5) (* y1 y4))) (* z 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 * y1) - (c * y0);
double t_2 = (c * y0) - (a * y1);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -1.22e+237) {
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * t_1));
} else if (y3 <= -2.55e+126) {
tmp = t_3;
} else if (y3 <= -4.6e-75) {
tmp = t_4;
} else if (y3 <= -1.75e-154) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -4e-217) {
tmp = t_4;
} else if (y3 <= -4.2e-236) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y3 <= 6.9e-276) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))));
} else if (y3 <= 7.8e+99) {
tmp = t_3;
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * 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) :: tmp
t_1 = (a * y1) - (c * y0)
t_2 = (c * y0) - (a * y1)
t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (y3 <= (-1.22d+237)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * t_1))
else if (y3 <= (-2.55d+126)) then
tmp = t_3
else if (y3 <= (-4.6d-75)) then
tmp = t_4
else if (y3 <= (-1.75d-154)) then
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
else if (y3 <= (-4d-217)) then
tmp = t_4
else if (y3 <= (-4.2d-236)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (y3 <= 6.9d-276) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))))
else if (y3 <= 7.8d+99) then
tmp = t_3
else
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * 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 * y1) - (c * y0);
double t_2 = (c * y0) - (a * y1);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -1.22e+237) {
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * t_1));
} else if (y3 <= -2.55e+126) {
tmp = t_3;
} else if (y3 <= -4.6e-75) {
tmp = t_4;
} else if (y3 <= -1.75e-154) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -4e-217) {
tmp = t_4;
} else if (y3 <= -4.2e-236) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y3 <= 6.9e-276) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))));
} else if (y3 <= 7.8e+99) {
tmp = t_3;
} else {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * 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 * y1) - (c * y0) t_2 = (c * y0) - (a * y1) t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if y3 <= -1.22e+237: tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * t_1)) elif y3 <= -2.55e+126: tmp = t_3 elif y3 <= -4.6e-75: tmp = t_4 elif y3 <= -1.75e-154: tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) elif y3 <= -4e-217: tmp = t_4 elif y3 <= -4.2e-236: tmp = x * (a * ((y * b) - (y1 * y2))) elif y3 <= 6.9e-276: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))) elif y3 <= 7.8e+99: tmp = t_3 else: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * t_1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y1) - Float64(c * y0)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = 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))))) t_4 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (y3 <= -1.22e+237) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(y3 * t_1))); elseif (y3 <= -2.55e+126) tmp = t_3; elseif (y3 <= -4.6e-75) tmp = t_4; elseif (y3 <= -1.75e-154) tmp = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= -4e-217) tmp = t_4; elseif (y3 <= -4.2e-236) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (y3 <= 6.9e-276) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * Float64(Float64(x * y) - Float64(z * t)))))); elseif (y3 <= 7.8e+99) tmp = t_3; else tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * 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 * y1) - (c * y0); t_2 = (c * y0) - (a * y1); t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (y3 <= -1.22e+237) tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * t_1)); elseif (y3 <= -2.55e+126) tmp = t_3; elseif (y3 <= -4.6e-75) tmp = t_4; elseif (y3 <= -1.75e-154) tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); elseif (y3 <= -4e-217) tmp = t_4; elseif (y3 <= -4.2e-236) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (y3 <= 6.9e-276) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))); elseif (y3 <= 7.8e+99) tmp = t_3; else tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * t_1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.22e+237], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.55e+126], t$95$3, If[LessEqual[y3, -4.6e-75], t$95$4, If[LessEqual[y3, -1.75e-154], N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4e-217], t$95$4, If[LessEqual[y3, -4.2e-236], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.9e-276], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.8e+99], t$95$3, N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y1 - c \cdot y0\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := 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)\\
t_4 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y3 \leq -1.22 \cdot 10^{+237}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + y3 \cdot t_1\right)\\
\mathbf{elif}\;y3 \leq -2.55 \cdot 10^{+126}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq -4.6 \cdot 10^{-75}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -1.75 \cdot 10^{-154}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -4 \cdot 10^{-217}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -4.2 \cdot 10^{-236}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 6.9 \cdot 10^{-276}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 7.8 \cdot 10^{+99}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot t_1\right)\right)\\
\end{array}
\end{array}
if y3 < -1.2200000000000001e237Initial program 23.5%
Simplified23.5%
Taylor expanded in z around -inf 58.8%
mul-1-neg58.8%
associate--l+58.8%
Simplified58.8%
Taylor expanded in t around 0 76.5%
if -1.2200000000000001e237 < y3 < -2.5500000000000001e126 or 6.89999999999999985e-276 < y3 < 7.79999999999999989e99Initial program 35.6%
Simplified35.6%
Taylor expanded in x around inf 57.8%
if -2.5500000000000001e126 < y3 < -4.6e-75 or -1.75e-154 < y3 < -4.00000000000000033e-217Initial program 30.8%
Simplified30.8%
Taylor expanded in y4 around inf 57.2%
if -4.6e-75 < y3 < -1.75e-154Initial program 49.8%
Simplified49.8%
Taylor expanded in y2 around inf 56.8%
if -4.00000000000000033e-217 < y3 < -4.19999999999999958e-236Initial program 25.0%
Simplified25.0%
Taylor expanded in a around inf 50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in x around -inf 75.1%
mul-1-neg75.1%
associate-*r*75.1%
distribute-lft-out--75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -4.19999999999999958e-236 < y3 < 6.89999999999999985e-276Initial program 38.9%
Simplified38.9%
Taylor expanded in i around -inf 54.9%
if 7.79999999999999989e99 < y3 Initial program 31.9%
Simplified31.9%
Taylor expanded in y3 around -inf 73.5%
Final simplification62.1%
(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
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) t_1))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY) t_2 (* y0 (* b t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * k) - (x * j);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * t_1)) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y0 * (b * t_1);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (z * k) - (x * j);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * t_1)) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y0 * (b * t_1);
}
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 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * t_1)) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y0 * (b * 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(z * k) - Float64(x * j)) 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(b * y0) - Float64(i * y1)) * t_1)) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + 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(y0 * Float64(b * 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 = (z * k) - (x * j); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * t_1)) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y0 * (b * 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[(z * k), $MachinePrecision] - N[(x * j), $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[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $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[(y0 * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot k - x \cdot j\\
t_2 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot t_1\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + \left(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\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}:\\
\;\;\;\;y0 \cdot \left(b \cdot t_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 95.7%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Simplified8.4%
Taylor expanded in y0 around inf 40.2%
mul-1-neg40.2%
Simplified40.2%
Taylor expanded in b around inf 42.1%
Final simplification60.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_1))
(* j (- (* i y1) (* b y0))))))
(t_3 (* y3 (- (* a y1) (* c y0))))
(t_4 (- (* t j) (* y k)))
(t_5
(*
y4
(+
(+ (* b t_4) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= y3 -5.2e+234)
(* z (+ (* k (- (* b y0) (* i y1))) t_3))
(if (<= y3 -1.3e+123)
t_2
(if (<= y3 -1.15e-75)
t_5
(if (<= y3 -1.9e-154)
(*
y2
(+
(+ (* x t_1) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4)))))
(if (<= y3 -5e-217)
t_5
(if (<= y3 -1.52e-245)
t_2
(if (<= y3 1.72e-279)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_4))
(* y0 (- (* z k) (* x j)))))
(if (<= y3 3.8e+99)
t_2
(if (<= y3 6.5e+215)
(* y (* y4 (- (* c y3) (* b k))))
(* z t_3))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
double t_3 = y3 * ((a * y1) - (c * y0));
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -5.2e+234) {
tmp = z * ((k * ((b * y0) - (i * y1))) + t_3);
} else if (y3 <= -1.3e+123) {
tmp = t_2;
} else if (y3 <= -1.15e-75) {
tmp = t_5;
} else if (y3 <= -1.9e-154) {
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -5e-217) {
tmp = t_5;
} else if (y3 <= -1.52e-245) {
tmp = t_2;
} else if (y3 <= 1.72e-279) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y3 <= 3.8e+99) {
tmp = t_2;
} else if (y3 <= 6.5e+215) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else {
tmp = z * t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (c * y0) - (a * y1)
t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))))
t_3 = y3 * ((a * y1) - (c * y0))
t_4 = (t * j) - (y * k)
t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (y3 <= (-5.2d+234)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + t_3)
else if (y3 <= (-1.3d+123)) then
tmp = t_2
else if (y3 <= (-1.15d-75)) then
tmp = t_5
else if (y3 <= (-1.9d-154)) then
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
else if (y3 <= (-5d-217)) then
tmp = t_5
else if (y3 <= (-1.52d-245)) then
tmp = t_2
else if (y3 <= 1.72d-279) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))))
else if (y3 <= 3.8d+99) then
tmp = t_2
else if (y3 <= 6.5d+215) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else
tmp = z * t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0))));
double t_3 = y3 * ((a * y1) - (c * y0));
double t_4 = (t * j) - (y * k);
double t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -5.2e+234) {
tmp = z * ((k * ((b * y0) - (i * y1))) + t_3);
} else if (y3 <= -1.3e+123) {
tmp = t_2;
} else if (y3 <= -1.15e-75) {
tmp = t_5;
} else if (y3 <= -1.9e-154) {
tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -5e-217) {
tmp = t_5;
} else if (y3 <= -1.52e-245) {
tmp = t_2;
} else if (y3 <= 1.72e-279) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y3 <= 3.8e+99) {
tmp = t_2;
} else if (y3 <= 6.5e+215) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else {
tmp = z * t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (c * y0) - (a * y1) t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))) t_3 = y3 * ((a * y1) - (c * y0)) t_4 = (t * j) - (y * k) t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if y3 <= -5.2e+234: tmp = z * ((k * ((b * y0) - (i * y1))) + t_3) elif y3 <= -1.3e+123: tmp = t_2 elif y3 <= -1.15e-75: tmp = t_5 elif y3 <= -1.9e-154: tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) elif y3 <= -5e-217: tmp = t_5 elif y3 <= -1.52e-245: tmp = t_2 elif y3 <= 1.72e-279: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))) elif y3 <= 3.8e+99: tmp = t_2 elif y3 <= 6.5e+215: tmp = y * (y4 * ((c * y3) - (b * k))) else: tmp = z * t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_1)) + Float64(j * Float64(Float64(i * y1) - Float64(b * y0))))) t_3 = Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(y4 * Float64(Float64(Float64(b * t_4) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (y3 <= -5.2e+234) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + t_3)); elseif (y3 <= -1.3e+123) tmp = t_2; elseif (y3 <= -1.15e-75) tmp = t_5; elseif (y3 <= -1.9e-154) tmp = Float64(y2 * Float64(Float64(Float64(x * t_1) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= -5e-217) tmp = t_5; elseif (y3 <= -1.52e-245) tmp = t_2; elseif (y3 <= 1.72e-279) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_4)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y3 <= 3.8e+99) tmp = t_2; elseif (y3 <= 6.5e+215) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); else tmp = Float64(z * t_3); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (c * y0) - (a * y1); t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * t_1)) + (j * ((i * y1) - (b * y0)))); t_3 = y3 * ((a * y1) - (c * y0)); t_4 = (t * j) - (y * k); t_5 = y4 * (((b * t_4) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (y3 <= -5.2e+234) tmp = z * ((k * ((b * y0) - (i * y1))) + t_3); elseif (y3 <= -1.3e+123) tmp = t_2; elseif (y3 <= -1.15e-75) tmp = t_5; elseif (y3 <= -1.9e-154) tmp = y2 * (((x * t_1) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); elseif (y3 <= -5e-217) tmp = t_5; elseif (y3 <= -1.52e-245) tmp = t_2; elseif (y3 <= 1.72e-279) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))); elseif (y3 <= 3.8e+99) tmp = t_2; elseif (y3 <= 6.5e+215) tmp = y * (y4 * ((c * y3) - (b * k))); else tmp = z * t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * N[(N[(N[(b * t$95$4), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -5.2e+234], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.3e+123], t$95$2, If[LessEqual[y3, -1.15e-75], t$95$5, If[LessEqual[y3, -1.9e-154], N[(y2 * N[(N[(N[(x * t$95$1), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5e-217], t$95$5, If[LessEqual[y3, -1.52e-245], t$95$2, If[LessEqual[y3, 1.72e-279], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.8e+99], t$95$2, If[LessEqual[y3, 6.5e+215], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t$95$3), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t_1\right) + j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_3 := y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\\
t_4 := t \cdot j - y \cdot k\\
t_5 := y4 \cdot \left(\left(b \cdot t_4 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y3 \leq -5.2 \cdot 10^{+234}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t_3\right)\\
\mathbf{elif}\;y3 \leq -1.3 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-75}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y3 \leq -1.9 \cdot 10^{-154}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_1 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -5 \cdot 10^{-217}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y3 \leq -1.52 \cdot 10^{-245}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq 1.72 \cdot 10^{-279}:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_4\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y3 \leq 3.8 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq 6.5 \cdot 10^{+215}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot t_3\\
\end{array}
\end{array}
if y3 < -5.2000000000000003e234Initial program 23.5%
Simplified23.5%
Taylor expanded in z around -inf 58.8%
mul-1-neg58.8%
associate--l+58.8%
Simplified58.8%
Taylor expanded in t around 0 76.5%
if -5.2000000000000003e234 < y3 < -1.29999999999999993e123 or -5.0000000000000002e-217 < y3 < -1.5199999999999999e-245 or 1.7199999999999999e-279 < y3 < 3.8e99Initial program 35.7%
Simplified35.7%
Taylor expanded in x around inf 58.5%
if -1.29999999999999993e123 < y3 < -1.15e-75 or -1.90000000000000005e-154 < y3 < -5.0000000000000002e-217Initial program 30.8%
Simplified30.8%
Taylor expanded in y4 around inf 57.2%
if -1.15e-75 < y3 < -1.90000000000000005e-154Initial program 49.8%
Simplified49.8%
Taylor expanded in y2 around inf 56.8%
if -1.5199999999999999e-245 < y3 < 1.7199999999999999e-279Initial program 30.6%
Simplified30.6%
Taylor expanded in b around inf 51.5%
if 3.8e99 < y3 < 6.4999999999999997e215Initial program 39.3%
Simplified39.3%
Taylor expanded in y around inf 43.5%
associate--l+43.5%
mul-1-neg43.5%
mul-1-neg43.5%
Simplified43.5%
Taylor expanded in y4 around inf 61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
if 6.4999999999999997e215 < y3 Initial program 21.1%
Simplified21.1%
Taylor expanded in z around -inf 63.2%
mul-1-neg63.2%
associate--l+63.2%
Simplified63.2%
Taylor expanded in t around 0 68.5%
Taylor expanded in y3 around inf 76.7%
Final simplification60.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y3 (- (* a y1) (* c y0))))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
x
(+
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* i y1) (* b y0))))))
(t_4
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= y3 -1.1e+229)
(* z (+ (* k (- (* b y0) (* i y1))) t_1))
(if (<= y3 -5.5e+126)
t_3
(if (<= y3 -4.8e-76)
t_4
(if (<= y3 -1.8e-154)
(*
y2
(+
(+ (* x t_2) (* k (- (* y1 y4) (* y0 y5))))
(* t (- (* a y5) (* c y4)))))
(if (<= y3 -1.66e-214)
t_4
(if (<= y3 -1.3e-237)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= y3 3.35e-273)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* y5 (- (* y k) (* t j))) (* c (- (* x y) (* z t))))))
(if (<= y3 4.4e+98)
t_3
(if (<= y3 7e+217)
(* y (* y4 (- (* c y3) (* b k))))
(* z 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 = y3 * ((a * y1) - (c * y0));
double t_2 = (c * y0) - (a * y1);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -1.1e+229) {
tmp = z * ((k * ((b * y0) - (i * y1))) + t_1);
} else if (y3 <= -5.5e+126) {
tmp = t_3;
} else if (y3 <= -4.8e-76) {
tmp = t_4;
} else if (y3 <= -1.8e-154) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -1.66e-214) {
tmp = t_4;
} else if (y3 <= -1.3e-237) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y3 <= 3.35e-273) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))));
} else if (y3 <= 4.4e+98) {
tmp = t_3;
} else if (y3 <= 7e+217) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else {
tmp = z * 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) :: tmp
t_1 = y3 * ((a * y1) - (c * y0))
t_2 = (c * y0) - (a * y1)
t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))))
t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (y3 <= (-1.1d+229)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + t_1)
else if (y3 <= (-5.5d+126)) then
tmp = t_3
else if (y3 <= (-4.8d-76)) then
tmp = t_4
else if (y3 <= (-1.8d-154)) then
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))))
else if (y3 <= (-1.66d-214)) then
tmp = t_4
else if (y3 <= (-1.3d-237)) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (y3 <= 3.35d-273) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))))
else if (y3 <= 4.4d+98) then
tmp = t_3
else if (y3 <= 7d+217) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else
tmp = z * 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 = y3 * ((a * y1) - (c * y0));
double t_2 = (c * y0) - (a * y1);
double t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0))));
double t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (y3 <= -1.1e+229) {
tmp = z * ((k * ((b * y0) - (i * y1))) + t_1);
} else if (y3 <= -5.5e+126) {
tmp = t_3;
} else if (y3 <= -4.8e-76) {
tmp = t_4;
} else if (y3 <= -1.8e-154) {
tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= -1.66e-214) {
tmp = t_4;
} else if (y3 <= -1.3e-237) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (y3 <= 3.35e-273) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))));
} else if (y3 <= 4.4e+98) {
tmp = t_3;
} else if (y3 <= 7e+217) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else {
tmp = z * t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y3 * ((a * y1) - (c * y0)) t_2 = (c * y0) - (a * y1) t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))) t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if y3 <= -1.1e+229: tmp = z * ((k * ((b * y0) - (i * y1))) + t_1) elif y3 <= -5.5e+126: tmp = t_3 elif y3 <= -4.8e-76: tmp = t_4 elif y3 <= -1.8e-154: tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))) elif y3 <= -1.66e-214: tmp = t_4 elif y3 <= -1.3e-237: tmp = x * (a * ((y * b) - (y1 * y2))) elif y3 <= 3.35e-273: tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))) elif y3 <= 4.4e+98: tmp = t_3 elif y3 <= 7e+217: tmp = y * (y4 * ((c * y3) - (b * k))) else: tmp = z * 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(y3 * Float64(Float64(a * y1) - Float64(c * y0))) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = 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))))) t_4 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (y3 <= -1.1e+229) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + t_1)); elseif (y3 <= -5.5e+126) tmp = t_3; elseif (y3 <= -4.8e-76) tmp = t_4; elseif (y3 <= -1.8e-154) tmp = Float64(y2 * Float64(Float64(Float64(x * t_2) + Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= -1.66e-214) tmp = t_4; elseif (y3 <= -1.3e-237) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (y3 <= 3.35e-273) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * Float64(Float64(x * y) - Float64(z * t)))))); elseif (y3 <= 4.4e+98) tmp = t_3; elseif (y3 <= 7e+217) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); else tmp = Float64(z * 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 = y3 * ((a * y1) - (c * y0)); t_2 = (c * y0) - (a * y1); t_3 = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) + (j * ((i * y1) - (b * y0)))); t_4 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (y3 <= -1.1e+229) tmp = z * ((k * ((b * y0) - (i * y1))) + t_1); elseif (y3 <= -5.5e+126) tmp = t_3; elseif (y3 <= -4.8e-76) tmp = t_4; elseif (y3 <= -1.8e-154) tmp = y2 * (((x * t_2) + (k * ((y1 * y4) - (y0 * y5)))) + (t * ((a * y5) - (c * y4)))); elseif (y3 <= -1.66e-214) tmp = t_4; elseif (y3 <= -1.3e-237) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (y3 <= 3.35e-273) tmp = i * ((y1 * ((x * j) - (z * k))) + ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))); elseif (y3 <= 4.4e+98) tmp = t_3; elseif (y3 <= 7e+217) tmp = y * (y4 * ((c * y3) - (b * k))); else tmp = z * 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[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.1e+229], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.5e+126], t$95$3, If[LessEqual[y3, -4.8e-76], t$95$4, If[LessEqual[y3, -1.8e-154], N[(y2 * N[(N[(N[(x * t$95$2), $MachinePrecision] + N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.66e-214], t$95$4, If[LessEqual[y3, -1.3e-237], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.35e-273], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.4e+98], t$95$3, If[LessEqual[y3, 7e+217], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t$95$1), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := 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)\\
t_4 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;y3 \leq -1.1 \cdot 10^{+229}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + t_1\right)\\
\mathbf{elif}\;y3 \leq -5.5 \cdot 10^{+126}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq -4.8 \cdot 10^{-76}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -1.8 \cdot 10^{-154}:\\
\;\;\;\;y2 \cdot \left(\left(x \cdot t_2 + k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -1.66 \cdot 10^{-214}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y3 \leq -1.3 \cdot 10^{-237}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 3.35 \cdot 10^{-273}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 4.4 \cdot 10^{+98}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq 7 \cdot 10^{+217}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot t_1\\
\end{array}
\end{array}
if y3 < -1.10000000000000002e229Initial program 23.5%
Simplified23.5%
Taylor expanded in z around -inf 58.8%
mul-1-neg58.8%
associate--l+58.8%
Simplified58.8%
Taylor expanded in t around 0 76.5%
if -1.10000000000000002e229 < y3 < -5.5000000000000004e126 or 3.34999999999999991e-273 < y3 < 4.40000000000000017e98Initial program 35.6%
Simplified35.6%
Taylor expanded in x around inf 57.8%
if -5.5000000000000004e126 < y3 < -4.80000000000000026e-76 or -1.8000000000000001e-154 < y3 < -1.6600000000000001e-214Initial program 30.8%
Simplified30.8%
Taylor expanded in y4 around inf 57.2%
if -4.80000000000000026e-76 < y3 < -1.8000000000000001e-154Initial program 49.8%
Simplified49.8%
Taylor expanded in y2 around inf 56.8%
if -1.6600000000000001e-214 < y3 < -1.3000000000000001e-237Initial program 25.0%
Simplified25.0%
Taylor expanded in a around inf 50.1%
mul-1-neg50.1%
mul-1-neg50.1%
Simplified50.1%
Taylor expanded in x around -inf 75.1%
mul-1-neg75.1%
associate-*r*75.1%
distribute-lft-out--75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -1.3000000000000001e-237 < y3 < 3.34999999999999991e-273Initial program 38.9%
Simplified38.9%
Taylor expanded in i around -inf 54.9%
if 4.40000000000000017e98 < y3 < 6.9999999999999996e217Initial program 39.3%
Simplified39.3%
Taylor expanded in y around inf 43.5%
associate--l+43.5%
mul-1-neg43.5%
mul-1-neg43.5%
Simplified43.5%
Taylor expanded in y4 around inf 61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
if 6.9999999999999996e217 < y3 Initial program 21.1%
Simplified21.1%
Taylor expanded in z around -inf 63.2%
mul-1-neg63.2%
associate--l+63.2%
Simplified63.2%
Taylor expanded in t around 0 68.5%
Taylor expanded in y3 around inf 76.7%
Final simplification61.0%
(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 (* b t_1)))
(t_3 (- (* t j) (* y k)))
(t_4 (* b (+ (+ (* a (- (* x y) (* z t))) (* y4 t_3)) (* y0 t_1)))))
(if (<= x -2.5e+238)
(* y0 (* c (- (* x y2) (* z y3))))
(if (<= x -1.6e+187)
t_4
(if (<= x -1.5e+163)
t_2
(if (<= x -1.06e+77)
(* y (* y4 (- (* c y3) (* b k))))
(if (<= x -7.2e+56)
(* (- (* y1 y3) (* t b)) (* z a))
(if (<= x -6.4e+35)
t_4
(if (<= x 9.5e+110)
(*
y4
(+
(+ (* b t_3) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= x 1.2e+180)
(* (* y c) (- (* y3 y4) (* x i)))
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 = y0 * (b * t_1);
double t_3 = (t * j) - (y * k);
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * t_1));
double tmp;
if (x <= -2.5e+238) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (x <= -1.6e+187) {
tmp = t_4;
} else if (x <= -1.5e+163) {
tmp = t_2;
} else if (x <= -1.06e+77) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (x <= -7.2e+56) {
tmp = ((y1 * y3) - (t * b)) * (z * a);
} else if (x <= -6.4e+35) {
tmp = t_4;
} else if (x <= 9.5e+110) {
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 1.2e+180) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (z * k) - (x * j)
t_2 = y0 * (b * t_1)
t_3 = (t * j) - (y * k)
t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * t_1))
if (x <= (-2.5d+238)) then
tmp = y0 * (c * ((x * y2) - (z * y3)))
else if (x <= (-1.6d+187)) then
tmp = t_4
else if (x <= (-1.5d+163)) then
tmp = t_2
else if (x <= (-1.06d+77)) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else if (x <= (-7.2d+56)) then
tmp = ((y1 * y3) - (t * b)) * (z * a)
else if (x <= (-6.4d+35)) then
tmp = t_4
else if (x <= 9.5d+110) then
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (x <= 1.2d+180) then
tmp = (y * c) * ((y3 * y4) - (x * i))
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 = y0 * (b * t_1);
double t_3 = (t * j) - (y * k);
double t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * t_1));
double tmp;
if (x <= -2.5e+238) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (x <= -1.6e+187) {
tmp = t_4;
} else if (x <= -1.5e+163) {
tmp = t_2;
} else if (x <= -1.06e+77) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (x <= -7.2e+56) {
tmp = ((y1 * y3) - (t * b)) * (z * a);
} else if (x <= -6.4e+35) {
tmp = t_4;
} else if (x <= 9.5e+110) {
tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 1.2e+180) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} 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 = y0 * (b * t_1) t_3 = (t * j) - (y * k) t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * t_1)) tmp = 0 if x <= -2.5e+238: tmp = y0 * (c * ((x * y2) - (z * y3))) elif x <= -1.6e+187: tmp = t_4 elif x <= -1.5e+163: tmp = t_2 elif x <= -1.06e+77: tmp = y * (y4 * ((c * y3) - (b * k))) elif x <= -7.2e+56: tmp = ((y1 * y3) - (t * b)) * (z * a) elif x <= -6.4e+35: tmp = t_4 elif x <= 9.5e+110: tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif x <= 1.2e+180: tmp = (y * c) * ((y3 * y4) - (x * i)) 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(y0 * Float64(b * t_1)) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_3)) + Float64(y0 * t_1))) tmp = 0.0 if (x <= -2.5e+238) tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (x <= -1.6e+187) tmp = t_4; elseif (x <= -1.5e+163) tmp = t_2; elseif (x <= -1.06e+77) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); elseif (x <= -7.2e+56) tmp = Float64(Float64(Float64(y1 * y3) - Float64(t * b)) * Float64(z * a)); elseif (x <= -6.4e+35) tmp = t_4; elseif (x <= 9.5e+110) tmp = Float64(y4 * Float64(Float64(Float64(b * t_3) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 1.2e+180) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); 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 = y0 * (b * t_1); t_3 = (t * j) - (y * k); t_4 = b * (((a * ((x * y) - (z * t))) + (y4 * t_3)) + (y0 * t_1)); tmp = 0.0; if (x <= -2.5e+238) tmp = y0 * (c * ((x * y2) - (z * y3))); elseif (x <= -1.6e+187) tmp = t_4; elseif (x <= -1.5e+163) tmp = t_2; elseif (x <= -1.06e+77) tmp = y * (y4 * ((c * y3) - (b * k))); elseif (x <= -7.2e+56) tmp = ((y1 * y3) - (t * b)) * (z * a); elseif (x <= -6.4e+35) tmp = t_4; elseif (x <= 9.5e+110) tmp = y4 * (((b * t_3) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (x <= 1.2e+180) tmp = (y * c) * ((y3 * y4) - (x * i)); 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[(y0 * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+238], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e+187], t$95$4, If[LessEqual[x, -1.5e+163], t$95$2, If[LessEqual[x, -1.06e+77], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.2e+56], N[(N[(N[(y1 * y3), $MachinePrecision] - N[(t * b), $MachinePrecision]), $MachinePrecision] * N[(z * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.4e+35], t$95$4, If[LessEqual[x, 9.5e+110], N[(y4 * N[(N[(N[(b * t$95$3), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+180], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot k - x \cdot j\\
t_2 := y0 \cdot \left(b \cdot t_1\right)\\
t_3 := t \cdot j - y \cdot k\\
t_4 := b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t_3\right) + y0 \cdot t_1\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+238}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{+187}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{+163}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.06 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{+56}:\\
\;\;\;\;\left(y1 \cdot y3 - t \cdot b\right) \cdot \left(z \cdot a\right)\\
\mathbf{elif}\;x \leq -6.4 \cdot 10^{+35}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+110}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t_3 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+180}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.49999999999999998e238Initial program 0.0%
Simplified4.5%
Taylor expanded in y0 around inf 42.2%
mul-1-neg42.2%
Simplified42.2%
Taylor expanded in c around inf 60.1%
*-commutative60.1%
*-commutative60.1%
associate-*l*55.9%
*-commutative55.9%
Simplified55.9%
if -2.49999999999999998e238 < x < -1.59999999999999997e187 or -7.19999999999999996e56 < x < -6.39999999999999965e35Initial program 65.3%
Simplified65.3%
Taylor expanded in b around inf 75.5%
if -1.59999999999999997e187 < x < -1.50000000000000007e163 or 1.1999999999999999e180 < x Initial program 16.6%
Simplified19.4%
Taylor expanded in y0 around inf 50.3%
mul-1-neg50.3%
Simplified50.3%
Taylor expanded in b around inf 69.9%
if -1.50000000000000007e163 < x < -1.06000000000000003e77Initial program 7.7%
Simplified7.7%
Taylor expanded in y around inf 46.4%
associate--l+46.4%
mul-1-neg46.4%
mul-1-neg46.4%
Simplified46.4%
Taylor expanded in y4 around inf 62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
if -1.06000000000000003e77 < x < -7.19999999999999996e56Initial program 33.1%
Simplified49.7%
Taylor expanded in a around inf 66.8%
mul-1-neg66.8%
mul-1-neg66.8%
Simplified66.8%
Taylor expanded in z around -inf 67.8%
associate-*r*67.8%
distribute-lft-out--67.8%
cancel-sign-sub-inv67.8%
metadata-eval67.8%
*-lft-identity67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
if -6.39999999999999965e35 < x < 9.49999999999999939e110Initial program 43.8%
Simplified43.8%
Taylor expanded in y4 around inf 49.1%
if 9.49999999999999939e110 < x < 1.1999999999999999e180Initial program 18.2%
Simplified18.2%
Taylor expanded in y around inf 50.4%
associate--l+50.4%
mul-1-neg50.4%
mul-1-neg50.4%
Simplified50.4%
Taylor expanded in c around inf 64.5%
associate-*r*64.5%
*-commutative64.5%
mul-1-neg64.5%
unsub-neg64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
Final simplification57.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2))))))
(t_2 (* y0 (* b (- (* z k) (* x j))))))
(if (<= x -1.3e+237)
(* y0 (* c (- (* x y2) (* z y3))))
(if (<= x -2.35e+23)
(* z (+ (* k (- (* b y0) (* i y1))) (* y3 (- (* a y1) (* c y0)))))
(if (<= x -1.75e-31)
t_1
(if (<= x -2.3e-50)
t_2
(if (<= x -4.7e-88)
(* (- (* t a) (* k y0)) (* y2 y5))
(if (<= x 1.62e+111)
t_1
(if (<= x 1.25e+180)
(* (* y c) (- (* y3 y4) (* x i)))
t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (x <= -1.3e+237) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (x <= -2.35e+23) {
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * ((a * y1) - (c * y0))));
} else if (x <= -1.75e-31) {
tmp = t_1;
} else if (x <= -2.3e-50) {
tmp = t_2;
} else if (x <= -4.7e-88) {
tmp = ((t * a) - (k * y0)) * (y2 * y5);
} else if (x <= 1.62e+111) {
tmp = t_1;
} else if (x <= 1.25e+180) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
t_2 = y0 * (b * ((z * k) - (x * j)))
if (x <= (-1.3d+237)) then
tmp = y0 * (c * ((x * y2) - (z * y3)))
else if (x <= (-2.35d+23)) then
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * ((a * y1) - (c * y0))))
else if (x <= (-1.75d-31)) then
tmp = t_1
else if (x <= (-2.3d-50)) then
tmp = t_2
else if (x <= (-4.7d-88)) then
tmp = ((t * a) - (k * y0)) * (y2 * y5)
else if (x <= 1.62d+111) then
tmp = t_1
else if (x <= 1.25d+180) then
tmp = (y * c) * ((y3 * y4) - (x * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double tmp;
if (x <= -1.3e+237) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (x <= -2.35e+23) {
tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * ((a * y1) - (c * y0))));
} else if (x <= -1.75e-31) {
tmp = t_1;
} else if (x <= -2.3e-50) {
tmp = t_2;
} else if (x <= -4.7e-88) {
tmp = ((t * a) - (k * y0)) * (y2 * y5);
} else if (x <= 1.62e+111) {
tmp = t_1;
} else if (x <= 1.25e+180) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) t_2 = y0 * (b * ((z * k) - (x * j))) tmp = 0 if x <= -1.3e+237: tmp = y0 * (c * ((x * y2) - (z * y3))) elif x <= -2.35e+23: tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * ((a * y1) - (c * y0)))) elif x <= -1.75e-31: tmp = t_1 elif x <= -2.3e-50: tmp = t_2 elif x <= -4.7e-88: tmp = ((t * a) - (k * y0)) * (y2 * y5) elif x <= 1.62e+111: tmp = t_1 elif x <= 1.25e+180: tmp = (y * c) * ((y3 * y4) - (x * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) tmp = 0.0 if (x <= -1.3e+237) tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (x <= -2.35e+23) tmp = Float64(z * Float64(Float64(k * Float64(Float64(b * y0) - Float64(i * y1))) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))); elseif (x <= -1.75e-31) tmp = t_1; elseif (x <= -2.3e-50) tmp = t_2; elseif (x <= -4.7e-88) tmp = Float64(Float64(Float64(t * a) - Float64(k * y0)) * Float64(y2 * y5)); elseif (x <= 1.62e+111) tmp = t_1; elseif (x <= 1.25e+180) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); t_2 = y0 * (b * ((z * k) - (x * j))); tmp = 0.0; if (x <= -1.3e+237) tmp = y0 * (c * ((x * y2) - (z * y3))); elseif (x <= -2.35e+23) tmp = z * ((k * ((b * y0) - (i * y1))) + (y3 * ((a * y1) - (c * y0)))); elseif (x <= -1.75e-31) tmp = t_1; elseif (x <= -2.3e-50) tmp = t_2; elseif (x <= -4.7e-88) tmp = ((t * a) - (k * y0)) * (y2 * y5); elseif (x <= 1.62e+111) tmp = t_1; elseif (x <= 1.25e+180) tmp = (y * c) * ((y3 * y4) - (x * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.3e+237], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.35e+23], N[(z * N[(N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.75e-31], t$95$1, If[LessEqual[x, -2.3e-50], t$95$2, If[LessEqual[x, -4.7e-88], N[(N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision] * N[(y2 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.62e+111], t$95$1, If[LessEqual[x, 1.25e+180], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{if}\;x \leq -1.3 \cdot 10^{+237}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{+23}:\\
\;\;\;\;z \cdot \left(k \cdot \left(b \cdot y0 - i \cdot y1\right) + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-31}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.7 \cdot 10^{-88}:\\
\;\;\;\;\left(t \cdot a - k \cdot y0\right) \cdot \left(y2 \cdot y5\right)\\
\mathbf{elif}\;x \leq 1.62 \cdot 10^{+111}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+180}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.30000000000000001e237Initial program 0.0%
Simplified4.5%
Taylor expanded in y0 around inf 42.2%
mul-1-neg42.2%
Simplified42.2%
Taylor expanded in c around inf 60.1%
*-commutative60.1%
*-commutative60.1%
associate-*l*55.9%
*-commutative55.9%
Simplified55.9%
if -1.30000000000000001e237 < x < -2.3499999999999999e23Initial program 37.1%
Simplified37.1%
Taylor expanded in z around -inf 48.6%
mul-1-neg48.6%
associate--l+48.6%
Simplified48.6%
Taylor expanded in t around 0 48.7%
if -2.3499999999999999e23 < x < -1.74999999999999993e-31 or -4.7e-88 < x < 1.61999999999999999e111Initial program 41.5%
Simplified41.5%
Taylor expanded in y4 around inf 53.6%
if -1.74999999999999993e-31 < x < -2.3000000000000002e-50 or 1.2499999999999999e180 < x Initial program 24.2%
Simplified26.9%
Taylor expanded in y0 around inf 43.7%
mul-1-neg43.7%
Simplified43.7%
Taylor expanded in b around inf 65.3%
if -2.3000000000000002e-50 < x < -4.7e-88Initial program 83.1%
Simplified83.1%
Taylor expanded in y5 around inf 99.5%
mul-1-neg99.5%
mul-1-neg99.5%
mul-1-neg99.5%
sub-neg99.5%
sub-neg99.5%
Simplified99.5%
Taylor expanded in y2 around inf 52.1%
if 1.61999999999999999e111 < x < 1.2499999999999999e180Initial program 18.2%
Simplified18.2%
Taylor expanded in y around inf 50.4%
associate--l+50.4%
mul-1-neg50.4%
mul-1-neg50.4%
Simplified50.4%
Taylor expanded in c around inf 64.5%
associate-*r*64.5%
*-commutative64.5%
mul-1-neg64.5%
unsub-neg64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
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 (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* i y1) (* b y0)))))))
(if (<= x -5.8e+24)
t_1
(if (<= x 2.1e+73)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= x 1.02e+147)
t_1
(if (<= x 8e+179)
(* (* y c) (- (* y3 y4) (* x i)))
(* y0 (* b (- (* z k) (* x j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double tmp;
if (x <= -5.8e+24) {
tmp = t_1;
} else if (x <= 2.1e+73) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 1.02e+147) {
tmp = t_1;
} else if (x <= 8e+179) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = y0 * (b * ((z * k) - (x * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))))
if (x <= (-5.8d+24)) then
tmp = t_1
else if (x <= 2.1d+73) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (x <= 1.02d+147) then
tmp = t_1
else if (x <= 8d+179) then
tmp = (y * c) * ((y3 * y4) - (x * i))
else
tmp = y0 * (b * ((z * k) - (x * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0))));
double tmp;
if (x <= -5.8e+24) {
tmp = t_1;
} else if (x <= 2.1e+73) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 1.02e+147) {
tmp = t_1;
} else if (x <= 8e+179) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = y0 * (b * ((z * k) - (x * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))) tmp = 0 if x <= -5.8e+24: tmp = t_1 elif x <= 2.1e+73: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif x <= 1.02e+147: tmp = t_1 elif x <= 8e+179: tmp = (y * c) * ((y3 * y4) - (x * i)) else: tmp = y0 * (b * ((z * k) - (x * j))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(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))))) tmp = 0.0 if (x <= -5.8e+24) tmp = t_1; elseif (x <= 2.1e+73) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 1.02e+147) tmp = t_1; elseif (x <= 8e+179) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); else tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) + (j * ((i * y1) - (b * y0)))); tmp = 0.0; if (x <= -5.8e+24) tmp = t_1; elseif (x <= 2.1e+73) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (x <= 1.02e+147) tmp = t_1; elseif (x <= 8e+179) tmp = (y * c) * ((y3 * y4) - (x * i)); else tmp = y0 * (b * ((z * k) - (x * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(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[x, -5.8e+24], t$95$1, If[LessEqual[x, 2.1e+73], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.02e+147], t$95$1, If[LessEqual[x, 8e+179], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 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{if}\;x \leq -5.8 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+73}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{+147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 8 \cdot 10^{+179}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\end{array}
\end{array}
if x < -5.79999999999999958e24 or 2.1000000000000001e73 < x < 1.0199999999999999e147Initial program 24.7%
Simplified24.7%
Taylor expanded in x around inf 57.1%
if -5.79999999999999958e24 < x < 2.1000000000000001e73Initial program 43.4%
Simplified43.4%
Taylor expanded in y4 around inf 52.1%
if 1.0199999999999999e147 < x < 7.99999999999999984e179Initial program 30.8%
Simplified30.8%
Taylor expanded in y around inf 61.7%
associate--l+61.7%
mul-1-neg61.7%
mul-1-neg61.7%
Simplified61.7%
Taylor expanded in c around inf 77.7%
associate-*r*77.7%
*-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
if 7.99999999999999984e179 < x Initial program 19.3%
Simplified22.5%
Taylor expanded in y0 around inf 45.5%
mul-1-neg45.5%
Simplified45.5%
Taylor expanded in b around inf 68.0%
Final simplification57.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* z (- (* b y0) (* i y1)))))
(t_2 (* a (* b (- (* x y) (* z t)))))
(t_3 (* y0 (* x (- (* c y2) (* b j))))))
(if (<= b -1.95e+96)
t_2
(if (<= b -3.5e+69)
t_1
(if (<= b -3.9e-54)
t_3
(if (<= b -9e-275)
(* (* a y1) (- (* z y3) (* x y2)))
(if (<= b 1.05e-266)
(* (- (* t a) (* k y0)) (* y2 y5))
(if (<= b 1.4e-187)
(* (* y c) (- (* y3 y4) (* x i)))
(if (<= b 1.85e-106)
(* i (* y5 (- (* y k) (* t j))))
(if (<= b 0.102)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= b 9.2e+107)
(* z (* y3 (- (* a y1) (* c y0))))
(if (<= b 2.85e+200)
t_3
(if (<= b 1.5e+220) 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 = k * (z * ((b * y0) - (i * y1)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = y0 * (x * ((c * y2) - (b * j)));
double tmp;
if (b <= -1.95e+96) {
tmp = t_2;
} else if (b <= -3.5e+69) {
tmp = t_1;
} else if (b <= -3.9e-54) {
tmp = t_3;
} else if (b <= -9e-275) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 1.05e-266) {
tmp = ((t * a) - (k * y0)) * (y2 * y5);
} else if (b <= 1.4e-187) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else if (b <= 1.85e-106) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (b <= 0.102) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (b <= 9.2e+107) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= 2.85e+200) {
tmp = t_3;
} else if (b <= 1.5e+220) {
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 = k * (z * ((b * y0) - (i * y1)))
t_2 = a * (b * ((x * y) - (z * t)))
t_3 = y0 * (x * ((c * y2) - (b * j)))
if (b <= (-1.95d+96)) then
tmp = t_2
else if (b <= (-3.5d+69)) then
tmp = t_1
else if (b <= (-3.9d-54)) then
tmp = t_3
else if (b <= (-9d-275)) then
tmp = (a * y1) * ((z * y3) - (x * y2))
else if (b <= 1.05d-266) then
tmp = ((t * a) - (k * y0)) * (y2 * y5)
else if (b <= 1.4d-187) then
tmp = (y * c) * ((y3 * y4) - (x * i))
else if (b <= 1.85d-106) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (b <= 0.102d0) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (b <= 9.2d+107) then
tmp = z * (y3 * ((a * y1) - (c * y0)))
else if (b <= 2.85d+200) then
tmp = t_3
else if (b <= 1.5d+220) 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 = k * (z * ((b * y0) - (i * y1)));
double t_2 = a * (b * ((x * y) - (z * t)));
double t_3 = y0 * (x * ((c * y2) - (b * j)));
double tmp;
if (b <= -1.95e+96) {
tmp = t_2;
} else if (b <= -3.5e+69) {
tmp = t_1;
} else if (b <= -3.9e-54) {
tmp = t_3;
} else if (b <= -9e-275) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (b <= 1.05e-266) {
tmp = ((t * a) - (k * y0)) * (y2 * y5);
} else if (b <= 1.4e-187) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else if (b <= 1.85e-106) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (b <= 0.102) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (b <= 9.2e+107) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (b <= 2.85e+200) {
tmp = t_3;
} else if (b <= 1.5e+220) {
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 = k * (z * ((b * y0) - (i * y1))) t_2 = a * (b * ((x * y) - (z * t))) t_3 = y0 * (x * ((c * y2) - (b * j))) tmp = 0 if b <= -1.95e+96: tmp = t_2 elif b <= -3.5e+69: tmp = t_1 elif b <= -3.9e-54: tmp = t_3 elif b <= -9e-275: tmp = (a * y1) * ((z * y3) - (x * y2)) elif b <= 1.05e-266: tmp = ((t * a) - (k * y0)) * (y2 * y5) elif b <= 1.4e-187: tmp = (y * c) * ((y3 * y4) - (x * i)) elif b <= 1.85e-106: tmp = i * (y5 * ((y * k) - (t * j))) elif b <= 0.102: tmp = y * (a * ((x * b) - (y3 * y5))) elif b <= 9.2e+107: tmp = z * (y3 * ((a * y1) - (c * y0))) elif b <= 2.85e+200: tmp = t_3 elif b <= 1.5e+220: 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(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))) t_2 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))) t_3 = Float64(y0 * Float64(x * Float64(Float64(c * y2) - Float64(b * j)))) tmp = 0.0 if (b <= -1.95e+96) tmp = t_2; elseif (b <= -3.5e+69) tmp = t_1; elseif (b <= -3.9e-54) tmp = t_3; elseif (b <= -9e-275) tmp = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))); elseif (b <= 1.05e-266) tmp = Float64(Float64(Float64(t * a) - Float64(k * y0)) * Float64(y2 * y5)); elseif (b <= 1.4e-187) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); elseif (b <= 1.85e-106) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (b <= 0.102) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (b <= 9.2e+107) tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (b <= 2.85e+200) tmp = t_3; elseif (b <= 1.5e+220) 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 = k * (z * ((b * y0) - (i * y1))); t_2 = a * (b * ((x * y) - (z * t))); t_3 = y0 * (x * ((c * y2) - (b * j))); tmp = 0.0; if (b <= -1.95e+96) tmp = t_2; elseif (b <= -3.5e+69) tmp = t_1; elseif (b <= -3.9e-54) tmp = t_3; elseif (b <= -9e-275) tmp = (a * y1) * ((z * y3) - (x * y2)); elseif (b <= 1.05e-266) tmp = ((t * a) - (k * y0)) * (y2 * y5); elseif (b <= 1.4e-187) tmp = (y * c) * ((y3 * y4) - (x * i)); elseif (b <= 1.85e-106) tmp = i * (y5 * ((y * k) - (t * j))); elseif (b <= 0.102) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (b <= 9.2e+107) tmp = z * (y3 * ((a * y1) - (c * y0))); elseif (b <= 2.85e+200) tmp = t_3; elseif (b <= 1.5e+220) 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[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $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[(y0 * N[(x * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.95e+96], t$95$2, If[LessEqual[b, -3.5e+69], t$95$1, If[LessEqual[b, -3.9e-54], t$95$3, If[LessEqual[b, -9e-275], N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.05e-266], N[(N[(N[(t * a), $MachinePrecision] - N[(k * y0), $MachinePrecision]), $MachinePrecision] * N[(y2 * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e-187], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e-106], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.102], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+107], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.85e+200], t$95$3, If[LessEqual[b, 1.5e+220], t$95$1, t$95$2]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
t_2 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
t_3 := y0 \cdot \left(x \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{if}\;b \leq -1.95 \cdot 10^{+96}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{-54}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-275}:\\
\;\;\;\;\left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-266}:\\
\;\;\;\;\left(t \cdot a - k \cdot y0\right) \cdot \left(y2 \cdot y5\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-187}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{-106}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 0.102:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+107}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{+200}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+220}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.95e96 or 1.50000000000000012e220 < b Initial program 19.0%
Simplified20.6%
Taylor expanded in a around inf 43.4%
mul-1-neg43.4%
mul-1-neg43.4%
Simplified43.4%
Taylor expanded in b around inf 59.3%
if -1.95e96 < b < -3.49999999999999987e69 or 2.85000000000000003e200 < b < 1.50000000000000012e220Initial program 28.5%
Simplified28.5%
Taylor expanded in z around -inf 35.3%
mul-1-neg35.3%
associate--l+35.3%
Simplified35.3%
Taylor expanded in k around inf 78.4%
if -3.49999999999999987e69 < b < -3.9e-54 or 9.2000000000000001e107 < b < 2.85000000000000003e200Initial program 40.5%
Simplified50.1%
Taylor expanded in y0 around inf 55.0%
mul-1-neg55.0%
Simplified55.0%
Taylor expanded in x around -inf 63.1%
mul-1-neg63.1%
*-commutative63.1%
+-commutative63.1%
distribute-rgt-neg-in63.1%
+-commutative63.1%
*-commutative63.1%
distribute-rgt-neg-in63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.1%
if -3.9e-54 < b < -8.99999999999999957e-275Initial program 34.5%
Simplified42.4%
Taylor expanded in a around inf 37.9%
mul-1-neg37.9%
mul-1-neg37.9%
Simplified37.9%
Taylor expanded in y1 around inf 41.0%
associate-*r*46.0%
*-commutative46.0%
*-commutative46.0%
Simplified46.0%
if -8.99999999999999957e-275 < b < 1.04999999999999998e-266Initial program 22.5%
Simplified28.1%
Taylor expanded in y5 around inf 34.6%
mul-1-neg34.6%
mul-1-neg34.6%
mul-1-neg34.6%
sub-neg34.6%
sub-neg34.6%
Simplified34.6%
Taylor expanded in y2 around inf 50.8%
if 1.04999999999999998e-266 < b < 1.4e-187Initial program 33.3%
Simplified33.3%
Taylor expanded in y around inf 22.8%
associate--l+22.8%
mul-1-neg22.8%
mul-1-neg22.8%
Simplified22.8%
Taylor expanded in c around inf 78.2%
associate-*r*78.2%
*-commutative78.2%
mul-1-neg78.2%
unsub-neg78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
if 1.4e-187 < b < 1.8499999999999999e-106Initial program 47.0%
Simplified46.9%
Taylor expanded in y5 around inf 47.0%
mul-1-neg47.0%
mul-1-neg47.0%
mul-1-neg47.0%
sub-neg47.0%
sub-neg47.0%
Simplified47.0%
Taylor expanded in i around inf 54.6%
if 1.8499999999999999e-106 < b < 0.101999999999999993Initial program 54.5%
Simplified54.5%
Taylor expanded in a around inf 50.4%
mul-1-neg50.4%
mul-1-neg50.4%
Simplified50.4%
Taylor expanded in y around inf 42.7%
associate-*r*42.7%
*-commutative42.7%
associate-*r*50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
if 0.101999999999999993 < b < 9.2000000000000001e107Initial program 39.1%
Simplified39.1%
Taylor expanded in z around -inf 44.5%
mul-1-neg44.5%
associate--l+44.5%
Simplified44.5%
Taylor expanded in t around 0 44.5%
Taylor expanded in y3 around inf 45.4%
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 (- (* b y0) (* i y1)))
(t_2 (* z (+ (* k t_1) (* y3 (- (* a y1) (* c y0)))))))
(if (<= z -2.15e-30)
t_2
(if (<= z -1.06e-49)
(* k (* y (- (* i y5) (* b y4))))
(if (<= z -2.35e-133)
t_2
(if (<= z 2.9e-264)
(* y0 (* x (- (* c y2) (* b j))))
(if (<= z 6e-180)
(* y (* y4 (- (* c y3) (* b k))))
(if (<= z 2.5e-43)
(* x (* a (- (* y b) (* y1 y2))))
(if (<= z 5.4e+25)
(* y0 (* y3 (- (* j y5) (* z c))))
(if (<= z 4.8e+67)
(* (* j y4) (- (* t b) (* y1 y3)))
(if (<= z 5.2e+116)
(* i (* y5 (- (* y k) (* t j))))
(if (<= z 1.55e+192)
(* k (* z t_1))
(* t (* z (- (* c i) (* a b))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) - (i * y1);
double t_2 = z * ((k * t_1) + (y3 * ((a * y1) - (c * y0))));
double tmp;
if (z <= -2.15e-30) {
tmp = t_2;
} else if (z <= -1.06e-49) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (z <= -2.35e-133) {
tmp = t_2;
} else if (z <= 2.9e-264) {
tmp = y0 * (x * ((c * y2) - (b * j)));
} else if (z <= 6e-180) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (z <= 2.5e-43) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (z <= 5.4e+25) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (z <= 4.8e+67) {
tmp = (j * y4) * ((t * b) - (y1 * y3));
} else if (z <= 5.2e+116) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (z <= 1.55e+192) {
tmp = k * (z * t_1);
} else {
tmp = t * (z * ((c * i) - (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * y0) - (i * y1)
t_2 = z * ((k * t_1) + (y3 * ((a * y1) - (c * y0))))
if (z <= (-2.15d-30)) then
tmp = t_2
else if (z <= (-1.06d-49)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (z <= (-2.35d-133)) then
tmp = t_2
else if (z <= 2.9d-264) then
tmp = y0 * (x * ((c * y2) - (b * j)))
else if (z <= 6d-180) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else if (z <= 2.5d-43) then
tmp = x * (a * ((y * b) - (y1 * y2)))
else if (z <= 5.4d+25) then
tmp = y0 * (y3 * ((j * y5) - (z * c)))
else if (z <= 4.8d+67) then
tmp = (j * y4) * ((t * b) - (y1 * y3))
else if (z <= 5.2d+116) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (z <= 1.55d+192) then
tmp = k * (z * t_1)
else
tmp = t * (z * ((c * i) - (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y0) - (i * y1);
double t_2 = z * ((k * t_1) + (y3 * ((a * y1) - (c * y0))));
double tmp;
if (z <= -2.15e-30) {
tmp = t_2;
} else if (z <= -1.06e-49) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (z <= -2.35e-133) {
tmp = t_2;
} else if (z <= 2.9e-264) {
tmp = y0 * (x * ((c * y2) - (b * j)));
} else if (z <= 6e-180) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (z <= 2.5e-43) {
tmp = x * (a * ((y * b) - (y1 * y2)));
} else if (z <= 5.4e+25) {
tmp = y0 * (y3 * ((j * y5) - (z * c)));
} else if (z <= 4.8e+67) {
tmp = (j * y4) * ((t * b) - (y1 * y3));
} else if (z <= 5.2e+116) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (z <= 1.55e+192) {
tmp = k * (z * t_1);
} else {
tmp = t * (z * ((c * i) - (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y0) - (i * y1) t_2 = z * ((k * t_1) + (y3 * ((a * y1) - (c * y0)))) tmp = 0 if z <= -2.15e-30: tmp = t_2 elif z <= -1.06e-49: tmp = k * (y * ((i * y5) - (b * y4))) elif z <= -2.35e-133: tmp = t_2 elif z <= 2.9e-264: tmp = y0 * (x * ((c * y2) - (b * j))) elif z <= 6e-180: tmp = y * (y4 * ((c * y3) - (b * k))) elif z <= 2.5e-43: tmp = x * (a * ((y * b) - (y1 * y2))) elif z <= 5.4e+25: tmp = y0 * (y3 * ((j * y5) - (z * c))) elif z <= 4.8e+67: tmp = (j * y4) * ((t * b) - (y1 * y3)) elif z <= 5.2e+116: tmp = i * (y5 * ((y * k) - (t * j))) elif z <= 1.55e+192: tmp = k * (z * t_1) else: tmp = t * (z * ((c * i) - (a * b))) 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 * y0) - Float64(i * y1)) t_2 = Float64(z * Float64(Float64(k * t_1) + Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))))) tmp = 0.0 if (z <= -2.15e-30) tmp = t_2; elseif (z <= -1.06e-49) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (z <= -2.35e-133) tmp = t_2; elseif (z <= 2.9e-264) tmp = Float64(y0 * Float64(x * Float64(Float64(c * y2) - Float64(b * j)))); elseif (z <= 6e-180) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); elseif (z <= 2.5e-43) tmp = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))); elseif (z <= 5.4e+25) tmp = Float64(y0 * Float64(y3 * Float64(Float64(j * y5) - Float64(z * c)))); elseif (z <= 4.8e+67) tmp = Float64(Float64(j * y4) * Float64(Float64(t * b) - Float64(y1 * y3))); elseif (z <= 5.2e+116) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (z <= 1.55e+192) tmp = Float64(k * Float64(z * t_1)); else tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y0) - (i * y1); t_2 = z * ((k * t_1) + (y3 * ((a * y1) - (c * y0)))); tmp = 0.0; if (z <= -2.15e-30) tmp = t_2; elseif (z <= -1.06e-49) tmp = k * (y * ((i * y5) - (b * y4))); elseif (z <= -2.35e-133) tmp = t_2; elseif (z <= 2.9e-264) tmp = y0 * (x * ((c * y2) - (b * j))); elseif (z <= 6e-180) tmp = y * (y4 * ((c * y3) - (b * k))); elseif (z <= 2.5e-43) tmp = x * (a * ((y * b) - (y1 * y2))); elseif (z <= 5.4e+25) tmp = y0 * (y3 * ((j * y5) - (z * c))); elseif (z <= 4.8e+67) tmp = (j * y4) * ((t * b) - (y1 * y3)); elseif (z <= 5.2e+116) tmp = i * (y5 * ((y * k) - (t * j))); elseif (z <= 1.55e+192) tmp = k * (z * t_1); else tmp = t * (z * ((c * i) - (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(k * t$95$1), $MachinePrecision] + N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.15e-30], t$95$2, If[LessEqual[z, -1.06e-49], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.35e-133], t$95$2, If[LessEqual[z, 2.9e-264], N[(y0 * N[(x * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-180], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-43], N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+25], N[(y0 * N[(y3 * N[(N[(j * y5), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e+67], N[(N[(j * y4), $MachinePrecision] * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+116], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+192], N[(k * N[(z * t$95$1), $MachinePrecision]), $MachinePrecision], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y0 - i \cdot y1\\
t_2 := z \cdot \left(k \cdot t_1 + y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{if}\;z \leq -2.15 \cdot 10^{-30}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.06 \cdot 10^{-49}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{-133}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-264}:\\
\;\;\;\;y0 \cdot \left(x \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-180}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-43}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+25}:\\
\;\;\;\;y0 \cdot \left(y3 \cdot \left(j \cdot y5 - z \cdot c\right)\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+67}:\\
\;\;\;\;\left(j \cdot y4\right) \cdot \left(t \cdot b - y1 \cdot y3\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+116}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+192}:\\
\;\;\;\;k \cdot \left(z \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -2.14999999999999983e-30 or -1.06000000000000002e-49 < z < -2.35000000000000001e-133Initial program 27.8%
Simplified27.8%
Taylor expanded in z around -inf 52.9%
mul-1-neg52.9%
associate--l+52.9%
Simplified52.9%
Taylor expanded in t around 0 57.2%
if -2.14999999999999983e-30 < z < -1.06000000000000002e-49Initial program 49.8%
Simplified49.8%
Taylor expanded in y around inf 63.0%
associate--l+63.0%
mul-1-neg63.0%
mul-1-neg63.0%
Simplified63.0%
Taylor expanded in k around inf 63.1%
if -2.35000000000000001e-133 < z < 2.8999999999999999e-264Initial program 45.4%
Simplified49.1%
Taylor expanded in y0 around inf 50.0%
mul-1-neg50.0%
Simplified50.0%
Taylor expanded in x around -inf 44.8%
mul-1-neg44.8%
*-commutative44.8%
+-commutative44.8%
distribute-rgt-neg-in44.8%
+-commutative44.8%
*-commutative44.8%
distribute-rgt-neg-in44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
Simplified44.8%
if 2.8999999999999999e-264 < z < 6.0000000000000001e-180Initial program 47.3%
Simplified47.3%
Taylor expanded in y around inf 47.4%
associate--l+47.4%
mul-1-neg47.4%
mul-1-neg47.4%
Simplified47.4%
Taylor expanded in y4 around inf 53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
if 6.0000000000000001e-180 < z < 2.50000000000000009e-43Initial program 50.0%
Simplified50.0%
Taylor expanded in a around inf 50.4%
mul-1-neg50.4%
mul-1-neg50.4%
Simplified50.4%
Taylor expanded in x around -inf 56.5%
mul-1-neg56.5%
associate-*r*56.4%
distribute-lft-out--56.4%
*-commutative56.4%
*-commutative56.4%
Simplified56.4%
if 2.50000000000000009e-43 < z < 5.4e25Initial program 28.6%
Simplified35.7%
Taylor expanded in y0 around inf 36.5%
mul-1-neg36.5%
Simplified36.5%
Taylor expanded in y3 around inf 58.1%
distribute-lft-out--58.1%
associate-*r*58.1%
mul-1-neg58.1%
*-commutative58.1%
Simplified58.1%
if 5.4e25 < z < 4.80000000000000004e67Initial program 26.6%
Simplified26.6%
Taylor expanded in y4 around inf 75.9%
Taylor expanded in j around inf 75.9%
associate-*r*75.9%
mul-1-neg75.9%
sub-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
if 4.80000000000000004e67 < z < 5.19999999999999973e116Initial program 8.3%
Simplified8.3%
Taylor expanded in y5 around inf 59.8%
mul-1-neg59.8%
mul-1-neg59.8%
mul-1-neg59.8%
sub-neg59.8%
sub-neg59.8%
Simplified59.8%
Taylor expanded in i around inf 60.2%
if 5.19999999999999973e116 < z < 1.5499999999999999e192Initial program 26.3%
Simplified26.3%
Taylor expanded in z around -inf 47.4%
mul-1-neg47.4%
associate--l+47.4%
Simplified47.4%
Taylor expanded in k around inf 73.8%
if 1.5499999999999999e192 < z Initial program 23.8%
Simplified23.8%
Taylor expanded in z around -inf 58.1%
mul-1-neg58.1%
associate--l+58.1%
Simplified58.1%
Taylor expanded in t around inf 63.1%
Final simplification56.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* b (- (* z k) (* x j)))))
(t_2 (* k (* y (- (* i y5) (* b y4))))))
(if (<= y0 -6.8e+80)
t_1
(if (<= y0 -0.1)
(* a (* b (- (* x y) (* z t))))
(if (<= y0 -5e-16)
(* k (* i (* y y5)))
(if (<= y0 -3.8e-91)
(* (* a y1) (- (* z y3) (* x y2)))
(if (<= y0 -1.65e-270)
t_2
(if (<= y0 5.8e-267)
(* t (* z (- (* c i) (* a b))))
(if (<= y0 4.3e-192)
t_2
(if (<= y0 1.8e-105)
(* (* y1 y4) (- (* k y2) (* j y3)))
(if (<= y0 2.05e+27)
(* (* y c) (- (* y3 y4) (* x i)))
t_1)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = k * (y * ((i * y5) - (b * y4)));
double tmp;
if (y0 <= -6.8e+80) {
tmp = t_1;
} else if (y0 <= -0.1) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y0 <= -5e-16) {
tmp = k * (i * (y * y5));
} else if (y0 <= -3.8e-91) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (y0 <= -1.65e-270) {
tmp = t_2;
} else if (y0 <= 5.8e-267) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y0 <= 4.3e-192) {
tmp = t_2;
} else if (y0 <= 1.8e-105) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (y0 <= 2.05e+27) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y0 * (b * ((z * k) - (x * j)))
t_2 = k * (y * ((i * y5) - (b * y4)))
if (y0 <= (-6.8d+80)) then
tmp = t_1
else if (y0 <= (-0.1d0)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y0 <= (-5d-16)) then
tmp = k * (i * (y * y5))
else if (y0 <= (-3.8d-91)) then
tmp = (a * y1) * ((z * y3) - (x * y2))
else if (y0 <= (-1.65d-270)) then
tmp = t_2
else if (y0 <= 5.8d-267) then
tmp = t * (z * ((c * i) - (a * b)))
else if (y0 <= 4.3d-192) then
tmp = t_2
else if (y0 <= 1.8d-105) then
tmp = (y1 * y4) * ((k * y2) - (j * y3))
else if (y0 <= 2.05d+27) then
tmp = (y * c) * ((y3 * y4) - (x * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (b * ((z * k) - (x * j)));
double t_2 = k * (y * ((i * y5) - (b * y4)));
double tmp;
if (y0 <= -6.8e+80) {
tmp = t_1;
} else if (y0 <= -0.1) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y0 <= -5e-16) {
tmp = k * (i * (y * y5));
} else if (y0 <= -3.8e-91) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (y0 <= -1.65e-270) {
tmp = t_2;
} else if (y0 <= 5.8e-267) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y0 <= 4.3e-192) {
tmp = t_2;
} else if (y0 <= 1.8e-105) {
tmp = (y1 * y4) * ((k * y2) - (j * y3));
} else if (y0 <= 2.05e+27) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y0 * (b * ((z * k) - (x * j))) t_2 = k * (y * ((i * y5) - (b * y4))) tmp = 0 if y0 <= -6.8e+80: tmp = t_1 elif y0 <= -0.1: tmp = a * (b * ((x * y) - (z * t))) elif y0 <= -5e-16: tmp = k * (i * (y * y5)) elif y0 <= -3.8e-91: tmp = (a * y1) * ((z * y3) - (x * y2)) elif y0 <= -1.65e-270: tmp = t_2 elif y0 <= 5.8e-267: tmp = t * (z * ((c * i) - (a * b))) elif y0 <= 4.3e-192: tmp = t_2 elif y0 <= 1.8e-105: tmp = (y1 * y4) * ((k * y2) - (j * y3)) elif y0 <= 2.05e+27: tmp = (y * c) * ((y3 * y4) - (x * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_2 = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) tmp = 0.0 if (y0 <= -6.8e+80) tmp = t_1; elseif (y0 <= -0.1) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y0 <= -5e-16) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (y0 <= -3.8e-91) tmp = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))); elseif (y0 <= -1.65e-270) tmp = t_2; elseif (y0 <= 5.8e-267) tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); elseif (y0 <= 4.3e-192) tmp = t_2; elseif (y0 <= 1.8e-105) tmp = Float64(Float64(y1 * y4) * Float64(Float64(k * y2) - Float64(j * y3))); elseif (y0 <= 2.05e+27) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y0 * (b * ((z * k) - (x * j))); t_2 = k * (y * ((i * y5) - (b * y4))); tmp = 0.0; if (y0 <= -6.8e+80) tmp = t_1; elseif (y0 <= -0.1) tmp = a * (b * ((x * y) - (z * t))); elseif (y0 <= -5e-16) tmp = k * (i * (y * y5)); elseif (y0 <= -3.8e-91) tmp = (a * y1) * ((z * y3) - (x * y2)); elseif (y0 <= -1.65e-270) tmp = t_2; elseif (y0 <= 5.8e-267) tmp = t * (z * ((c * i) - (a * b))); elseif (y0 <= 4.3e-192) tmp = t_2; elseif (y0 <= 1.8e-105) tmp = (y1 * y4) * ((k * y2) - (j * y3)); elseif (y0 <= 2.05e+27) tmp = (y * c) * ((y3 * y4) - (x * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -6.8e+80], t$95$1, If[LessEqual[y0, -0.1], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5e-16], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -3.8e-91], N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.65e-270], t$95$2, If[LessEqual[y0, 5.8e-267], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 4.3e-192], t$95$2, If[LessEqual[y0, 1.8e-105], N[(N[(y1 * y4), $MachinePrecision] * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.05e+27], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_2 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{if}\;y0 \leq -6.8 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq -0.1:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y0 \leq -5 \cdot 10^{-16}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -3.8 \cdot 10^{-91}:\\
\;\;\;\;\left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{elif}\;y0 \leq -1.65 \cdot 10^{-270}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y0 \leq 5.8 \cdot 10^{-267}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\mathbf{elif}\;y0 \leq 4.3 \cdot 10^{-192}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y0 \leq 1.8 \cdot 10^{-105}:\\
\;\;\;\;\left(y1 \cdot y4\right) \cdot \left(k \cdot y2 - j \cdot y3\right)\\
\mathbf{elif}\;y0 \leq 2.05 \cdot 10^{+27}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y0 < -6.79999999999999984e80 or 2.0500000000000001e27 < y0 Initial program 22.4%
Simplified26.7%
Taylor expanded in y0 around inf 52.1%
mul-1-neg52.1%
Simplified52.1%
Taylor expanded in b around inf 48.7%
if -6.79999999999999984e80 < y0 < -0.10000000000000001Initial program 45.5%
Simplified45.5%
Taylor expanded in a around inf 50.9%
mul-1-neg50.9%
mul-1-neg50.9%
Simplified50.9%
Taylor expanded in b around inf 55.4%
if -0.10000000000000001 < y0 < -5.0000000000000004e-16Initial program 33.7%
Simplified33.7%
Taylor expanded in y5 around inf 51.1%
mul-1-neg51.1%
mul-1-neg51.1%
mul-1-neg51.1%
sub-neg51.1%
sub-neg51.1%
Simplified51.1%
Taylor expanded in k around inf 67.6%
associate-*r*67.6%
neg-mul-167.6%
*-commutative67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 83.4%
if -5.0000000000000004e-16 < y0 < -3.79999999999999978e-91Initial program 49.9%
Simplified57.0%
Taylor expanded in a around inf 43.8%
mul-1-neg43.8%
mul-1-neg43.8%
Simplified43.8%
Taylor expanded in y1 around inf 57.6%
associate-*r*57.7%
*-commutative57.7%
*-commutative57.7%
Simplified57.7%
if -3.79999999999999978e-91 < y0 < -1.65000000000000009e-270 or 5.80000000000000043e-267 < y0 < 4.29999999999999999e-192Initial program 36.8%
Simplified36.8%
Taylor expanded in y around inf 46.0%
associate--l+46.0%
mul-1-neg46.0%
mul-1-neg46.0%
Simplified46.0%
Taylor expanded in k around inf 51.7%
if -1.65000000000000009e-270 < y0 < 5.80000000000000043e-267Initial program 30.0%
Simplified30.0%
Taylor expanded in z around -inf 45.2%
mul-1-neg45.2%
associate--l+45.2%
Simplified45.2%
Taylor expanded in t around inf 50.8%
if 4.29999999999999999e-192 < y0 < 1.79999999999999982e-105Initial program 41.7%
Simplified41.7%
Taylor expanded in y4 around inf 58.8%
Taylor expanded in y1 around inf 67.4%
associate-*r*67.5%
*-commutative67.5%
Simplified67.5%
if 1.79999999999999982e-105 < y0 < 2.0500000000000001e27Initial program 45.3%
Simplified45.3%
Taylor expanded in y around inf 42.6%
associate--l+42.6%
mul-1-neg42.6%
mul-1-neg42.6%
Simplified42.6%
Taylor expanded in c around inf 55.7%
associate-*r*46.4%
*-commutative46.4%
mul-1-neg46.4%
unsub-neg46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
Final simplification52.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* a (- (* y b) (* y1 y2))))))
(if (<= z -3.8e-30)
(* z (- (* y3 (- (* a y1) (* c y0))) (* k (* i y1))))
(if (<= z -1.62e-93)
(* k (* y (- (* i y5) (* b y4))))
(if (<= z -1.8e-132)
(* y0 (* b (- (* z k) (* x j))))
(if (<= z -2.4e-196)
t_1
(if (<= z 1.8e-264)
(* y0 (* x (- (* c y2) (* b j))))
(if (<= z 5.4e-181)
(* y (* y4 (- (* c y3) (* b k))))
(if (<= z 1.65e-26)
t_1
(if (<= z 1.6e+97)
(* (- (* b j) (* c y2)) (* t y4))
(if (<= z 3.9e+192)
(* k (* z (- (* b y0) (* i y1))))
(* t (* z (- (* c i) (* a b)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * ((y * b) - (y1 * y2)));
double tmp;
if (z <= -3.8e-30) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) - (k * (i * y1)));
} else if (z <= -1.62e-93) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (z <= -1.8e-132) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (z <= -2.4e-196) {
tmp = t_1;
} else if (z <= 1.8e-264) {
tmp = y0 * (x * ((c * y2) - (b * j)));
} else if (z <= 5.4e-181) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (z <= 1.65e-26) {
tmp = t_1;
} else if (z <= 1.6e+97) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (z <= 3.9e+192) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else {
tmp = t * (z * ((c * i) - (a * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = x * (a * ((y * b) - (y1 * y2)))
if (z <= (-3.8d-30)) then
tmp = z * ((y3 * ((a * y1) - (c * y0))) - (k * (i * y1)))
else if (z <= (-1.62d-93)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (z <= (-1.8d-132)) then
tmp = y0 * (b * ((z * k) - (x * j)))
else if (z <= (-2.4d-196)) then
tmp = t_1
else if (z <= 1.8d-264) then
tmp = y0 * (x * ((c * y2) - (b * j)))
else if (z <= 5.4d-181) then
tmp = y * (y4 * ((c * y3) - (b * k)))
else if (z <= 1.65d-26) then
tmp = t_1
else if (z <= 1.6d+97) then
tmp = ((b * j) - (c * y2)) * (t * y4)
else if (z <= 3.9d+192) then
tmp = k * (z * ((b * y0) - (i * y1)))
else
tmp = t * (z * ((c * i) - (a * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (a * ((y * b) - (y1 * y2)));
double tmp;
if (z <= -3.8e-30) {
tmp = z * ((y3 * ((a * y1) - (c * y0))) - (k * (i * y1)));
} else if (z <= -1.62e-93) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (z <= -1.8e-132) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (z <= -2.4e-196) {
tmp = t_1;
} else if (z <= 1.8e-264) {
tmp = y0 * (x * ((c * y2) - (b * j)));
} else if (z <= 5.4e-181) {
tmp = y * (y4 * ((c * y3) - (b * k)));
} else if (z <= 1.65e-26) {
tmp = t_1;
} else if (z <= 1.6e+97) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (z <= 3.9e+192) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else {
tmp = t * (z * ((c * i) - (a * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (a * ((y * b) - (y1 * y2))) tmp = 0 if z <= -3.8e-30: tmp = z * ((y3 * ((a * y1) - (c * y0))) - (k * (i * y1))) elif z <= -1.62e-93: tmp = k * (y * ((i * y5) - (b * y4))) elif z <= -1.8e-132: tmp = y0 * (b * ((z * k) - (x * j))) elif z <= -2.4e-196: tmp = t_1 elif z <= 1.8e-264: tmp = y0 * (x * ((c * y2) - (b * j))) elif z <= 5.4e-181: tmp = y * (y4 * ((c * y3) - (b * k))) elif z <= 1.65e-26: tmp = t_1 elif z <= 1.6e+97: tmp = ((b * j) - (c * y2)) * (t * y4) elif z <= 3.9e+192: tmp = k * (z * ((b * y0) - (i * y1))) else: tmp = t * (z * ((c * i) - (a * b))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(a * Float64(Float64(y * b) - Float64(y1 * y2)))) tmp = 0.0 if (z <= -3.8e-30) tmp = Float64(z * Float64(Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(k * Float64(i * y1)))); elseif (z <= -1.62e-93) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (z <= -1.8e-132) tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))); elseif (z <= -2.4e-196) tmp = t_1; elseif (z <= 1.8e-264) tmp = Float64(y0 * Float64(x * Float64(Float64(c * y2) - Float64(b * j)))); elseif (z <= 5.4e-181) tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); elseif (z <= 1.65e-26) tmp = t_1; elseif (z <= 1.6e+97) tmp = Float64(Float64(Float64(b * j) - Float64(c * y2)) * Float64(t * y4)); elseif (z <= 3.9e+192) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); else tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (a * ((y * b) - (y1 * y2))); tmp = 0.0; if (z <= -3.8e-30) tmp = z * ((y3 * ((a * y1) - (c * y0))) - (k * (i * y1))); elseif (z <= -1.62e-93) tmp = k * (y * ((i * y5) - (b * y4))); elseif (z <= -1.8e-132) tmp = y0 * (b * ((z * k) - (x * j))); elseif (z <= -2.4e-196) tmp = t_1; elseif (z <= 1.8e-264) tmp = y0 * (x * ((c * y2) - (b * j))); elseif (z <= 5.4e-181) tmp = y * (y4 * ((c * y3) - (b * k))); elseif (z <= 1.65e-26) tmp = t_1; elseif (z <= 1.6e+97) tmp = ((b * j) - (c * y2)) * (t * y4); elseif (z <= 3.9e+192) tmp = k * (z * ((b * y0) - (i * y1))); else tmp = t * (z * ((c * i) - (a * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(a * N[(N[(y * b), $MachinePrecision] - N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e-30], N[(z * N[(N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(k * N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.62e-93], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-132], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.4e-196], t$95$1, If[LessEqual[z, 1.8e-264], N[(y0 * N[(x * N[(N[(c * y2), $MachinePrecision] - N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e-181], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-26], t$95$1, If[LessEqual[z, 1.6e+97], N[(N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision] * N[(t * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e+192], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(a \cdot \left(y \cdot b - y1 \cdot y2\right)\right)\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{-30}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right) - k \cdot \left(i \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -1.62 \cdot 10^{-93}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-132}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-196}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-264}:\\
\;\;\;\;y0 \cdot \left(x \cdot \left(c \cdot y2 - b \cdot j\right)\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-181}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+97}:\\
\;\;\;\;\left(b \cdot j - c \cdot y2\right) \cdot \left(t \cdot y4\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{+192}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -3.8000000000000003e-30Initial program 26.8%
Simplified26.8%
Taylor expanded in z around -inf 59.9%
mul-1-neg59.9%
associate--l+59.9%
Simplified59.9%
Taylor expanded in t around 0 58.3%
Taylor expanded in y0 around 0 51.3%
mul-1-neg51.3%
Simplified51.3%
if -3.8000000000000003e-30 < z < -1.6200000000000001e-93Initial program 46.5%
Simplified46.5%
Taylor expanded in y around inf 46.9%
associate--l+46.9%
mul-1-neg46.9%
mul-1-neg46.9%
Simplified46.9%
Taylor expanded in k around inf 54.0%
if -1.6200000000000001e-93 < z < -1.80000000000000004e-132Initial program 20.0%
Simplified20.0%
Taylor expanded in y0 around inf 70.0%
mul-1-neg70.0%
Simplified70.0%
Taylor expanded in b around inf 60.8%
if -1.80000000000000004e-132 < z < -2.40000000000000021e-196 or 5.3999999999999999e-181 < z < 1.6499999999999999e-26Initial program 46.2%
Simplified48.9%
Taylor expanded in a around inf 59.6%
mul-1-neg59.6%
mul-1-neg59.6%
Simplified59.6%
Taylor expanded in x around -inf 60.1%
mul-1-neg60.1%
associate-*r*57.4%
distribute-lft-out--57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
if -2.40000000000000021e-196 < z < 1.8000000000000001e-264Initial program 46.0%
Simplified51.1%
Taylor expanded in y0 around inf 57.0%
mul-1-neg57.0%
Simplified57.0%
Taylor expanded in x around -inf 47.6%
mul-1-neg47.6%
*-commutative47.6%
+-commutative47.6%
distribute-rgt-neg-in47.6%
+-commutative47.6%
*-commutative47.6%
distribute-rgt-neg-in47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
Simplified47.6%
if 1.8000000000000001e-264 < z < 5.3999999999999999e-181Initial program 47.3%
Simplified47.3%
Taylor expanded in y around inf 47.4%
associate--l+47.4%
mul-1-neg47.4%
mul-1-neg47.4%
Simplified47.4%
Taylor expanded in y4 around inf 53.8%
*-commutative53.8%
*-commutative53.8%
Simplified53.8%
if 1.6499999999999999e-26 < z < 1.60000000000000008e97Initial program 19.2%
Simplified19.2%
Taylor expanded in y4 around inf 51.1%
Taylor expanded in t around inf 57.1%
associate-*r*57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
if 1.60000000000000008e97 < z < 3.8999999999999998e192Initial program 21.4%
Simplified21.4%
Taylor expanded in z around -inf 42.9%
mul-1-neg42.9%
associate--l+42.9%
Simplified42.9%
Taylor expanded in k around inf 61.1%
if 3.8999999999999998e192 < z Initial program 23.8%
Simplified23.8%
Taylor expanded in z around -inf 58.1%
mul-1-neg58.1%
associate--l+58.1%
Simplified58.1%
Taylor expanded in t around inf 63.1%
Final simplification54.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y (- (* i y5) (* b y4)))))
(t_2 (* y0 (* b (- (* z k) (* x j)))))
(t_3 (* (* a y1) (- (* z y3) (* x y2)))))
(if (<= y0 -4.8e+80)
t_2
(if (<= y0 -0.345)
(* a (* b (- (* x y) (* z t))))
(if (<= y0 -2.1e-16)
(* k (* i (* y y5)))
(if (<= y0 -3.3e-93)
t_3
(if (<= y0 -9e-270)
t_1
(if (<= y0 2.3e-278)
t_3
(if (<= y0 3e-180)
t_1
(if (<= y0 1.2e+26)
(* (* y c) (- (* y3 y4) (* x i)))
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 = k * (y * ((i * y5) - (b * y4)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = (a * y1) * ((z * y3) - (x * y2));
double tmp;
if (y0 <= -4.8e+80) {
tmp = t_2;
} else if (y0 <= -0.345) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y0 <= -2.1e-16) {
tmp = k * (i * (y * y5));
} else if (y0 <= -3.3e-93) {
tmp = t_3;
} else if (y0 <= -9e-270) {
tmp = t_1;
} else if (y0 <= 2.3e-278) {
tmp = t_3;
} else if (y0 <= 3e-180) {
tmp = t_1;
} else if (y0 <= 1.2e+26) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} 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 = k * (y * ((i * y5) - (b * y4)))
t_2 = y0 * (b * ((z * k) - (x * j)))
t_3 = (a * y1) * ((z * y3) - (x * y2))
if (y0 <= (-4.8d+80)) then
tmp = t_2
else if (y0 <= (-0.345d0)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y0 <= (-2.1d-16)) then
tmp = k * (i * (y * y5))
else if (y0 <= (-3.3d-93)) then
tmp = t_3
else if (y0 <= (-9d-270)) then
tmp = t_1
else if (y0 <= 2.3d-278) then
tmp = t_3
else if (y0 <= 3d-180) then
tmp = t_1
else if (y0 <= 1.2d+26) then
tmp = (y * c) * ((y3 * y4) - (x * i))
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 = k * (y * ((i * y5) - (b * y4)));
double t_2 = y0 * (b * ((z * k) - (x * j)));
double t_3 = (a * y1) * ((z * y3) - (x * y2));
double tmp;
if (y0 <= -4.8e+80) {
tmp = t_2;
} else if (y0 <= -0.345) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y0 <= -2.1e-16) {
tmp = k * (i * (y * y5));
} else if (y0 <= -3.3e-93) {
tmp = t_3;
} else if (y0 <= -9e-270) {
tmp = t_1;
} else if (y0 <= 2.3e-278) {
tmp = t_3;
} else if (y0 <= 3e-180) {
tmp = t_1;
} else if (y0 <= 1.2e+26) {
tmp = (y * c) * ((y3 * y4) - (x * i));
} 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 = k * (y * ((i * y5) - (b * y4))) t_2 = y0 * (b * ((z * k) - (x * j))) t_3 = (a * y1) * ((z * y3) - (x * y2)) tmp = 0 if y0 <= -4.8e+80: tmp = t_2 elif y0 <= -0.345: tmp = a * (b * ((x * y) - (z * t))) elif y0 <= -2.1e-16: tmp = k * (i * (y * y5)) elif y0 <= -3.3e-93: tmp = t_3 elif y0 <= -9e-270: tmp = t_1 elif y0 <= 2.3e-278: tmp = t_3 elif y0 <= 3e-180: tmp = t_1 elif y0 <= 1.2e+26: tmp = (y * c) * ((y3 * y4) - (x * i)) 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(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) t_2 = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))) t_3 = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))) tmp = 0.0 if (y0 <= -4.8e+80) tmp = t_2; elseif (y0 <= -0.345) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y0 <= -2.1e-16) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (y0 <= -3.3e-93) tmp = t_3; elseif (y0 <= -9e-270) tmp = t_1; elseif (y0 <= 2.3e-278) tmp = t_3; elseif (y0 <= 3e-180) tmp = t_1; elseif (y0 <= 1.2e+26) tmp = Float64(Float64(y * c) * Float64(Float64(y3 * y4) - Float64(x * i))); 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 = k * (y * ((i * y5) - (b * y4))); t_2 = y0 * (b * ((z * k) - (x * j))); t_3 = (a * y1) * ((z * y3) - (x * y2)); tmp = 0.0; if (y0 <= -4.8e+80) tmp = t_2; elseif (y0 <= -0.345) tmp = a * (b * ((x * y) - (z * t))); elseif (y0 <= -2.1e-16) tmp = k * (i * (y * y5)); elseif (y0 <= -3.3e-93) tmp = t_3; elseif (y0 <= -9e-270) tmp = t_1; elseif (y0 <= 2.3e-278) tmp = t_3; elseif (y0 <= 3e-180) tmp = t_1; elseif (y0 <= 1.2e+26) tmp = (y * c) * ((y3 * y4) - (x * i)); 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[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -4.8e+80], t$95$2, If[LessEqual[y0, -0.345], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -2.1e-16], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -3.3e-93], t$95$3, If[LessEqual[y0, -9e-270], t$95$1, If[LessEqual[y0, 2.3e-278], t$95$3, If[LessEqual[y0, 3e-180], t$95$1, If[LessEqual[y0, 1.2e+26], N[(N[(y * c), $MachinePrecision] * N[(N[(y3 * y4), $MachinePrecision] - N[(x * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
t_2 := y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
t_3 := \left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{if}\;y0 \leq -4.8 \cdot 10^{+80}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y0 \leq -0.345:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y0 \leq -2.1 \cdot 10^{-16}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -3.3 \cdot 10^{-93}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y0 \leq -9 \cdot 10^{-270}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 2.3 \cdot 10^{-278}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y0 \leq 3 \cdot 10^{-180}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq 1.2 \cdot 10^{+26}:\\
\;\;\;\;\left(y \cdot c\right) \cdot \left(y3 \cdot y4 - x \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y0 < -4.79999999999999958e80 or 1.20000000000000002e26 < y0 Initial program 22.4%
Simplified26.7%
Taylor expanded in y0 around inf 52.1%
mul-1-neg52.1%
Simplified52.1%
Taylor expanded in b around inf 48.7%
if -4.79999999999999958e80 < y0 < -0.34499999999999997Initial program 45.5%
Simplified45.5%
Taylor expanded in a around inf 50.9%
mul-1-neg50.9%
mul-1-neg50.9%
Simplified50.9%
Taylor expanded in b around inf 55.4%
if -0.34499999999999997 < y0 < -2.1000000000000001e-16Initial program 33.7%
Simplified33.7%
Taylor expanded in y5 around inf 51.1%
mul-1-neg51.1%
mul-1-neg51.1%
mul-1-neg51.1%
sub-neg51.1%
sub-neg51.1%
Simplified51.1%
Taylor expanded in k around inf 67.6%
associate-*r*67.6%
neg-mul-167.6%
*-commutative67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 83.4%
if -2.1000000000000001e-16 < y0 < -3.3000000000000001e-93 or -8.99999999999999996e-270 < y0 < 2.30000000000000003e-278Initial program 43.3%
Simplified53.3%
Taylor expanded in a around inf 44.3%
mul-1-neg44.3%
mul-1-neg44.3%
Simplified44.3%
Taylor expanded in y1 around inf 51.0%
associate-*r*54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if -3.3000000000000001e-93 < y0 < -8.99999999999999996e-270 or 2.30000000000000003e-278 < y0 < 3.0000000000000001e-180Initial program 34.9%
Simplified34.9%
Taylor expanded in y around inf 41.6%
associate--l+41.6%
mul-1-neg41.6%
mul-1-neg41.6%
Simplified41.6%
Taylor expanded in k around inf 50.1%
if 3.0000000000000001e-180 < y0 < 1.20000000000000002e26Initial program 44.0%
Simplified44.0%
Taylor expanded in y around inf 35.5%
associate--l+35.5%
mul-1-neg35.5%
mul-1-neg35.5%
Simplified35.5%
Taylor expanded in c around inf 52.7%
associate-*r*43.3%
*-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
*-commutative43.3%
*-commutative43.3%
Simplified43.3%
Final simplification50.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y (- (* i y5) (* b y4))))))
(if (<= y5 -3.8e+183)
t_1
(if (<= y5 -1.1e+105)
(* i (* y5 (- (* y k) (* t j))))
(if (<= y5 -7.2e+21)
(* z (* y3 (- (* a y1) (* c y0))))
(if (<= y5 -1.52e-260)
(* (- (* b j) (* c y2)) (* t y4))
(if (<= y5 2.45e-247)
(* y0 (* c (- (* x y2) (* z y3))))
(if (<= y5 5.6e-173)
(* (* a y1) (- (* z y3) (* x y2)))
(if (<= y5 2.3e-106)
t_1
(if (<= y5 14.2)
(* y4 (* y1 (- (* k y2) (* j y3))))
(* a (* y (- (* x b) (* y3 y5))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y * ((i * y5) - (b * y4)));
double tmp;
if (y5 <= -3.8e+183) {
tmp = t_1;
} else if (y5 <= -1.1e+105) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y5 <= -7.2e+21) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (y5 <= -1.52e-260) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (y5 <= 2.45e-247) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (y5 <= 5.6e-173) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (y5 <= 2.3e-106) {
tmp = t_1;
} else if (y5 <= 14.2) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else {
tmp = a * (y * ((x * b) - (y3 * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y * ((i * y5) - (b * y4)))
if (y5 <= (-3.8d+183)) then
tmp = t_1
else if (y5 <= (-1.1d+105)) then
tmp = i * (y5 * ((y * k) - (t * j)))
else if (y5 <= (-7.2d+21)) then
tmp = z * (y3 * ((a * y1) - (c * y0)))
else if (y5 <= (-1.52d-260)) then
tmp = ((b * j) - (c * y2)) * (t * y4)
else if (y5 <= 2.45d-247) then
tmp = y0 * (c * ((x * y2) - (z * y3)))
else if (y5 <= 5.6d-173) then
tmp = (a * y1) * ((z * y3) - (x * y2))
else if (y5 <= 2.3d-106) then
tmp = t_1
else if (y5 <= 14.2d0) then
tmp = y4 * (y1 * ((k * y2) - (j * y3)))
else
tmp = a * (y * ((x * b) - (y3 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y * ((i * y5) - (b * y4)));
double tmp;
if (y5 <= -3.8e+183) {
tmp = t_1;
} else if (y5 <= -1.1e+105) {
tmp = i * (y5 * ((y * k) - (t * j)));
} else if (y5 <= -7.2e+21) {
tmp = z * (y3 * ((a * y1) - (c * y0)));
} else if (y5 <= -1.52e-260) {
tmp = ((b * j) - (c * y2)) * (t * y4);
} else if (y5 <= 2.45e-247) {
tmp = y0 * (c * ((x * y2) - (z * y3)));
} else if (y5 <= 5.6e-173) {
tmp = (a * y1) * ((z * y3) - (x * y2));
} else if (y5 <= 2.3e-106) {
tmp = t_1;
} else if (y5 <= 14.2) {
tmp = y4 * (y1 * ((k * y2) - (j * y3)));
} else {
tmp = a * (y * ((x * b) - (y3 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y * ((i * y5) - (b * y4))) tmp = 0 if y5 <= -3.8e+183: tmp = t_1 elif y5 <= -1.1e+105: tmp = i * (y5 * ((y * k) - (t * j))) elif y5 <= -7.2e+21: tmp = z * (y3 * ((a * y1) - (c * y0))) elif y5 <= -1.52e-260: tmp = ((b * j) - (c * y2)) * (t * y4) elif y5 <= 2.45e-247: tmp = y0 * (c * ((x * y2) - (z * y3))) elif y5 <= 5.6e-173: tmp = (a * y1) * ((z * y3) - (x * y2)) elif y5 <= 2.3e-106: tmp = t_1 elif y5 <= 14.2: tmp = y4 * (y1 * ((k * y2) - (j * y3))) else: tmp = a * (y * ((x * b) - (y3 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))) tmp = 0.0 if (y5 <= -3.8e+183) tmp = t_1; elseif (y5 <= -1.1e+105) tmp = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))); elseif (y5 <= -7.2e+21) tmp = Float64(z * Float64(y3 * Float64(Float64(a * y1) - Float64(c * y0)))); elseif (y5 <= -1.52e-260) tmp = Float64(Float64(Float64(b * j) - Float64(c * y2)) * Float64(t * y4)); elseif (y5 <= 2.45e-247) tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (y5 <= 5.6e-173) tmp = Float64(Float64(a * y1) * Float64(Float64(z * y3) - Float64(x * y2))); elseif (y5 <= 2.3e-106) tmp = t_1; elseif (y5 <= 14.2) tmp = Float64(y4 * Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))); else tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y * ((i * y5) - (b * y4))); tmp = 0.0; if (y5 <= -3.8e+183) tmp = t_1; elseif (y5 <= -1.1e+105) tmp = i * (y5 * ((y * k) - (t * j))); elseif (y5 <= -7.2e+21) tmp = z * (y3 * ((a * y1) - (c * y0))); elseif (y5 <= -1.52e-260) tmp = ((b * j) - (c * y2)) * (t * y4); elseif (y5 <= 2.45e-247) tmp = y0 * (c * ((x * y2) - (z * y3))); elseif (y5 <= 5.6e-173) tmp = (a * y1) * ((z * y3) - (x * y2)); elseif (y5 <= 2.3e-106) tmp = t_1; elseif (y5 <= 14.2) tmp = y4 * (y1 * ((k * y2) - (j * y3))); else tmp = a * (y * ((x * b) - (y3 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -3.8e+183], t$95$1, If[LessEqual[y5, -1.1e+105], N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -7.2e+21], N[(z * N[(y3 * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.52e-260], N[(N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision] * N[(t * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.45e-247], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.6e-173], N[(N[(a * y1), $MachinePrecision] * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.3e-106], t$95$1, If[LessEqual[y5, 14.2], N[(y4 * N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{if}\;y5 \leq -3.8 \cdot 10^{+183}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq -1.1 \cdot 10^{+105}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{elif}\;y5 \leq -7.2 \cdot 10^{+21}:\\
\;\;\;\;z \cdot \left(y3 \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq -1.52 \cdot 10^{-260}:\\
\;\;\;\;\left(b \cdot j - c \cdot y2\right) \cdot \left(t \cdot y4\right)\\
\mathbf{elif}\;y5 \leq 2.45 \cdot 10^{-247}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;y5 \leq 5.6 \cdot 10^{-173}:\\
\;\;\;\;\left(a \cdot y1\right) \cdot \left(z \cdot y3 - x \cdot y2\right)\\
\mathbf{elif}\;y5 \leq 2.3 \cdot 10^{-106}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y5 \leq 14.2:\\
\;\;\;\;y4 \cdot \left(y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -3.80000000000000001e183 or 5.5999999999999998e-173 < y5 < 2.3000000000000001e-106Initial program 16.6%
Simplified16.6%
Taylor expanded in y around inf 45.4%
associate--l+45.4%
mul-1-neg45.4%
mul-1-neg45.4%
Simplified45.4%
Taylor expanded in k around inf 64.3%
if -3.80000000000000001e183 < y5 < -1.10000000000000003e105Initial program 20.8%
Simplified24.9%
Taylor expanded in y5 around inf 47.4%
mul-1-neg47.4%
mul-1-neg47.4%
mul-1-neg47.4%
sub-neg47.4%
sub-neg47.4%
Simplified47.4%
Taylor expanded in i around inf 51.4%
if -1.10000000000000003e105 < y5 < -7.2e21Initial program 47.0%
Simplified47.0%
Taylor expanded in z around -inf 64.5%
mul-1-neg64.5%
associate--l+64.5%
Simplified64.5%
Taylor expanded in t around 0 70.4%
Taylor expanded in y3 around inf 59.7%
if -7.2e21 < y5 < -1.52e-260Initial program 38.8%
Simplified38.8%
Taylor expanded in y4 around inf 47.2%
Taylor expanded in t around inf 41.7%
associate-*r*41.6%
*-commutative41.6%
*-commutative41.6%
Simplified41.6%
if -1.52e-260 < y5 < 2.45e-247Initial program 51.8%
Simplified59.2%
Taylor expanded in y0 around inf 41.6%
mul-1-neg41.6%
Simplified41.6%
Taylor expanded in c around inf 42.1%
*-commutative42.1%
*-commutative42.1%
associate-*l*45.8%
*-commutative45.8%
Simplified45.8%
if 2.45e-247 < y5 < 5.5999999999999998e-173Initial program 66.5%
Simplified77.6%
Taylor expanded in a around inf 66.7%
mul-1-neg66.7%
mul-1-neg66.7%
Simplified66.7%
Taylor expanded in y1 around inf 57.0%
associate-*r*67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 2.3000000000000001e-106 < y5 < 14.199999999999999Initial program 38.0%
Simplified38.0%
Taylor expanded in y4 around inf 42.3%
Taylor expanded in y1 around inf 50.8%
if 14.199999999999999 < y5 Initial program 26.3%
Simplified29.4%
Taylor expanded in a around inf 39.2%
mul-1-neg39.2%
mul-1-neg39.2%
Simplified39.2%
Taylor expanded in y around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Final simplification50.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y (- (* x b) (* y3 y5)))))
(t_2 (* i (* y5 (- (* y k) (* t j))))))
(if (<= z -3.2e-15)
(* a (* t (- (* y2 y5) (* z b))))
(if (<= z 6.8e-304)
t_1
(if (<= z 1.02e-139)
t_2
(if (<= z 5200.0)
t_1
(if (<= z 6.8e+125) t_2 (* k (* y0 (* z b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * ((x * b) - (y3 * y5)));
double t_2 = i * (y5 * ((y * k) - (t * j)));
double tmp;
if (z <= -3.2e-15) {
tmp = a * (t * ((y2 * y5) - (z * b)));
} else if (z <= 6.8e-304) {
tmp = t_1;
} else if (z <= 1.02e-139) {
tmp = t_2;
} else if (z <= 5200.0) {
tmp = t_1;
} else if (z <= 6.8e+125) {
tmp = t_2;
} else {
tmp = k * (y0 * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y * ((x * b) - (y3 * y5)))
t_2 = i * (y5 * ((y * k) - (t * j)))
if (z <= (-3.2d-15)) then
tmp = a * (t * ((y2 * y5) - (z * b)))
else if (z <= 6.8d-304) then
tmp = t_1
else if (z <= 1.02d-139) then
tmp = t_2
else if (z <= 5200.0d0) then
tmp = t_1
else if (z <= 6.8d+125) then
tmp = t_2
else
tmp = k * (y0 * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * ((x * b) - (y3 * y5)));
double t_2 = i * (y5 * ((y * k) - (t * j)));
double tmp;
if (z <= -3.2e-15) {
tmp = a * (t * ((y2 * y5) - (z * b)));
} else if (z <= 6.8e-304) {
tmp = t_1;
} else if (z <= 1.02e-139) {
tmp = t_2;
} else if (z <= 5200.0) {
tmp = t_1;
} else if (z <= 6.8e+125) {
tmp = t_2;
} else {
tmp = k * (y0 * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y * ((x * b) - (y3 * y5))) t_2 = i * (y5 * ((y * k) - (t * j))) tmp = 0 if z <= -3.2e-15: tmp = a * (t * ((y2 * y5) - (z * b))) elif z <= 6.8e-304: tmp = t_1 elif z <= 1.02e-139: tmp = t_2 elif z <= 5200.0: tmp = t_1 elif z <= 6.8e+125: tmp = t_2 else: tmp = k * (y0 * (z * b)) 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(y * Float64(Float64(x * b) - Float64(y3 * y5)))) t_2 = Float64(i * Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))) tmp = 0.0 if (z <= -3.2e-15) tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * b)))); elseif (z <= 6.8e-304) tmp = t_1; elseif (z <= 1.02e-139) tmp = t_2; elseif (z <= 5200.0) tmp = t_1; elseif (z <= 6.8e+125) tmp = t_2; else tmp = Float64(k * Float64(y0 * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y * ((x * b) - (y3 * y5))); t_2 = i * (y5 * ((y * k) - (t * j))); tmp = 0.0; if (z <= -3.2e-15) tmp = a * (t * ((y2 * y5) - (z * b))); elseif (z <= 6.8e-304) tmp = t_1; elseif (z <= 1.02e-139) tmp = t_2; elseif (z <= 5200.0) tmp = t_1; elseif (z <= 6.8e+125) tmp = t_2; else tmp = k * (y0 * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e-15], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e-304], t$95$1, If[LessEqual[z, 1.02e-139], t$95$2, If[LessEqual[z, 5200.0], t$95$1, If[LessEqual[z, 6.8e+125], t$95$2, N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
t_2 := i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-139}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 5200:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+125}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -3.1999999999999999e-15Initial program 28.0%
Simplified39.8%
Taylor expanded in a around inf 46.1%
mul-1-neg46.1%
mul-1-neg46.1%
Simplified46.1%
Taylor expanded in t around inf 42.3%
*-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
*-commutative42.3%
*-commutative42.3%
Simplified42.3%
if -3.1999999999999999e-15 < z < 6.7999999999999997e-304 or 1.0200000000000001e-139 < z < 5200Initial program 38.7%
Simplified43.0%
Taylor expanded in a around inf 47.8%
mul-1-neg47.8%
mul-1-neg47.8%
Simplified47.8%
Taylor expanded in y around inf 42.8%
+-commutative42.8%
mul-1-neg42.8%
unsub-neg42.8%
Simplified42.8%
if 6.7999999999999997e-304 < z < 1.0200000000000001e-139 or 5200 < z < 6.7999999999999998e125Initial program 38.0%
Simplified39.7%
Taylor expanded in y5 around inf 38.8%
mul-1-neg38.8%
mul-1-neg38.8%
mul-1-neg38.8%
sub-neg38.8%
sub-neg38.8%
Simplified38.8%
Taylor expanded in i around inf 37.6%
if 6.7999999999999998e125 < z Initial program 24.3%
Simplified24.3%
Taylor expanded in z around -inf 57.3%
mul-1-neg57.3%
associate--l+57.3%
Simplified57.3%
Taylor expanded in t around 0 46.4%
Taylor expanded in b around inf 49.6%
mul-1-neg49.6%
distribute-rgt-neg-in49.6%
distribute-rgt-neg-in49.6%
*-commutative49.6%
distribute-rgt-neg-in49.6%
Simplified49.6%
Final simplification42.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -6.2e+146)
(* a (* t (* z (- b))))
(if (<= z -2.6e+47)
(* c (* y3 (* z (- y0))))
(if (<= z -1.85e-29)
(* a (* z (* y1 y3)))
(if (<= z -1.8e-294)
(* a (* (* x y) b))
(if (<= z 1.55e+122)
(* i (* j (* t (- y5))))
(if (<= z 5.2e+185)
(* k (* y1 (* z (- i))))
(* c (* y0 (* z (- y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -6.2e+146) {
tmp = a * (t * (z * -b));
} else if (z <= -2.6e+47) {
tmp = c * (y3 * (z * -y0));
} else if (z <= -1.85e-29) {
tmp = a * (z * (y1 * y3));
} else if (z <= -1.8e-294) {
tmp = a * ((x * y) * b);
} else if (z <= 1.55e+122) {
tmp = i * (j * (t * -y5));
} else if (z <= 5.2e+185) {
tmp = k * (y1 * (z * -i));
} else {
tmp = c * (y0 * (z * -y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-6.2d+146)) then
tmp = a * (t * (z * -b))
else if (z <= (-2.6d+47)) then
tmp = c * (y3 * (z * -y0))
else if (z <= (-1.85d-29)) then
tmp = a * (z * (y1 * y3))
else if (z <= (-1.8d-294)) then
tmp = a * ((x * y) * b)
else if (z <= 1.55d+122) then
tmp = i * (j * (t * -y5))
else if (z <= 5.2d+185) then
tmp = k * (y1 * (z * -i))
else
tmp = c * (y0 * (z * -y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -6.2e+146) {
tmp = a * (t * (z * -b));
} else if (z <= -2.6e+47) {
tmp = c * (y3 * (z * -y0));
} else if (z <= -1.85e-29) {
tmp = a * (z * (y1 * y3));
} else if (z <= -1.8e-294) {
tmp = a * ((x * y) * b);
} else if (z <= 1.55e+122) {
tmp = i * (j * (t * -y5));
} else if (z <= 5.2e+185) {
tmp = k * (y1 * (z * -i));
} else {
tmp = c * (y0 * (z * -y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -6.2e+146: tmp = a * (t * (z * -b)) elif z <= -2.6e+47: tmp = c * (y3 * (z * -y0)) elif z <= -1.85e-29: tmp = a * (z * (y1 * y3)) elif z <= -1.8e-294: tmp = a * ((x * y) * b) elif z <= 1.55e+122: tmp = i * (j * (t * -y5)) elif z <= 5.2e+185: tmp = k * (y1 * (z * -i)) else: tmp = c * (y0 * (z * -y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -6.2e+146) tmp = Float64(a * Float64(t * Float64(z * Float64(-b)))); elseif (z <= -2.6e+47) tmp = Float64(c * Float64(y3 * Float64(z * Float64(-y0)))); elseif (z <= -1.85e-29) tmp = Float64(a * Float64(z * Float64(y1 * y3))); elseif (z <= -1.8e-294) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (z <= 1.55e+122) tmp = Float64(i * Float64(j * Float64(t * Float64(-y5)))); elseif (z <= 5.2e+185) tmp = Float64(k * Float64(y1 * Float64(z * Float64(-i)))); else tmp = Float64(c * Float64(y0 * Float64(z * Float64(-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 (z <= -6.2e+146) tmp = a * (t * (z * -b)); elseif (z <= -2.6e+47) tmp = c * (y3 * (z * -y0)); elseif (z <= -1.85e-29) tmp = a * (z * (y1 * y3)); elseif (z <= -1.8e-294) tmp = a * ((x * y) * b); elseif (z <= 1.55e+122) tmp = i * (j * (t * -y5)); elseif (z <= 5.2e+185) tmp = k * (y1 * (z * -i)); else tmp = c * (y0 * (z * -y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -6.2e+146], N[(a * N[(t * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e+47], N[(c * N[(y3 * N[(z * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.85e-29], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-294], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+122], N[(i * N[(j * N[(t * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+185], N[(k * N[(y1 * N[(z * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+146}:\\
\;\;\;\;a \cdot \left(t \cdot \left(z \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{+47}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(z \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-29}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-294}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+122}:\\
\;\;\;\;i \cdot \left(j \cdot \left(t \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+185}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(z \cdot \left(-i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\end{array}
\end{array}
if z < -6.2000000000000004e146Initial program 20.6%
Simplified29.6%
Taylor expanded in a around inf 41.3%
mul-1-neg41.3%
mul-1-neg41.3%
Simplified41.3%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around 0 44.4%
associate-*r*44.4%
neg-mul-144.4%
*-commutative44.4%
Simplified44.4%
if -6.2000000000000004e146 < z < -2.60000000000000003e47Initial program 35.3%
Simplified35.3%
Taylor expanded in z around -inf 64.7%
mul-1-neg64.7%
associate--l+64.7%
Simplified64.7%
Taylor expanded in t around 0 64.8%
Taylor expanded in c around inf 37.5%
associate-*r*37.3%
*-commutative37.3%
associate-*l*43.1%
Simplified43.1%
if -2.60000000000000003e47 < z < -1.8499999999999999e-29Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 60.5%
mul-1-neg60.5%
associate--l+60.5%
Simplified60.5%
Taylor expanded in t around 0 60.4%
Taylor expanded in a around inf 60.7%
mul-1-neg60.7%
associate-*r*60.7%
Simplified60.7%
if -1.8499999999999999e-29 < z < -1.8000000000000001e-294Initial program 37.4%
Simplified39.1%
Taylor expanded in a around inf 46.3%
mul-1-neg46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in b around inf 31.6%
Taylor expanded in y around inf 30.1%
*-commutative30.1%
associate-*r*31.7%
*-commutative31.7%
Simplified31.7%
if -1.8000000000000001e-294 < z < 1.54999999999999999e122Initial program 40.9%
Simplified45.5%
Taylor expanded in y5 around inf 40.5%
mul-1-neg40.5%
mul-1-neg40.5%
mul-1-neg40.5%
sub-neg40.5%
sub-neg40.5%
Simplified40.5%
Taylor expanded in j around -inf 27.9%
*-commutative27.9%
mul-1-neg27.9%
unsub-neg27.9%
*-commutative27.9%
*-commutative27.9%
Simplified27.9%
Taylor expanded in y3 around 0 29.9%
mul-1-neg29.9%
distribute-rgt-neg-in29.9%
associate-*r*28.8%
*-commutative28.8%
associate-*l*28.8%
Simplified28.8%
if 1.54999999999999999e122 < z < 5.20000000000000001e185Initial program 26.7%
Simplified26.7%
Taylor expanded in z around -inf 46.7%
mul-1-neg46.7%
associate--l+46.7%
Simplified46.7%
Taylor expanded in t around 0 47.0%
Taylor expanded in i around inf 54.2%
associate-*r*54.2%
*-commutative54.2%
associate-*l*60.5%
Simplified60.5%
if 5.20000000000000001e185 < z Initial program 21.7%
Simplified21.7%
Taylor expanded in z around -inf 61.7%
mul-1-neg61.7%
associate--l+61.7%
Simplified61.7%
Taylor expanded in t around 0 48.4%
Taylor expanded in c around inf 44.2%
Final simplification37.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y (- (* x b) (* y3 y5))))))
(if (<= y -1.2e+83)
t_1
(if (<= y -1.22e+35)
(* c (* y0 (* z (- y3))))
(if (or (<= y -1.5e-190) (not (<= y 3.2e+62)))
t_1
(* a (* t (- (* y2 y5) (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * ((x * b) - (y3 * y5)));
double tmp;
if (y <= -1.2e+83) {
tmp = t_1;
} else if (y <= -1.22e+35) {
tmp = c * (y0 * (z * -y3));
} else if ((y <= -1.5e-190) || !(y <= 3.2e+62)) {
tmp = t_1;
} else {
tmp = a * (t * ((y2 * y5) - (z * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y * ((x * b) - (y3 * y5)))
if (y <= (-1.2d+83)) then
tmp = t_1
else if (y <= (-1.22d+35)) then
tmp = c * (y0 * (z * -y3))
else if ((y <= (-1.5d-190)) .or. (.not. (y <= 3.2d+62))) then
tmp = t_1
else
tmp = a * (t * ((y2 * y5) - (z * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * ((x * b) - (y3 * y5)));
double tmp;
if (y <= -1.2e+83) {
tmp = t_1;
} else if (y <= -1.22e+35) {
tmp = c * (y0 * (z * -y3));
} else if ((y <= -1.5e-190) || !(y <= 3.2e+62)) {
tmp = t_1;
} else {
tmp = a * (t * ((y2 * y5) - (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y * ((x * b) - (y3 * y5))) tmp = 0 if y <= -1.2e+83: tmp = t_1 elif y <= -1.22e+35: tmp = c * (y0 * (z * -y3)) elif (y <= -1.5e-190) or not (y <= 3.2e+62): tmp = t_1 else: tmp = a * (t * ((y2 * y5) - (z * b))) 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(y * Float64(Float64(x * b) - Float64(y3 * y5)))) tmp = 0.0 if (y <= -1.2e+83) tmp = t_1; elseif (y <= -1.22e+35) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))); elseif ((y <= -1.5e-190) || !(y <= 3.2e+62)) tmp = t_1; else tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y * ((x * b) - (y3 * y5))); tmp = 0.0; if (y <= -1.2e+83) tmp = t_1; elseif (y <= -1.22e+35) tmp = c * (y0 * (z * -y3)); elseif ((y <= -1.5e-190) || ~((y <= 3.2e+62))) tmp = t_1; else tmp = a * (t * ((y2 * y5) - (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.2e+83], t$95$1, If[LessEqual[y, -1.22e+35], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.5e-190], N[Not[LessEqual[y, 3.2e+62]], $MachinePrecision]], t$95$1, N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{if}\;y \leq -1.2 \cdot 10^{+83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.22 \cdot 10^{+35}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-190} \lor \neg \left(y \leq 3.2 \cdot 10^{+62}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.19999999999999996e83 or -1.21999999999999999e35 < y < -1.4999999999999999e-190 or 3.19999999999999984e62 < y Initial program 33.3%
Simplified35.7%
Taylor expanded in a around inf 38.5%
mul-1-neg38.5%
mul-1-neg38.5%
Simplified38.5%
Taylor expanded in y around inf 46.0%
+-commutative46.0%
mul-1-neg46.0%
unsub-neg46.0%
Simplified46.0%
if -1.19999999999999996e83 < y < -1.21999999999999999e35Initial program 30.6%
Simplified30.6%
Taylor expanded in z around -inf 41.4%
mul-1-neg41.4%
associate--l+41.4%
Simplified41.4%
Taylor expanded in t around 0 36.5%
Taylor expanded in c around inf 36.8%
if -1.4999999999999999e-190 < y < 3.19999999999999984e62Initial program 34.6%
Simplified42.8%
Taylor expanded in a around inf 48.1%
mul-1-neg48.1%
mul-1-neg48.1%
Simplified48.1%
Taylor expanded in t around inf 35.8%
*-commutative35.8%
mul-1-neg35.8%
unsub-neg35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
Final simplification40.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 (<= y0 -4.5e+94)
(* k (* y2 (* y0 (- y5))))
(if (<= y0 -400.0)
t_1
(if (<= y0 -2.4e-21)
(* k (* i (* y y5)))
(if (<= y0 1.45e+124) t_1 (* k (* y0 (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y0 <= -4.5e+94) {
tmp = k * (y2 * (y0 * -y5));
} else if (y0 <= -400.0) {
tmp = t_1;
} else if (y0 <= -2.4e-21) {
tmp = k * (i * (y * y5));
} else if (y0 <= 1.45e+124) {
tmp = t_1;
} else {
tmp = k * (y0 * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (z * t)))
if (y0 <= (-4.5d+94)) then
tmp = k * (y2 * (y0 * -y5))
else if (y0 <= (-400.0d0)) then
tmp = t_1
else if (y0 <= (-2.4d-21)) then
tmp = k * (i * (y * y5))
else if (y0 <= 1.45d+124) then
tmp = t_1
else
tmp = k * (y0 * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (z * t)));
double tmp;
if (y0 <= -4.5e+94) {
tmp = k * (y2 * (y0 * -y5));
} else if (y0 <= -400.0) {
tmp = t_1;
} else if (y0 <= -2.4e-21) {
tmp = k * (i * (y * y5));
} else if (y0 <= 1.45e+124) {
tmp = t_1;
} else {
tmp = k * (y0 * (z * b));
}
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.5e+94: tmp = k * (y2 * (y0 * -y5)) elif y0 <= -400.0: tmp = t_1 elif y0 <= -2.4e-21: tmp = k * (i * (y * y5)) elif y0 <= 1.45e+124: tmp = t_1 else: tmp = k * (y0 * (z * b)) 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.5e+94) tmp = Float64(k * Float64(y2 * Float64(y0 * Float64(-y5)))); elseif (y0 <= -400.0) tmp = t_1; elseif (y0 <= -2.4e-21) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (y0 <= 1.45e+124) tmp = t_1; else tmp = Float64(k * Float64(y0 * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (z * t))); tmp = 0.0; if (y0 <= -4.5e+94) tmp = k * (y2 * (y0 * -y5)); elseif (y0 <= -400.0) tmp = t_1; elseif (y0 <= -2.4e-21) tmp = k * (i * (y * y5)); elseif (y0 <= 1.45e+124) tmp = t_1; else tmp = k * (y0 * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -4.5e+94], N[(k * N[(y2 * N[(y0 * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -400.0], t$95$1, If[LessEqual[y0, -2.4e-21], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.45e+124], t$95$1, N[(k * N[(y0 * N[(z * b), $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.5 \cdot 10^{+94}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y0 \cdot \left(-y5\right)\right)\right)\\
\mathbf{elif}\;y0 \leq -400:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y0 \leq -2.4 \cdot 10^{-21}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 1.45 \cdot 10^{+124}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\end{array}
\end{array}
if y0 < -4.49999999999999972e94Initial program 19.6%
Simplified24.5%
Taylor expanded in y5 around inf 37.1%
mul-1-neg37.1%
mul-1-neg37.1%
mul-1-neg37.1%
sub-neg37.1%
sub-neg37.1%
Simplified37.1%
Taylor expanded in k around inf 42.4%
associate-*r*42.4%
neg-mul-142.4%
*-commutative42.4%
+-commutative42.4%
mul-1-neg42.4%
unsub-neg42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in y2 around inf 32.9%
associate-*r*39.9%
Simplified39.9%
if -4.49999999999999972e94 < y0 < -400 or -2.3999999999999999e-21 < y0 < 1.45000000000000011e124Initial program 40.9%
Simplified46.6%
Taylor expanded in a around inf 43.2%
mul-1-neg43.2%
mul-1-neg43.2%
Simplified43.2%
Taylor expanded in b around inf 35.2%
if -400 < y0 < -2.3999999999999999e-21Initial program 33.7%
Simplified33.7%
Taylor expanded in y5 around inf 51.1%
mul-1-neg51.1%
mul-1-neg51.1%
mul-1-neg51.1%
sub-neg51.1%
sub-neg51.1%
Simplified51.1%
Taylor expanded in k around inf 67.6%
associate-*r*67.6%
neg-mul-167.6%
*-commutative67.6%
+-commutative67.6%
mul-1-neg67.6%
unsub-neg67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in i around inf 83.4%
if 1.45000000000000011e124 < y0 Initial program 12.3%
Simplified12.3%
Taylor expanded in z around -inf 52.2%
mul-1-neg52.2%
associate--l+52.2%
Simplified52.2%
Taylor expanded in t around 0 58.0%
Taylor expanded in b around inf 55.6%
mul-1-neg55.6%
distribute-rgt-neg-in55.6%
distribute-rgt-neg-in55.6%
*-commutative55.6%
distribute-rgt-neg-in55.6%
Simplified55.6%
Final simplification39.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.85e+55)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= y3 -9.5e-216)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y3 1.7e-198)
(* y0 (* b (- (* z k) (* x j))))
(if (<= y3 1.4e+65)
(* a (* b (- (* x y) (* z t))))
(* y (* y4 (- (* c y3) (* b k)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.85e+55) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -9.5e-216) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 1.7e-198) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (y3 <= 1.4e+65) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y * (y4 * ((c * y3) - (b * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.85d+55)) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (y3 <= (-9.5d-216)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y3 <= 1.7d-198) then
tmp = y0 * (b * ((z * k) - (x * j)))
else if (y3 <= 1.4d+65) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = y * (y4 * ((c * y3) - (b * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.85e+55) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -9.5e-216) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 1.7e-198) {
tmp = y0 * (b * ((z * k) - (x * j)));
} else if (y3 <= 1.4e+65) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y * (y4 * ((c * y3) - (b * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.85e+55: tmp = y * (a * ((x * b) - (y3 * y5))) elif y3 <= -9.5e-216: tmp = k * (y * ((i * y5) - (b * y4))) elif y3 <= 1.7e-198: tmp = y0 * (b * ((z * k) - (x * j))) elif y3 <= 1.4e+65: tmp = a * (b * ((x * y) - (z * t))) else: tmp = y * (y4 * ((c * y3) - (b * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.85e+55) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= -9.5e-216) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 1.7e-198) tmp = Float64(y0 * Float64(b * Float64(Float64(z * k) - Float64(x * j)))); elseif (y3 <= 1.4e+65) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.85e+55) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (y3 <= -9.5e-216) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y3 <= 1.7e-198) tmp = y0 * (b * ((z * k) - (x * j))); elseif (y3 <= 1.4e+65) tmp = a * (b * ((x * y) - (z * t))); else tmp = y * (y4 * ((c * y3) - (b * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.85e+55], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.5e-216], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.7e-198], N[(y0 * N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.4e+65], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.85 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-216}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 1.7 \cdot 10^{-198}:\\
\;\;\;\;y0 \cdot \left(b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{+65}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\end{array}
\end{array}
if y3 < -1.8500000000000001e55Initial program 19.1%
Simplified21.3%
Taylor expanded in a around inf 38.3%
mul-1-neg38.3%
mul-1-neg38.3%
Simplified38.3%
Taylor expanded in y around inf 45.5%
associate-*r*45.5%
*-commutative45.5%
associate-*r*47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
if -1.8500000000000001e55 < y3 < -9.49999999999999943e-216Initial program 35.8%
Simplified35.8%
Taylor expanded in y around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in k around inf 41.1%
if -9.49999999999999943e-216 < y3 < 1.6999999999999999e-198Initial program 41.3%
Simplified41.3%
Taylor expanded in y0 around inf 48.1%
mul-1-neg48.1%
Simplified48.1%
Taylor expanded in b around inf 45.7%
if 1.6999999999999999e-198 < y3 < 1.3999999999999999e65Initial program 39.8%
Simplified44.9%
Taylor expanded in a around inf 45.8%
mul-1-neg45.8%
mul-1-neg45.8%
Simplified45.8%
Taylor expanded in b around inf 40.9%
if 1.3999999999999999e65 < y3 Initial program 32.0%
Simplified32.0%
Taylor expanded in y around inf 38.5%
associate--l+38.5%
mul-1-neg38.5%
mul-1-neg38.5%
Simplified38.5%
Taylor expanded in y4 around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Final simplification45.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))))
(if (<= b -4.4e+54)
t_1
(if (<= b -7.4e-240)
(* (* x y2) (* a (- y1)))
(if (<= b 6.2e-183)
(* c (* y3 (* z (- y0))))
(if (<= b 245000.0)
(* k (* y (* i y5)))
(if (<= b 6.5e+146) (* c (* y0 (* 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 = y * (a * (x * b));
double tmp;
if (b <= -4.4e+54) {
tmp = t_1;
} else if (b <= -7.4e-240) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 6.2e-183) {
tmp = c * (y3 * (z * -y0));
} else if (b <= 245000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 6.5e+146) {
tmp = c * (y0 * (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) :: tmp
t_1 = y * (a * (x * b))
if (b <= (-4.4d+54)) then
tmp = t_1
else if (b <= (-7.4d-240)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 6.2d-183) then
tmp = c * (y3 * (z * -y0))
else if (b <= 245000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 6.5d+146) then
tmp = c * (y0 * (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 = y * (a * (x * b));
double tmp;
if (b <= -4.4e+54) {
tmp = t_1;
} else if (b <= -7.4e-240) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 6.2e-183) {
tmp = c * (y3 * (z * -y0));
} else if (b <= 245000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 6.5e+146) {
tmp = c * (y0 * (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 = y * (a * (x * b)) tmp = 0 if b <= -4.4e+54: tmp = t_1 elif b <= -7.4e-240: tmp = (x * y2) * (a * -y1) elif b <= 6.2e-183: tmp = c * (y3 * (z * -y0)) elif b <= 245000.0: tmp = k * (y * (i * y5)) elif b <= 6.5e+146: tmp = c * (y0 * (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(y * Float64(a * Float64(x * b))) tmp = 0.0 if (b <= -4.4e+54) tmp = t_1; elseif (b <= -7.4e-240) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 6.2e-183) tmp = Float64(c * Float64(y3 * Float64(z * Float64(-y0)))); elseif (b <= 245000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 6.5e+146) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-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 = y * (a * (x * b)); tmp = 0.0; if (b <= -4.4e+54) tmp = t_1; elseif (b <= -7.4e-240) tmp = (x * y2) * (a * -y1); elseif (b <= 6.2e-183) tmp = c * (y3 * (z * -y0)); elseif (b <= 245000.0) tmp = k * (y * (i * y5)); elseif (b <= 6.5e+146) tmp = c * (y0 * (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[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+54], t$95$1, If[LessEqual[b, -7.4e-240], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e-183], N[(c * N[(y3 * N[(z * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 245000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e+146], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -7.4 \cdot 10^{-240}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-183}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(z \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;b \leq 245000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+146}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.3999999999999998e54 or 6.4999999999999997e146 < b Initial program 23.3%
Simplified26.5%
Taylor expanded in a around inf 45.2%
mul-1-neg45.2%
mul-1-neg45.2%
Simplified45.2%
Taylor expanded in b around inf 52.9%
Taylor expanded in x around -inf 42.2%
if -4.3999999999999998e54 < b < -7.4000000000000003e-240Initial program 41.2%
Simplified49.4%
Taylor expanded in a around inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in x around inf 27.5%
associate-*r*22.9%
*-commutative22.9%
*-commutative22.9%
Simplified22.9%
Taylor expanded in b around 0 27.4%
mul-1-neg27.4%
associate-*r*25.9%
*-commutative25.9%
Simplified25.9%
if -7.4000000000000003e-240 < b < 6.19999999999999999e-183Initial program 25.9%
Simplified25.9%
Taylor expanded in z around -inf 35.8%
mul-1-neg35.8%
associate--l+35.8%
Simplified35.8%
Taylor expanded in t around 0 41.5%
Taylor expanded in c around inf 30.0%
associate-*r*27.6%
*-commutative27.6%
associate-*l*30.3%
Simplified30.3%
if 6.19999999999999999e-183 < b < 245000Initial program 52.7%
Simplified52.6%
Taylor expanded in y5 around inf 39.8%
mul-1-neg39.8%
mul-1-neg39.8%
mul-1-neg39.8%
sub-neg39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in k around inf 34.4%
associate-*r*34.4%
neg-mul-134.4%
*-commutative34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in y2 around 0 37.2%
*-commutative37.2%
Simplified37.2%
if 245000 < b < 6.4999999999999997e146Initial program 36.7%
Simplified36.7%
Taylor expanded in z around -inf 44.1%
mul-1-neg44.1%
associate--l+44.1%
Simplified44.1%
Taylor expanded in t around 0 44.2%
Taylor expanded in c around inf 24.9%
Final simplification34.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))))
(if (<= b -4.8e+54)
t_1
(if (<= b -2.3e-289)
(* (* x y2) (* a (- y1)))
(if (<= b 4.4e-169)
(* (* i k) (* z (- y1)))
(if (<= b 13500000.0)
(* k (* y (* i y5)))
(if (<= b 4e+149) (* c (* y0 (* 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 = y * (a * (x * b));
double tmp;
if (b <= -4.8e+54) {
tmp = t_1;
} else if (b <= -2.3e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 4.4e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 13500000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 4e+149) {
tmp = c * (y0 * (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) :: tmp
t_1 = y * (a * (x * b))
if (b <= (-4.8d+54)) then
tmp = t_1
else if (b <= (-2.3d-289)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 4.4d-169) then
tmp = (i * k) * (z * -y1)
else if (b <= 13500000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 4d+149) then
tmp = c * (y0 * (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 = y * (a * (x * b));
double tmp;
if (b <= -4.8e+54) {
tmp = t_1;
} else if (b <= -2.3e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 4.4e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 13500000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 4e+149) {
tmp = c * (y0 * (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 = y * (a * (x * b)) tmp = 0 if b <= -4.8e+54: tmp = t_1 elif b <= -2.3e-289: tmp = (x * y2) * (a * -y1) elif b <= 4.4e-169: tmp = (i * k) * (z * -y1) elif b <= 13500000.0: tmp = k * (y * (i * y5)) elif b <= 4e+149: tmp = c * (y0 * (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(y * Float64(a * Float64(x * b))) tmp = 0.0 if (b <= -4.8e+54) tmp = t_1; elseif (b <= -2.3e-289) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 4.4e-169) tmp = Float64(Float64(i * k) * Float64(z * Float64(-y1))); elseif (b <= 13500000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 4e+149) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-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 = y * (a * (x * b)); tmp = 0.0; if (b <= -4.8e+54) tmp = t_1; elseif (b <= -2.3e-289) tmp = (x * y2) * (a * -y1); elseif (b <= 4.4e-169) tmp = (i * k) * (z * -y1); elseif (b <= 13500000.0) tmp = k * (y * (i * y5)); elseif (b <= 4e+149) tmp = c * (y0 * (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[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.8e+54], t$95$1, If[LessEqual[b, -2.3e-289], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-169], N[(N[(i * k), $MachinePrecision] * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 13500000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+149], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-289}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-169}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(z \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 13500000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+149}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.79999999999999997e54 or 4.0000000000000002e149 < b Initial program 23.3%
Simplified26.5%
Taylor expanded in a around inf 45.2%
mul-1-neg45.2%
mul-1-neg45.2%
Simplified45.2%
Taylor expanded in b around inf 52.9%
Taylor expanded in x around -inf 42.2%
if -4.79999999999999997e54 < b < -2.3000000000000002e-289Initial program 39.3%
Simplified46.6%
Taylor expanded in a around inf 40.0%
mul-1-neg40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 27.4%
associate-*r*23.3%
*-commutative23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in b around 0 28.7%
mul-1-neg28.7%
associate-*r*27.3%
*-commutative27.3%
Simplified27.3%
if -2.3000000000000002e-289 < b < 4.40000000000000015e-169Initial program 32.4%
Simplified32.4%
Taylor expanded in z around -inf 34.0%
mul-1-neg34.0%
associate--l+34.0%
Simplified34.0%
Taylor expanded in t around 0 37.3%
Taylor expanded in i around inf 24.0%
associate-*r*27.0%
Simplified27.0%
if 4.40000000000000015e-169 < b < 1.35e7Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 1.35e7 < b < 4.0000000000000002e149Initial program 36.7%
Simplified36.7%
Taylor expanded in z around -inf 44.1%
mul-1-neg44.1%
associate--l+44.1%
Simplified44.1%
Taylor expanded in t around 0 44.2%
Taylor expanded in c around inf 24.9%
Final simplification34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))))
(if (<= b -4.4e+54)
t_1
(if (<= b -9.4e-290)
(* (* x y2) (* a (- y1)))
(if (<= b 3.5e-169)
(* (* i k) (* z (- y1)))
(if (<= b 250000.0)
(* k (* y (* i y5)))
(if (<= b 5.4e+144) (* z (* y0 (* c (- 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 = y * (a * (x * b));
double tmp;
if (b <= -4.4e+54) {
tmp = t_1;
} else if (b <= -9.4e-290) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 3.5e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 250000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 5.4e+144) {
tmp = z * (y0 * (c * -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) :: tmp
t_1 = y * (a * (x * b))
if (b <= (-4.4d+54)) then
tmp = t_1
else if (b <= (-9.4d-290)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 3.5d-169) then
tmp = (i * k) * (z * -y1)
else if (b <= 250000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 5.4d+144) then
tmp = z * (y0 * (c * -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 = y * (a * (x * b));
double tmp;
if (b <= -4.4e+54) {
tmp = t_1;
} else if (b <= -9.4e-290) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 3.5e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 250000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 5.4e+144) {
tmp = z * (y0 * (c * -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 = y * (a * (x * b)) tmp = 0 if b <= -4.4e+54: tmp = t_1 elif b <= -9.4e-290: tmp = (x * y2) * (a * -y1) elif b <= 3.5e-169: tmp = (i * k) * (z * -y1) elif b <= 250000.0: tmp = k * (y * (i * y5)) elif b <= 5.4e+144: tmp = z * (y0 * (c * -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(y * Float64(a * Float64(x * b))) tmp = 0.0 if (b <= -4.4e+54) tmp = t_1; elseif (b <= -9.4e-290) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 3.5e-169) tmp = Float64(Float64(i * k) * Float64(z * Float64(-y1))); elseif (b <= 250000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 5.4e+144) tmp = Float64(z * Float64(y0 * Float64(c * Float64(-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 = y * (a * (x * b)); tmp = 0.0; if (b <= -4.4e+54) tmp = t_1; elseif (b <= -9.4e-290) tmp = (x * y2) * (a * -y1); elseif (b <= 3.5e-169) tmp = (i * k) * (z * -y1); elseif (b <= 250000.0) tmp = k * (y * (i * y5)); elseif (b <= 5.4e+144) tmp = z * (y0 * (c * -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[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+54], t$95$1, If[LessEqual[b, -9.4e-290], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e-169], N[(N[(i * k), $MachinePrecision] * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 250000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.4e+144], N[(z * N[(y0 * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -9.4 \cdot 10^{-290}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-169}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(z \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 250000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+144}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -4.3999999999999998e54 or 5.4000000000000003e144 < b Initial program 23.1%
Simplified26.3%
Taylor expanded in a around inf 44.7%
mul-1-neg44.7%
mul-1-neg44.7%
Simplified44.7%
Taylor expanded in b around inf 52.4%
Taylor expanded in x around -inf 41.8%
if -4.3999999999999998e54 < b < -9.4000000000000003e-290Initial program 39.3%
Simplified46.6%
Taylor expanded in a around inf 40.0%
mul-1-neg40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 27.4%
associate-*r*23.3%
*-commutative23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in b around 0 28.7%
mul-1-neg28.7%
associate-*r*27.3%
*-commutative27.3%
Simplified27.3%
if -9.4000000000000003e-290 < b < 3.5000000000000003e-169Initial program 32.4%
Simplified32.4%
Taylor expanded in z around -inf 34.0%
mul-1-neg34.0%
associate--l+34.0%
Simplified34.0%
Taylor expanded in t around 0 37.3%
Taylor expanded in i around inf 24.0%
associate-*r*27.0%
Simplified27.0%
if 3.5000000000000003e-169 < b < 2.5e5Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 2.5e5 < b < 5.4000000000000003e144Initial program 37.9%
Simplified37.9%
Taylor expanded in z around -inf 45.7%
mul-1-neg45.7%
associate--l+45.7%
Simplified45.7%
Taylor expanded in t around 0 45.8%
Taylor expanded in c around inf 25.8%
associate-*r*22.5%
associate-*r*19.3%
*-commutative19.3%
associate-*l*25.9%
Simplified25.9%
Final simplification34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -4.7e+54)
(* y (* a (* x b)))
(if (<= b -1.3e-289)
(* (* x y2) (* a (- y1)))
(if (<= b 6.2e-169)
(* (* i k) (* z (- y1)))
(if (<= b 700.0)
(* k (* y (* i y5)))
(if (<= b 1.5e+66)
(* z (* y0 (* c (- y3))))
(* a (* b (* z (- t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -4.7e+54) {
tmp = y * (a * (x * b));
} else if (b <= -1.3e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 6.2e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 700.0) {
tmp = k * (y * (i * y5));
} else if (b <= 1.5e+66) {
tmp = z * (y0 * (c * -y3));
} else {
tmp = a * (b * (z * -t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-4.7d+54)) then
tmp = y * (a * (x * b))
else if (b <= (-1.3d-289)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 6.2d-169) then
tmp = (i * k) * (z * -y1)
else if (b <= 700.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 1.5d+66) then
tmp = z * (y0 * (c * -y3))
else
tmp = a * (b * (z * -t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -4.7e+54) {
tmp = y * (a * (x * b));
} else if (b <= -1.3e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 6.2e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 700.0) {
tmp = k * (y * (i * y5));
} else if (b <= 1.5e+66) {
tmp = z * (y0 * (c * -y3));
} else {
tmp = a * (b * (z * -t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -4.7e+54: tmp = y * (a * (x * b)) elif b <= -1.3e-289: tmp = (x * y2) * (a * -y1) elif b <= 6.2e-169: tmp = (i * k) * (z * -y1) elif b <= 700.0: tmp = k * (y * (i * y5)) elif b <= 1.5e+66: tmp = z * (y0 * (c * -y3)) else: tmp = a * (b * (z * -t)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -4.7e+54) tmp = Float64(y * Float64(a * Float64(x * b))); elseif (b <= -1.3e-289) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 6.2e-169) tmp = Float64(Float64(i * k) * Float64(z * Float64(-y1))); elseif (b <= 700.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 1.5e+66) tmp = Float64(z * Float64(y0 * Float64(c * Float64(-y3)))); else tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -4.7e+54) tmp = y * (a * (x * b)); elseif (b <= -1.3e-289) tmp = (x * y2) * (a * -y1); elseif (b <= 6.2e-169) tmp = (i * k) * (z * -y1); elseif (b <= 700.0) tmp = k * (y * (i * y5)); elseif (b <= 1.5e+66) tmp = z * (y0 * (c * -y3)); else tmp = a * (b * (z * -t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -4.7e+54], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.3e-289], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e-169], N[(N[(i * k), $MachinePrecision] * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 700.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+66], N[(z * N[(y0 * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.7 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-289}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-169}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(z \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 700:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+66}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\end{array}
\end{array}
if b < -4.69999999999999993e54Initial program 24.9%
Simplified28.2%
Taylor expanded in a around inf 45.6%
mul-1-neg45.6%
mul-1-neg45.6%
Simplified45.6%
Taylor expanded in b around inf 50.7%
Taylor expanded in x around -inf 43.9%
if -4.69999999999999993e54 < b < -1.2999999999999999e-289Initial program 39.3%
Simplified46.6%
Taylor expanded in a around inf 40.0%
mul-1-neg40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 27.4%
associate-*r*23.3%
*-commutative23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in b around 0 28.7%
mul-1-neg28.7%
associate-*r*27.3%
*-commutative27.3%
Simplified27.3%
if -1.2999999999999999e-289 < b < 6.2000000000000004e-169Initial program 32.4%
Simplified32.4%
Taylor expanded in z around -inf 34.0%
mul-1-neg34.0%
associate--l+34.0%
Simplified34.0%
Taylor expanded in t around 0 37.3%
Taylor expanded in i around inf 24.0%
associate-*r*27.0%
Simplified27.0%
if 6.2000000000000004e-169 < b < 700Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 700 < b < 1.50000000000000001e66Initial program 33.3%
Simplified33.3%
Taylor expanded in z around -inf 50.5%
mul-1-neg50.5%
associate--l+50.5%
Simplified50.5%
Taylor expanded in t around 0 42.4%
Taylor expanded in c around inf 35.1%
associate-*r*27.1%
associate-*r*27.1%
*-commutative27.1%
associate-*l*43.1%
Simplified43.1%
if 1.50000000000000001e66 < b Initial program 26.9%
Simplified30.8%
Taylor expanded in a around inf 41.0%
mul-1-neg41.0%
mul-1-neg41.0%
Simplified41.0%
Taylor expanded in b around inf 43.5%
Taylor expanded in y around 0 34.0%
mul-1-neg34.0%
distribute-lft-neg-out34.0%
*-commutative34.0%
Simplified34.0%
Final simplification35.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -4.7e+54)
(* y (* a (* x b)))
(if (<= b -2.1e-289)
(* (* x y2) (* a (- y1)))
(if (<= b 1.25e-168)
(* (* i k) (* z (- y1)))
(if (<= b 0.052)
(* k (* y (* i y5)))
(if (<= b 1.6e+64)
(* z (* y0 (* c (- y3))))
(* a (* t (* z (- 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 (b <= -4.7e+54) {
tmp = y * (a * (x * b));
} else if (b <= -2.1e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 1.25e-168) {
tmp = (i * k) * (z * -y1);
} else if (b <= 0.052) {
tmp = k * (y * (i * y5));
} else if (b <= 1.6e+64) {
tmp = z * (y0 * (c * -y3));
} else {
tmp = a * (t * (z * -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 (b <= (-4.7d+54)) then
tmp = y * (a * (x * b))
else if (b <= (-2.1d-289)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 1.25d-168) then
tmp = (i * k) * (z * -y1)
else if (b <= 0.052d0) then
tmp = k * (y * (i * y5))
else if (b <= 1.6d+64) then
tmp = z * (y0 * (c * -y3))
else
tmp = a * (t * (z * -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 (b <= -4.7e+54) {
tmp = y * (a * (x * b));
} else if (b <= -2.1e-289) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 1.25e-168) {
tmp = (i * k) * (z * -y1);
} else if (b <= 0.052) {
tmp = k * (y * (i * y5));
} else if (b <= 1.6e+64) {
tmp = z * (y0 * (c * -y3));
} else {
tmp = a * (t * (z * -b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -4.7e+54: tmp = y * (a * (x * b)) elif b <= -2.1e-289: tmp = (x * y2) * (a * -y1) elif b <= 1.25e-168: tmp = (i * k) * (z * -y1) elif b <= 0.052: tmp = k * (y * (i * y5)) elif b <= 1.6e+64: tmp = z * (y0 * (c * -y3)) else: tmp = a * (t * (z * -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 (b <= -4.7e+54) tmp = Float64(y * Float64(a * Float64(x * b))); elseif (b <= -2.1e-289) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 1.25e-168) tmp = Float64(Float64(i * k) * Float64(z * Float64(-y1))); elseif (b <= 0.052) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 1.6e+64) tmp = Float64(z * Float64(y0 * Float64(c * Float64(-y3)))); else tmp = Float64(a * Float64(t * Float64(z * Float64(-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 (b <= -4.7e+54) tmp = y * (a * (x * b)); elseif (b <= -2.1e-289) tmp = (x * y2) * (a * -y1); elseif (b <= 1.25e-168) tmp = (i * k) * (z * -y1); elseif (b <= 0.052) tmp = k * (y * (i * y5)); elseif (b <= 1.6e+64) tmp = z * (y0 * (c * -y3)); else tmp = a * (t * (z * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -4.7e+54], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-289], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-168], N[(N[(i * k), $MachinePrecision] * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.052], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.6e+64], N[(z * N[(y0 * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.7 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-289}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-168}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(z \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 0.052:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{+64}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(z \cdot \left(-b\right)\right)\right)\\
\end{array}
\end{array}
if b < -4.69999999999999993e54Initial program 24.9%
Simplified28.2%
Taylor expanded in a around inf 45.6%
mul-1-neg45.6%
mul-1-neg45.6%
Simplified45.6%
Taylor expanded in b around inf 50.7%
Taylor expanded in x around -inf 43.9%
if -4.69999999999999993e54 < b < -2.0999999999999998e-289Initial program 39.3%
Simplified46.6%
Taylor expanded in a around inf 40.0%
mul-1-neg40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 27.4%
associate-*r*23.3%
*-commutative23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in b around 0 28.7%
mul-1-neg28.7%
associate-*r*27.3%
*-commutative27.3%
Simplified27.3%
if -2.0999999999999998e-289 < b < 1.25e-168Initial program 32.4%
Simplified32.4%
Taylor expanded in z around -inf 34.0%
mul-1-neg34.0%
associate--l+34.0%
Simplified34.0%
Taylor expanded in t around 0 37.3%
Taylor expanded in i around inf 24.0%
associate-*r*27.0%
Simplified27.0%
if 1.25e-168 < b < 0.0519999999999999976Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 0.0519999999999999976 < b < 1.60000000000000009e64Initial program 33.3%
Simplified33.3%
Taylor expanded in z around -inf 50.5%
mul-1-neg50.5%
associate--l+50.5%
Simplified50.5%
Taylor expanded in t around 0 42.4%
Taylor expanded in c around inf 35.1%
associate-*r*27.1%
associate-*r*27.1%
*-commutative27.1%
associate-*l*43.1%
Simplified43.1%
if 1.60000000000000009e64 < b Initial program 26.9%
Simplified30.8%
Taylor expanded in a around inf 41.0%
mul-1-neg41.0%
mul-1-neg41.0%
Simplified41.0%
Taylor expanded in b around inf 43.5%
Taylor expanded in y around 0 37.6%
associate-*r*37.6%
neg-mul-137.6%
*-commutative37.6%
Simplified37.6%
Final simplification35.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -4.4e+54)
(* y (* a (* x b)))
(if (<= b -7.8e-290)
(* (* x y2) (* a (- y1)))
(if (<= b 3.1e-169)
(* (* i k) (* z (- y1)))
(if (<= b 1650000000.0)
(* k (* y (* i y5)))
(if (<= b 2.05e+76)
(* y5 (* k (* y0 (- y2))))
(* a (* t (* z (- 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 (b <= -4.4e+54) {
tmp = y * (a * (x * b));
} else if (b <= -7.8e-290) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 3.1e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 1650000000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 2.05e+76) {
tmp = y5 * (k * (y0 * -y2));
} else {
tmp = a * (t * (z * -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 (b <= (-4.4d+54)) then
tmp = y * (a * (x * b))
else if (b <= (-7.8d-290)) then
tmp = (x * y2) * (a * -y1)
else if (b <= 3.1d-169) then
tmp = (i * k) * (z * -y1)
else if (b <= 1650000000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 2.05d+76) then
tmp = y5 * (k * (y0 * -y2))
else
tmp = a * (t * (z * -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 (b <= -4.4e+54) {
tmp = y * (a * (x * b));
} else if (b <= -7.8e-290) {
tmp = (x * y2) * (a * -y1);
} else if (b <= 3.1e-169) {
tmp = (i * k) * (z * -y1);
} else if (b <= 1650000000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 2.05e+76) {
tmp = y5 * (k * (y0 * -y2));
} else {
tmp = a * (t * (z * -b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -4.4e+54: tmp = y * (a * (x * b)) elif b <= -7.8e-290: tmp = (x * y2) * (a * -y1) elif b <= 3.1e-169: tmp = (i * k) * (z * -y1) elif b <= 1650000000.0: tmp = k * (y * (i * y5)) elif b <= 2.05e+76: tmp = y5 * (k * (y0 * -y2)) else: tmp = a * (t * (z * -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 (b <= -4.4e+54) tmp = Float64(y * Float64(a * Float64(x * b))); elseif (b <= -7.8e-290) tmp = Float64(Float64(x * y2) * Float64(a * Float64(-y1))); elseif (b <= 3.1e-169) tmp = Float64(Float64(i * k) * Float64(z * Float64(-y1))); elseif (b <= 1650000000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 2.05e+76) tmp = Float64(y5 * Float64(k * Float64(y0 * Float64(-y2)))); else tmp = Float64(a * Float64(t * Float64(z * Float64(-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 (b <= -4.4e+54) tmp = y * (a * (x * b)); elseif (b <= -7.8e-290) tmp = (x * y2) * (a * -y1); elseif (b <= 3.1e-169) tmp = (i * k) * (z * -y1); elseif (b <= 1650000000.0) tmp = k * (y * (i * y5)); elseif (b <= 2.05e+76) tmp = y5 * (k * (y0 * -y2)); else tmp = a * (t * (z * -b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -4.4e+54], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.8e-290], N[(N[(x * y2), $MachinePrecision] * N[(a * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-169], N[(N[(i * k), $MachinePrecision] * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1650000000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.05e+76], N[(y5 * N[(k * N[(y0 * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;b \leq -7.8 \cdot 10^{-290}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \left(a \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-169}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \left(z \cdot \left(-y1\right)\right)\\
\mathbf{elif}\;b \leq 1650000000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.05 \cdot 10^{+76}:\\
\;\;\;\;y5 \cdot \left(k \cdot \left(y0 \cdot \left(-y2\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(z \cdot \left(-b\right)\right)\right)\\
\end{array}
\end{array}
if b < -4.3999999999999998e54Initial program 24.9%
Simplified28.2%
Taylor expanded in a around inf 45.6%
mul-1-neg45.6%
mul-1-neg45.6%
Simplified45.6%
Taylor expanded in b around inf 50.7%
Taylor expanded in x around -inf 43.9%
if -4.3999999999999998e54 < b < -7.79999999999999946e-290Initial program 39.3%
Simplified46.6%
Taylor expanded in a around inf 40.0%
mul-1-neg40.0%
mul-1-neg40.0%
Simplified40.0%
Taylor expanded in x around inf 27.4%
associate-*r*23.3%
*-commutative23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in b around 0 28.7%
mul-1-neg28.7%
associate-*r*27.3%
*-commutative27.3%
Simplified27.3%
if -7.79999999999999946e-290 < b < 3.1000000000000002e-169Initial program 32.4%
Simplified32.4%
Taylor expanded in z around -inf 34.0%
mul-1-neg34.0%
associate--l+34.0%
Simplified34.0%
Taylor expanded in t around 0 37.3%
Taylor expanded in i around inf 24.0%
associate-*r*27.0%
Simplified27.0%
if 3.1000000000000002e-169 < b < 1.65e9Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 1.65e9 < b < 2.0499999999999999e76Initial program 37.5%
Simplified62.5%
Taylor expanded in y5 around inf 56.5%
mul-1-neg56.5%
mul-1-neg56.5%
mul-1-neg56.5%
sub-neg56.5%
sub-neg56.5%
Simplified56.5%
Taylor expanded in y0 around inf 32.1%
Taylor expanded in y3 around 0 38.6%
associate-*r*38.6%
neg-mul-138.6%
Simplified38.6%
if 2.0499999999999999e76 < b Initial program 25.0%
Simplified27.1%
Taylor expanded in a around inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
Simplified40.3%
Taylor expanded in b around inf 46.7%
Taylor expanded in y around 0 40.4%
associate-*r*40.4%
neg-mul-140.4%
*-commutative40.4%
Simplified40.4%
Final simplification36.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -8.5e+140)
(* a (* t (* z (- b))))
(if (<= z -5.3e+42)
(* c (* y3 (* z (- y0))))
(if (<= z -1.95e-29)
(* a (* z (* y1 y3)))
(if (<= z -1.25e-299)
(* a (* (* x y) b))
(if (<= z 2e+120) (* i (* j (* t (- y5)))) (* k (* y0 (* z b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.5e+140) {
tmp = a * (t * (z * -b));
} else if (z <= -5.3e+42) {
tmp = c * (y3 * (z * -y0));
} else if (z <= -1.95e-29) {
tmp = a * (z * (y1 * y3));
} else if (z <= -1.25e-299) {
tmp = a * ((x * y) * b);
} else if (z <= 2e+120) {
tmp = i * (j * (t * -y5));
} else {
tmp = k * (y0 * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-8.5d+140)) then
tmp = a * (t * (z * -b))
else if (z <= (-5.3d+42)) then
tmp = c * (y3 * (z * -y0))
else if (z <= (-1.95d-29)) then
tmp = a * (z * (y1 * y3))
else if (z <= (-1.25d-299)) then
tmp = a * ((x * y) * b)
else if (z <= 2d+120) then
tmp = i * (j * (t * -y5))
else
tmp = k * (y0 * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.5e+140) {
tmp = a * (t * (z * -b));
} else if (z <= -5.3e+42) {
tmp = c * (y3 * (z * -y0));
} else if (z <= -1.95e-29) {
tmp = a * (z * (y1 * y3));
} else if (z <= -1.25e-299) {
tmp = a * ((x * y) * b);
} else if (z <= 2e+120) {
tmp = i * (j * (t * -y5));
} else {
tmp = k * (y0 * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -8.5e+140: tmp = a * (t * (z * -b)) elif z <= -5.3e+42: tmp = c * (y3 * (z * -y0)) elif z <= -1.95e-29: tmp = a * (z * (y1 * y3)) elif z <= -1.25e-299: tmp = a * ((x * y) * b) elif z <= 2e+120: tmp = i * (j * (t * -y5)) else: tmp = k * (y0 * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -8.5e+140) tmp = Float64(a * Float64(t * Float64(z * Float64(-b)))); elseif (z <= -5.3e+42) tmp = Float64(c * Float64(y3 * Float64(z * Float64(-y0)))); elseif (z <= -1.95e-29) tmp = Float64(a * Float64(z * Float64(y1 * y3))); elseif (z <= -1.25e-299) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (z <= 2e+120) tmp = Float64(i * Float64(j * Float64(t * Float64(-y5)))); else tmp = Float64(k * Float64(y0 * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -8.5e+140) tmp = a * (t * (z * -b)); elseif (z <= -5.3e+42) tmp = c * (y3 * (z * -y0)); elseif (z <= -1.95e-29) tmp = a * (z * (y1 * y3)); elseif (z <= -1.25e-299) tmp = a * ((x * y) * b); elseif (z <= 2e+120) tmp = i * (j * (t * -y5)); else tmp = k * (y0 * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -8.5e+140], N[(a * N[(t * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.3e+42], N[(c * N[(y3 * N[(z * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.95e-29], N[(a * N[(z * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.25e-299], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+120], N[(i * N[(j * N[(t * (-y5)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y0 * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+140}:\\
\;\;\;\;a \cdot \left(t \cdot \left(z \cdot \left(-b\right)\right)\right)\\
\mathbf{elif}\;z \leq -5.3 \cdot 10^{+42}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(z \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-29}:\\
\;\;\;\;a \cdot \left(z \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-299}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+120}:\\
\;\;\;\;i \cdot \left(j \cdot \left(t \cdot \left(-y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -8.4999999999999996e140Initial program 20.6%
Simplified29.6%
Taylor expanded in a around inf 41.3%
mul-1-neg41.3%
mul-1-neg41.3%
Simplified41.3%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around 0 44.4%
associate-*r*44.4%
neg-mul-144.4%
*-commutative44.4%
Simplified44.4%
if -8.4999999999999996e140 < z < -5.30000000000000028e42Initial program 35.3%
Simplified35.3%
Taylor expanded in z around -inf 64.7%
mul-1-neg64.7%
associate--l+64.7%
Simplified64.7%
Taylor expanded in t around 0 64.8%
Taylor expanded in c around inf 37.5%
associate-*r*37.3%
*-commutative37.3%
associate-*l*43.1%
Simplified43.1%
if -5.30000000000000028e42 < z < -1.9499999999999999e-29Initial program 40.0%
Simplified40.0%
Taylor expanded in z around -inf 60.5%
mul-1-neg60.5%
associate--l+60.5%
Simplified60.5%
Taylor expanded in t around 0 60.4%
Taylor expanded in a around inf 60.7%
mul-1-neg60.7%
associate-*r*60.7%
Simplified60.7%
if -1.9499999999999999e-29 < z < -1.24999999999999989e-299Initial program 37.4%
Simplified39.1%
Taylor expanded in a around inf 46.3%
mul-1-neg46.3%
mul-1-neg46.3%
Simplified46.3%
Taylor expanded in b around inf 31.6%
Taylor expanded in y around inf 30.1%
*-commutative30.1%
associate-*r*31.7%
*-commutative31.7%
Simplified31.7%
if -1.24999999999999989e-299 < z < 2e120Initial program 40.3%
Simplified44.8%
Taylor expanded in y5 around inf 40.9%
mul-1-neg40.9%
mul-1-neg40.9%
mul-1-neg40.9%
sub-neg40.9%
sub-neg40.9%
Simplified40.9%
Taylor expanded in j around -inf 28.2%
*-commutative28.2%
mul-1-neg28.2%
unsub-neg28.2%
*-commutative28.2%
*-commutative28.2%
Simplified28.2%
Taylor expanded in y3 around 0 30.2%
mul-1-neg30.2%
distribute-rgt-neg-in30.2%
associate-*r*29.1%
*-commutative29.1%
associate-*l*29.1%
Simplified29.1%
if 2e120 < z Initial program 25.6%
Simplified25.6%
Taylor expanded in z around -inf 54.4%
mul-1-neg54.4%
associate--l+54.4%
Simplified54.4%
Taylor expanded in t around 0 46.7%
Taylor expanded in b around inf 47.1%
mul-1-neg47.1%
distribute-rgt-neg-in47.1%
distribute-rgt-neg-in47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
Simplified47.1%
Final simplification37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.7e+59)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y3 -7.5e-215)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y3 2.5e+56)
(* a (* b (- (* x y) (* z t))))
(* z (* y0 (* c (- y3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e+59) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= -7.5e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 2.5e+56) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = z * (y0 * (c * -y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.7d+59)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y3 <= (-7.5d-215)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y3 <= 2.5d+56) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = z * (y0 * (c * -y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e+59) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= -7.5e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 2.5e+56) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = z * (y0 * (c * -y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.7e+59: tmp = a * (y * ((x * b) - (y3 * y5))) elif y3 <= -7.5e-215: tmp = k * (y * ((i * y5) - (b * y4))) elif y3 <= 2.5e+56: tmp = a * (b * ((x * y) - (z * t))) else: tmp = z * (y0 * (c * -y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.7e+59) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= -7.5e-215) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 2.5e+56) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(z * Float64(y0 * Float64(c * Float64(-y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.7e+59) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y3 <= -7.5e-215) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y3 <= 2.5e+56) tmp = a * (b * ((x * y) - (z * t))); else tmp = z * (y0 * (c * -y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.7e+59], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.5e-215], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.5e+56], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(y0 * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.7 \cdot 10^{+59}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -7.5 \cdot 10^{-215}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.5 \cdot 10^{+56}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\end{array}
\end{array}
if y3 < -1.70000000000000003e59Initial program 19.1%
Simplified21.3%
Taylor expanded in a around inf 38.3%
mul-1-neg38.3%
mul-1-neg38.3%
Simplified38.3%
Taylor expanded in y around inf 45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
Simplified45.5%
if -1.70000000000000003e59 < y3 < -7.49999999999999986e-215Initial program 35.8%
Simplified35.8%
Taylor expanded in y around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in k around inf 41.1%
if -7.49999999999999986e-215 < y3 < 2.50000000000000012e56Initial program 40.1%
Simplified43.5%
Taylor expanded in a around inf 43.0%
mul-1-neg43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in b around inf 37.8%
if 2.50000000000000012e56 < y3 Initial program 32.7%
Simplified32.7%
Taylor expanded in z around -inf 46.7%
mul-1-neg46.7%
associate--l+46.7%
Simplified46.7%
Taylor expanded in t around 0 52.5%
Taylor expanded in c around inf 36.2%
associate-*r*36.0%
associate-*r*36.0%
*-commutative36.0%
associate-*l*41.6%
Simplified41.6%
Final simplification40.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -3.55e+59)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= y3 -5.8e-215)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y3 2.6e+56)
(* a (* b (- (* x y) (* z t))))
(* z (* y0 (* c (- y3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -3.55e+59) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -5.8e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 2.6e+56) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = z * (y0 * (c * -y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-3.55d+59)) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (y3 <= (-5.8d-215)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y3 <= 2.6d+56) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = z * (y0 * (c * -y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -3.55e+59) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -5.8e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 2.6e+56) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = z * (y0 * (c * -y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -3.55e+59: tmp = y * (a * ((x * b) - (y3 * y5))) elif y3 <= -5.8e-215: tmp = k * (y * ((i * y5) - (b * y4))) elif y3 <= 2.6e+56: tmp = a * (b * ((x * y) - (z * t))) else: tmp = z * (y0 * (c * -y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -3.55e+59) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= -5.8e-215) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 2.6e+56) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(z * Float64(y0 * Float64(c * Float64(-y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -3.55e+59) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (y3 <= -5.8e-215) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y3 <= 2.6e+56) tmp = a * (b * ((x * y) - (z * t))); else tmp = z * (y0 * (c * -y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -3.55e+59], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.8e-215], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.6e+56], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(y0 * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -3.55 \cdot 10^{+59}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -5.8 \cdot 10^{-215}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.6 \cdot 10^{+56}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y0 \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\end{array}
\end{array}
if y3 < -3.55000000000000002e59Initial program 19.1%
Simplified21.3%
Taylor expanded in a around inf 38.3%
mul-1-neg38.3%
mul-1-neg38.3%
Simplified38.3%
Taylor expanded in y around inf 45.5%
associate-*r*45.5%
*-commutative45.5%
associate-*r*47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
if -3.55000000000000002e59 < y3 < -5.8000000000000001e-215Initial program 35.8%
Simplified35.8%
Taylor expanded in y around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in k around inf 41.1%
if -5.8000000000000001e-215 < y3 < 2.60000000000000011e56Initial program 40.1%
Simplified43.5%
Taylor expanded in a around inf 43.0%
mul-1-neg43.0%
mul-1-neg43.0%
Simplified43.0%
Taylor expanded in b around inf 37.8%
if 2.60000000000000011e56 < y3 Initial program 32.7%
Simplified32.7%
Taylor expanded in z around -inf 46.7%
mul-1-neg46.7%
associate--l+46.7%
Simplified46.7%
Taylor expanded in t around 0 52.5%
Taylor expanded in c around inf 36.2%
associate-*r*36.0%
associate-*r*36.0%
*-commutative36.0%
associate-*l*41.6%
Simplified41.6%
Final simplification41.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -4.5e+59)
(* y (* a (- (* x b) (* y3 y5))))
(if (<= y3 -2.6e-215)
(* k (* y (- (* i y5) (* b y4))))
(if (<= y3 9.5e+62)
(* a (* b (- (* x y) (* z t))))
(* y (* y4 (- (* c y3) (* b k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -4.5e+59) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -2.6e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 9.5e+62) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y * (y4 * ((c * y3) - (b * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-4.5d+59)) then
tmp = y * (a * ((x * b) - (y3 * y5)))
else if (y3 <= (-2.6d-215)) then
tmp = k * (y * ((i * y5) - (b * y4)))
else if (y3 <= 9.5d+62) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = y * (y4 * ((c * y3) - (b * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -4.5e+59) {
tmp = y * (a * ((x * b) - (y3 * y5)));
} else if (y3 <= -2.6e-215) {
tmp = k * (y * ((i * y5) - (b * y4)));
} else if (y3 <= 9.5e+62) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = y * (y4 * ((c * y3) - (b * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -4.5e+59: tmp = y * (a * ((x * b) - (y3 * y5))) elif y3 <= -2.6e-215: tmp = k * (y * ((i * y5) - (b * y4))) elif y3 <= 9.5e+62: tmp = a * (b * ((x * y) - (z * t))) else: tmp = y * (y4 * ((c * y3) - (b * k))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -4.5e+59) tmp = Float64(y * Float64(a * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= -2.6e-215) tmp = Float64(k * Float64(y * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 9.5e+62) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(y * Float64(y4 * Float64(Float64(c * y3) - Float64(b * k)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -4.5e+59) tmp = y * (a * ((x * b) - (y3 * y5))); elseif (y3 <= -2.6e-215) tmp = k * (y * ((i * y5) - (b * y4))); elseif (y3 <= 9.5e+62) tmp = a * (b * ((x * y) - (z * t))); else tmp = y * (y4 * ((c * y3) - (b * k))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -4.5e+59], N[(y * N[(a * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.6e-215], N[(k * N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9.5e+62], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(y4 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -4.5 \cdot 10^{+59}:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -2.6 \cdot 10^{-215}:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 9.5 \cdot 10^{+62}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y4 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\\
\end{array}
\end{array}
if y3 < -4.49999999999999959e59Initial program 19.1%
Simplified21.3%
Taylor expanded in a around inf 38.3%
mul-1-neg38.3%
mul-1-neg38.3%
Simplified38.3%
Taylor expanded in y around inf 45.5%
associate-*r*45.5%
*-commutative45.5%
associate-*r*47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
if -4.49999999999999959e59 < y3 < -2.6e-215Initial program 35.8%
Simplified35.8%
Taylor expanded in y around inf 42.1%
associate--l+42.1%
mul-1-neg42.1%
mul-1-neg42.1%
Simplified42.1%
Taylor expanded in k around inf 41.1%
if -2.6e-215 < y3 < 9.5000000000000003e62Initial program 40.3%
Simplified43.6%
Taylor expanded in a around inf 43.3%
mul-1-neg43.3%
mul-1-neg43.3%
Simplified43.3%
Taylor expanded in b around inf 37.1%
if 9.5000000000000003e62 < y3 Initial program 32.0%
Simplified32.0%
Taylor expanded in y around inf 38.5%
associate--l+38.5%
mul-1-neg38.5%
mul-1-neg38.5%
Simplified38.5%
Taylor expanded in y4 around inf 56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Final simplification43.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))) (t_2 (* c (* y0 (* z (- y3))))))
(if (<= b -2.3e-7)
t_1
(if (<= b 1e-182)
t_2
(if (<= b 4700000000.0)
(* k (* y (* i y5)))
(if (<= b 2.25e+145) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (a * (x * b));
double t_2 = c * (y0 * (z * -y3));
double tmp;
if (b <= -2.3e-7) {
tmp = t_1;
} else if (b <= 1e-182) {
tmp = t_2;
} else if (b <= 4700000000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 2.25e+145) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (a * (x * b))
t_2 = c * (y0 * (z * -y3))
if (b <= (-2.3d-7)) then
tmp = t_1
else if (b <= 1d-182) then
tmp = t_2
else if (b <= 4700000000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 2.25d+145) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (a * (x * b));
double t_2 = c * (y0 * (z * -y3));
double tmp;
if (b <= -2.3e-7) {
tmp = t_1;
} else if (b <= 1e-182) {
tmp = t_2;
} else if (b <= 4700000000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 2.25e+145) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (a * (x * b)) t_2 = c * (y0 * (z * -y3)) tmp = 0 if b <= -2.3e-7: tmp = t_1 elif b <= 1e-182: tmp = t_2 elif b <= 4700000000.0: tmp = k * (y * (i * y5)) elif b <= 2.25e+145: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(a * Float64(x * b))) t_2 = Float64(c * Float64(y0 * Float64(z * Float64(-y3)))) tmp = 0.0 if (b <= -2.3e-7) tmp = t_1; elseif (b <= 1e-182) tmp = t_2; elseif (b <= 4700000000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 2.25e+145) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (a * (x * b)); t_2 = c * (y0 * (z * -y3)); tmp = 0.0; if (b <= -2.3e-7) tmp = t_1; elseif (b <= 1e-182) tmp = t_2; elseif (b <= 4700000000.0) tmp = k * (y * (i * y5)); elseif (b <= 2.25e+145) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.3e-7], t$95$1, If[LessEqual[b, 1e-182], t$95$2, If[LessEqual[b, 4700000000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e+145], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
t_2 := c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-182}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 4700000000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{+145}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.29999999999999995e-7 or 2.2499999999999999e145 < b Initial program 28.3%
Simplified31.8%
Taylor expanded in a around inf 43.9%
mul-1-neg43.9%
mul-1-neg43.9%
Simplified43.9%
Taylor expanded in b around inf 47.8%
Taylor expanded in x around -inf 37.1%
if -2.29999999999999995e-7 < b < 1e-182 or 4.7e9 < b < 2.2499999999999999e145Initial program 32.9%
Simplified32.9%
Taylor expanded in z around -inf 37.8%
mul-1-neg37.8%
associate--l+37.8%
Simplified37.8%
Taylor expanded in t around 0 37.6%
Taylor expanded in c around inf 23.2%
if 1e-182 < b < 4.7e9Initial program 52.7%
Simplified52.6%
Taylor expanded in y5 around inf 39.8%
mul-1-neg39.8%
mul-1-neg39.8%
mul-1-neg39.8%
sub-neg39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in k around inf 34.4%
associate-*r*34.4%
neg-mul-134.4%
*-commutative34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in y2 around 0 37.2%
*-commutative37.2%
Simplified37.2%
Final simplification31.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))))
(if (<= b -2e-7)
t_1
(if (<= b 1.02e-182)
(* c (* y3 (* z (- y0))))
(if (<= b 0.3)
(* k (* y (* i y5)))
(if (<= b 2.15e+148) (* c (* y0 (* 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 = y * (a * (x * b));
double tmp;
if (b <= -2e-7) {
tmp = t_1;
} else if (b <= 1.02e-182) {
tmp = c * (y3 * (z * -y0));
} else if (b <= 0.3) {
tmp = k * (y * (i * y5));
} else if (b <= 2.15e+148) {
tmp = c * (y0 * (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) :: tmp
t_1 = y * (a * (x * b))
if (b <= (-2d-7)) then
tmp = t_1
else if (b <= 1.02d-182) then
tmp = c * (y3 * (z * -y0))
else if (b <= 0.3d0) then
tmp = k * (y * (i * y5))
else if (b <= 2.15d+148) then
tmp = c * (y0 * (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 = y * (a * (x * b));
double tmp;
if (b <= -2e-7) {
tmp = t_1;
} else if (b <= 1.02e-182) {
tmp = c * (y3 * (z * -y0));
} else if (b <= 0.3) {
tmp = k * (y * (i * y5));
} else if (b <= 2.15e+148) {
tmp = c * (y0 * (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 = y * (a * (x * b)) tmp = 0 if b <= -2e-7: tmp = t_1 elif b <= 1.02e-182: tmp = c * (y3 * (z * -y0)) elif b <= 0.3: tmp = k * (y * (i * y5)) elif b <= 2.15e+148: tmp = c * (y0 * (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(y * Float64(a * Float64(x * b))) tmp = 0.0 if (b <= -2e-7) tmp = t_1; elseif (b <= 1.02e-182) tmp = Float64(c * Float64(y3 * Float64(z * Float64(-y0)))); elseif (b <= 0.3) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 2.15e+148) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-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 = y * (a * (x * b)); tmp = 0.0; if (b <= -2e-7) tmp = t_1; elseif (b <= 1.02e-182) tmp = c * (y3 * (z * -y0)); elseif (b <= 0.3) tmp = k * (y * (i * y5)); elseif (b <= 2.15e+148) tmp = c * (y0 * (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[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e-7], t$95$1, If[LessEqual[b, 1.02e-182], N[(c * N[(y3 * N[(z * (-y0)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.3], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.15e+148], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -2 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{-182}:\\
\;\;\;\;c \cdot \left(y3 \cdot \left(z \cdot \left(-y0\right)\right)\right)\\
\mathbf{elif}\;b \leq 0.3:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{+148}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.9999999999999999e-7 or 2.1500000000000001e148 < b Initial program 28.3%
Simplified31.8%
Taylor expanded in a around inf 43.9%
mul-1-neg43.9%
mul-1-neg43.9%
Simplified43.9%
Taylor expanded in b around inf 47.8%
Taylor expanded in x around -inf 37.1%
if -1.9999999999999999e-7 < b < 1.02e-182Initial program 31.4%
Simplified31.4%
Taylor expanded in z around -inf 35.3%
mul-1-neg35.3%
associate--l+35.3%
Simplified35.3%
Taylor expanded in t around 0 35.0%
Taylor expanded in c around inf 22.5%
associate-*r*22.6%
*-commutative22.6%
associate-*l*22.6%
Simplified22.6%
if 1.02e-182 < b < 0.299999999999999989Initial program 52.7%
Simplified52.6%
Taylor expanded in y5 around inf 39.8%
mul-1-neg39.8%
mul-1-neg39.8%
mul-1-neg39.8%
sub-neg39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in k around inf 34.4%
associate-*r*34.4%
neg-mul-134.4%
*-commutative34.4%
+-commutative34.4%
mul-1-neg34.4%
unsub-neg34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in y2 around 0 37.2%
*-commutative37.2%
Simplified37.2%
if 0.299999999999999989 < b < 2.1500000000000001e148Initial program 36.7%
Simplified36.7%
Taylor expanded in z around -inf 44.1%
mul-1-neg44.1%
associate--l+44.1%
Simplified44.1%
Taylor expanded in t around 0 44.2%
Taylor expanded in c around inf 24.9%
Final simplification31.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* a (* x b)))))
(if (<= b -3.7e-66)
t_1
(if (<= b 9e-169)
(* k (* i (* z (- y1))))
(if (<= b 2700000.0)
(* k (* y (* i y5)))
(if (<= b 1.15e+146) (* c (* y0 (* 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 = y * (a * (x * b));
double tmp;
if (b <= -3.7e-66) {
tmp = t_1;
} else if (b <= 9e-169) {
tmp = k * (i * (z * -y1));
} else if (b <= 2700000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 1.15e+146) {
tmp = c * (y0 * (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) :: tmp
t_1 = y * (a * (x * b))
if (b <= (-3.7d-66)) then
tmp = t_1
else if (b <= 9d-169) then
tmp = k * (i * (z * -y1))
else if (b <= 2700000.0d0) then
tmp = k * (y * (i * y5))
else if (b <= 1.15d+146) then
tmp = c * (y0 * (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 = y * (a * (x * b));
double tmp;
if (b <= -3.7e-66) {
tmp = t_1;
} else if (b <= 9e-169) {
tmp = k * (i * (z * -y1));
} else if (b <= 2700000.0) {
tmp = k * (y * (i * y5));
} else if (b <= 1.15e+146) {
tmp = c * (y0 * (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 = y * (a * (x * b)) tmp = 0 if b <= -3.7e-66: tmp = t_1 elif b <= 9e-169: tmp = k * (i * (z * -y1)) elif b <= 2700000.0: tmp = k * (y * (i * y5)) elif b <= 1.15e+146: tmp = c * (y0 * (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(y * Float64(a * Float64(x * b))) tmp = 0.0 if (b <= -3.7e-66) tmp = t_1; elseif (b <= 9e-169) tmp = Float64(k * Float64(i * Float64(z * Float64(-y1)))); elseif (b <= 2700000.0) tmp = Float64(k * Float64(y * Float64(i * y5))); elseif (b <= 1.15e+146) tmp = Float64(c * Float64(y0 * Float64(z * Float64(-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 = y * (a * (x * b)); tmp = 0.0; if (b <= -3.7e-66) tmp = t_1; elseif (b <= 9e-169) tmp = k * (i * (z * -y1)); elseif (b <= 2700000.0) tmp = k * (y * (i * y5)); elseif (b <= 1.15e+146) tmp = c * (y0 * (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[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.7e-66], t$95$1, If[LessEqual[b, 9e-169], N[(k * N[(i * N[(z * (-y1)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2700000.0], N[(k * N[(y * N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+146], N[(c * N[(y0 * N[(z * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -3.7 \cdot 10^{-66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-169}:\\
\;\;\;\;k \cdot \left(i \cdot \left(z \cdot \left(-y1\right)\right)\right)\\
\mathbf{elif}\;b \leq 2700000:\\
\;\;\;\;k \cdot \left(y \cdot \left(i \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+146}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(z \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.7000000000000002e-66 or 1.15e146 < b Initial program 28.2%
Simplified32.2%
Taylor expanded in a around inf 45.7%
mul-1-neg45.7%
mul-1-neg45.7%
Simplified45.7%
Taylor expanded in b around inf 46.9%
Taylor expanded in x around -inf 35.5%
if -3.7000000000000002e-66 < b < 8.9999999999999997e-169Initial program 34.5%
Simplified34.5%
Taylor expanded in z around -inf 35.8%
mul-1-neg35.8%
associate--l+35.8%
Simplified35.8%
Taylor expanded in t around 0 35.6%
Taylor expanded in i around inf 22.9%
if 8.9999999999999997e-169 < b < 2.7e6Initial program 49.9%
Simplified49.9%
Taylor expanded in y5 around inf 38.7%
mul-1-neg38.7%
mul-1-neg38.7%
mul-1-neg38.7%
sub-neg38.7%
sub-neg38.7%
Simplified38.7%
Taylor expanded in k around inf 38.5%
associate-*r*38.5%
neg-mul-138.5%
*-commutative38.5%
+-commutative38.5%
mul-1-neg38.5%
unsub-neg38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in y2 around 0 41.6%
*-commutative41.6%
Simplified41.6%
if 2.7e6 < b < 1.15e146Initial program 36.7%
Simplified36.7%
Taylor expanded in z around -inf 44.1%
mul-1-neg44.1%
associate--l+44.1%
Simplified44.1%
Taylor expanded in t around 0 44.2%
Taylor expanded in c around inf 24.9%
Final simplification31.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y -6.6e-223) (not (<= y 1.45e-44))) (* a (* b (- (* x y) (* z t)))) (* a (* t (- (* y2 y5) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y <= -6.6e-223) || !(y <= 1.45e-44)) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = a * (t * ((y2 * y5) - (z * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y <= (-6.6d-223)) .or. (.not. (y <= 1.45d-44))) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = a * (t * ((y2 * y5) - (z * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y <= -6.6e-223) || !(y <= 1.45e-44)) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = a * (t * ((y2 * y5) - (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y <= -6.6e-223) or not (y <= 1.45e-44): tmp = a * (b * ((x * y) - (z * t))) else: tmp = a * (t * ((y2 * y5) - (z * b))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y <= -6.6e-223) || !(y <= 1.45e-44)) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(a * Float64(t * Float64(Float64(y2 * y5) - Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y <= -6.6e-223) || ~((y <= 1.45e-44))) tmp = a * (b * ((x * y) - (z * t))); else tmp = a * (t * ((y2 * y5) - (z * 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[y, -6.6e-223], N[Not[LessEqual[y, 1.45e-44]], $MachinePrecision]], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(N[(y2 * y5), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{-223} \lor \neg \left(y \leq 1.45 \cdot 10^{-44}\right):\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5 - z \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -6.59999999999999988e-223 or 1.4500000000000001e-44 < y Initial program 30.0%
Simplified35.0%
Taylor expanded in a around inf 40.6%
mul-1-neg40.6%
mul-1-neg40.6%
Simplified40.6%
Taylor expanded in b around inf 38.2%
if -6.59999999999999988e-223 < y < 1.4500000000000001e-44Initial program 41.9%
Simplified46.9%
Taylor expanded in a around inf 42.7%
mul-1-neg42.7%
mul-1-neg42.7%
Simplified42.7%
Taylor expanded in t around inf 35.3%
*-commutative35.3%
mul-1-neg35.3%
unsub-neg35.3%
*-commutative35.3%
*-commutative35.3%
Simplified35.3%
Final simplification37.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -68000000000000.0)
(* y (* a (* x b)))
(if (<= y3 -1.4e-87)
(* k (* i (* y y5)))
(if (<= y3 7.2e+51) (* a (* (* x y) b)) (* y5 (* j (* y0 y3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -68000000000000.0) {
tmp = y * (a * (x * b));
} else if (y3 <= -1.4e-87) {
tmp = k * (i * (y * y5));
} else if (y3 <= 7.2e+51) {
tmp = a * ((x * y) * b);
} else {
tmp = y5 * (j * (y0 * y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-68000000000000.0d0)) then
tmp = y * (a * (x * b))
else if (y3 <= (-1.4d-87)) then
tmp = k * (i * (y * y5))
else if (y3 <= 7.2d+51) then
tmp = a * ((x * y) * b)
else
tmp = y5 * (j * (y0 * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -68000000000000.0) {
tmp = y * (a * (x * b));
} else if (y3 <= -1.4e-87) {
tmp = k * (i * (y * y5));
} else if (y3 <= 7.2e+51) {
tmp = a * ((x * y) * b);
} else {
tmp = y5 * (j * (y0 * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -68000000000000.0: tmp = y * (a * (x * b)) elif y3 <= -1.4e-87: tmp = k * (i * (y * y5)) elif y3 <= 7.2e+51: tmp = a * ((x * y) * b) else: tmp = y5 * (j * (y0 * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -68000000000000.0) tmp = Float64(y * Float64(a * Float64(x * b))); elseif (y3 <= -1.4e-87) tmp = Float64(k * Float64(i * Float64(y * y5))); elseif (y3 <= 7.2e+51) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(y5 * Float64(j * Float64(y0 * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -68000000000000.0) tmp = y * (a * (x * b)); elseif (y3 <= -1.4e-87) tmp = k * (i * (y * y5)); elseif (y3 <= 7.2e+51) tmp = a * ((x * y) * b); else tmp = y5 * (j * (y0 * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -68000000000000.0], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.4e-87], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.2e+51], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(y5 * N[(j * N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -68000000000000:\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;y3 \leq -1.4 \cdot 10^{-87}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 7.2 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y5 \cdot \left(j \cdot \left(y0 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -6.8e13Initial program 21.3%
Simplified24.6%
Taylor expanded in a around inf 36.2%
mul-1-neg36.2%
mul-1-neg36.2%
Simplified36.2%
Taylor expanded in b around inf 30.5%
Taylor expanded in x around -inf 29.0%
if -6.8e13 < y3 < -1.4e-87Initial program 25.1%
Simplified25.1%
Taylor expanded in y5 around inf 29.8%
mul-1-neg29.8%
mul-1-neg29.8%
mul-1-neg29.8%
sub-neg29.8%
sub-neg29.8%
Simplified29.8%
Taylor expanded in k around inf 33.0%
associate-*r*33.0%
neg-mul-133.0%
*-commutative33.0%
+-commutative33.0%
mul-1-neg33.0%
unsub-neg33.0%
*-commutative33.0%
Simplified33.0%
Taylor expanded in i around inf 33.2%
if -1.4e-87 < y3 < 7.20000000000000022e51Initial program 42.2%
Simplified46.6%
Taylor expanded in a around inf 42.8%
mul-1-neg42.8%
mul-1-neg42.8%
Simplified42.8%
Taylor expanded in b around inf 35.3%
Taylor expanded in y around inf 26.5%
*-commutative26.5%
associate-*r*28.2%
*-commutative28.2%
Simplified28.2%
if 7.20000000000000022e51 < y3 Initial program 33.9%
Simplified45.3%
Taylor expanded in y5 around inf 38.6%
mul-1-neg38.6%
mul-1-neg38.6%
mul-1-neg38.6%
sub-neg38.6%
sub-neg38.6%
Simplified38.6%
Taylor expanded in j around -inf 33.1%
*-commutative33.1%
mul-1-neg33.1%
unsub-neg33.1%
*-commutative33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in y3 around inf 29.2%
*-commutative29.2%
Simplified29.2%
Final simplification29.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= b -1.6e+39) (not (<= b 15.2))) (* a (* y (* x b))) (* k (* i (* y y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -1.6e+39) || !(b <= 15.2)) {
tmp = a * (y * (x * b));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((b <= (-1.6d+39)) .or. (.not. (b <= 15.2d0))) then
tmp = a * (y * (x * b))
else
tmp = k * (i * (y * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -1.6e+39) || !(b <= 15.2)) {
tmp = a * (y * (x * b));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (b <= -1.6e+39) or not (b <= 15.2): tmp = a * (y * (x * b)) else: tmp = k * (i * (y * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((b <= -1.6e+39) || !(b <= 15.2)) tmp = Float64(a * Float64(y * Float64(x * b))); else tmp = Float64(k * Float64(i * Float64(y * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((b <= -1.6e+39) || ~((b <= 15.2))) tmp = a * (y * (x * b)); else tmp = k * (i * (y * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[b, -1.6e+39], N[Not[LessEqual[b, 15.2]], $MachinePrecision]], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.6 \cdot 10^{+39} \lor \neg \left(b \leq 15.2\right):\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\end{array}
\end{array}
if b < -1.59999999999999996e39 or 15.199999999999999 < b Initial program 26.7%
Simplified32.2%
Taylor expanded in a around inf 43.1%
mul-1-neg43.1%
mul-1-neg43.1%
Simplified43.1%
Taylor expanded in b around inf 44.3%
Taylor expanded in y around inf 33.2%
if -1.59999999999999996e39 < b < 15.199999999999999Initial program 40.4%
Simplified45.1%
Taylor expanded in y5 around inf 40.1%
mul-1-neg40.1%
mul-1-neg40.1%
mul-1-neg40.1%
sub-neg40.1%
sub-neg40.1%
Simplified40.1%
Taylor expanded in k around inf 27.7%
associate-*r*27.7%
neg-mul-127.7%
*-commutative27.7%
+-commutative27.7%
mul-1-neg27.7%
unsub-neg27.7%
*-commutative27.7%
Simplified27.7%
Taylor expanded in i around inf 20.9%
Final simplification27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= b -3.5e+39) (not (<= b 57000.0))) (* y (* a (* x b))) (* k (* i (* y y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -3.5e+39) || !(b <= 57000.0)) {
tmp = y * (a * (x * b));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((b <= (-3.5d+39)) .or. (.not. (b <= 57000.0d0))) then
tmp = y * (a * (x * b))
else
tmp = k * (i * (y * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((b <= -3.5e+39) || !(b <= 57000.0)) {
tmp = y * (a * (x * b));
} else {
tmp = k * (i * (y * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (b <= -3.5e+39) or not (b <= 57000.0): tmp = y * (a * (x * b)) else: tmp = k * (i * (y * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((b <= -3.5e+39) || !(b <= 57000.0)) tmp = Float64(y * Float64(a * Float64(x * b))); else tmp = Float64(k * Float64(i * Float64(y * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((b <= -3.5e+39) || ~((b <= 57000.0))) tmp = y * (a * (x * b)); else tmp = k * (i * (y * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[b, -3.5e+39], N[Not[LessEqual[b, 57000.0]], $MachinePrecision]], N[(y * N[(a * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(i * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.5 \cdot 10^{+39} \lor \neg \left(b \leq 57000\right):\\
\;\;\;\;y \cdot \left(a \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(i \cdot \left(y \cdot y5\right)\right)\\
\end{array}
\end{array}
if b < -3.5000000000000002e39 or 57000 < b Initial program 26.7%
Simplified32.2%
Taylor expanded in a around inf 43.1%
mul-1-neg43.1%
mul-1-neg43.1%
Simplified43.1%
Taylor expanded in b around inf 44.3%
Taylor expanded in x around -inf 34.0%
if -3.5000000000000002e39 < b < 57000Initial program 40.4%
Simplified45.1%
Taylor expanded in y5 around inf 40.1%
mul-1-neg40.1%
mul-1-neg40.1%
mul-1-neg40.1%
sub-neg40.1%
sub-neg40.1%
Simplified40.1%
Taylor expanded in k around inf 27.7%
associate-*r*27.7%
neg-mul-127.7%
*-commutative27.7%
+-commutative27.7%
mul-1-neg27.7%
unsub-neg27.7%
*-commutative27.7%
Simplified27.7%
Taylor expanded in i around inf 20.9%
Final simplification27.4%
(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 33.6%
Simplified38.7%
Taylor expanded in a around inf 41.2%
mul-1-neg41.2%
mul-1-neg41.2%
Simplified41.2%
Taylor expanded in b around inf 31.6%
Taylor expanded in y around inf 21.5%
Final simplification21.5%
(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 2023195
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))