
(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 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* i y1) (* b y0)))
(t_2 (- (* a y5) (* c y4)))
(t_3 (- (* x y) (* z t)))
(t_4
(*
c
(+
(- (* y0 (- (* x y2) (* z y3))) (* i t_3))
(* y4 (- (* y y3) (* t y2))))))
(t_5 (- (* a b) (* c i))))
(if (<= c -7.2e-6)
t_4
(if (<= c -5.5e-249)
(*
j
(+
(+ (* y3 (- (* y0 y5) (* y1 y4))) (- (* b (* t y4)) (* i (* t y5))))
(* x t_1)))
(if (<= c 3.1e-230)
(*
b
(+
(+ (* a t_3) (* y4 (- (* t j) (* y k))))
(* y0 (- (* z k) (* x j)))))
(if (<= c 2.5e-189)
(*
y
(+
(+ (* k (- (* i y5) (* b y4))) (* x t_5))
(* y3 (- (* c y4) (* a y5)))))
(if (<= c 1.05e-124)
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 t_2)))
(if (<= c 2.1e-37)
(+
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5)))
(+
(* a (+ (* y1 (- (* z y3) (* x y2))) (* b t_3)))
(* (- (* t y2) (* y y3)) t_2)))
(if (<= c 8e+112)
(* x (+ (+ (* y t_5) (* y2 (- (* c y0) (* a y1)))) (* j t_1)))
t_4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = (a * y5) - (c * y4);
double t_3 = (x * y) - (z * t);
double t_4 = c * (((y0 * ((x * y2) - (z * y3))) - (i * t_3)) + (y4 * ((y * y3) - (t * y2))));
double t_5 = (a * b) - (c * i);
double tmp;
if (c <= -7.2e-6) {
tmp = t_4;
} else if (c <= -5.5e-249) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * t_1));
} else if (c <= 3.1e-230) {
tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (c <= 2.5e-189) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * ((c * y4) - (a * y5))));
} else if (c <= 1.05e-124) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
} else if (c <= 2.1e-37) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + ((a * ((y1 * ((z * y3) - (x * y2))) + (b * t_3))) + (((t * y2) - (y * y3)) * t_2));
} else if (c <= 8e+112) {
tmp = x * (((y * t_5) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else {
tmp = t_4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (i * y1) - (b * y0)
t_2 = (a * y5) - (c * y4)
t_3 = (x * y) - (z * t)
t_4 = c * (((y0 * ((x * y2) - (z * y3))) - (i * t_3)) + (y4 * ((y * y3) - (t * y2))))
t_5 = (a * b) - (c * i)
if (c <= (-7.2d-6)) then
tmp = t_4
else if (c <= (-5.5d-249)) then
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * t_1))
else if (c <= 3.1d-230) then
tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))))
else if (c <= 2.5d-189) then
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * ((c * y4) - (a * y5))))
else if (c <= 1.05d-124) then
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2))
else if (c <= 2.1d-37) then
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + ((a * ((y1 * ((z * y3) - (x * y2))) + (b * t_3))) + (((t * y2) - (y * y3)) * t_2))
else if (c <= 8d+112) then
tmp = x * (((y * t_5) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1))
else
tmp = t_4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y1) - (b * y0);
double t_2 = (a * y5) - (c * y4);
double t_3 = (x * y) - (z * t);
double t_4 = c * (((y0 * ((x * y2) - (z * y3))) - (i * t_3)) + (y4 * ((y * y3) - (t * y2))));
double t_5 = (a * b) - (c * i);
double tmp;
if (c <= -7.2e-6) {
tmp = t_4;
} else if (c <= -5.5e-249) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * t_1));
} else if (c <= 3.1e-230) {
tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j))));
} else if (c <= 2.5e-189) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * ((c * y4) - (a * y5))));
} else if (c <= 1.05e-124) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2));
} else if (c <= 2.1e-37) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + ((a * ((y1 * ((z * y3) - (x * y2))) + (b * t_3))) + (((t * y2) - (y * y3)) * t_2));
} else if (c <= 8e+112) {
tmp = x * (((y * t_5) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1));
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (i * y1) - (b * y0) t_2 = (a * y5) - (c * y4) t_3 = (x * y) - (z * t) t_4 = c * (((y0 * ((x * y2) - (z * y3))) - (i * t_3)) + (y4 * ((y * y3) - (t * y2)))) t_5 = (a * b) - (c * i) tmp = 0 if c <= -7.2e-6: tmp = t_4 elif c <= -5.5e-249: tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * t_1)) elif c <= 3.1e-230: tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))) elif c <= 2.5e-189: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * ((c * y4) - (a * y5)))) elif c <= 1.05e-124: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2)) elif c <= 2.1e-37: tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + ((a * ((y1 * ((z * y3) - (x * y2))) + (b * t_3))) + (((t * y2) - (y * y3)) * t_2)) elif c <= 8e+112: tmp = x * (((y * t_5) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)) else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y1) - Float64(b * y0)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) t_3 = Float64(Float64(x * y) - Float64(z * t)) t_4 = Float64(c * Float64(Float64(Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3))) - Float64(i * t_3)) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))) t_5 = Float64(Float64(a * b) - Float64(c * i)) tmp = 0.0 if (c <= -7.2e-6) tmp = t_4; elseif (c <= -5.5e-249) tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(Float64(b * Float64(t * y4)) - Float64(i * Float64(t * y5)))) + Float64(x * t_1))); elseif (c <= 3.1e-230) tmp = Float64(b * Float64(Float64(Float64(a * t_3) + Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (c <= 2.5e-189) tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_5)) + Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (c <= 1.05e-124) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_2))); elseif (c <= 2.1e-37) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(Float64(a * Float64(Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(b * t_3))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_2))); elseif (c <= 8e+112) tmp = Float64(x * Float64(Float64(Float64(y * t_5) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(j * t_1))); else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (i * y1) - (b * y0); t_2 = (a * y5) - (c * y4); t_3 = (x * y) - (z * t); t_4 = c * (((y0 * ((x * y2) - (z * y3))) - (i * t_3)) + (y4 * ((y * y3) - (t * y2)))); t_5 = (a * b) - (c * i); tmp = 0.0; if (c <= -7.2e-6) tmp = t_4; elseif (c <= -5.5e-249) tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * t_1)); elseif (c <= 3.1e-230) tmp = b * (((a * t_3) + (y4 * ((t * j) - (y * k)))) + (y0 * ((z * k) - (x * j)))); elseif (c <= 2.5e-189) tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * ((c * y4) - (a * y5)))); elseif (c <= 1.05e-124) tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_2)); elseif (c <= 2.1e-37) tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + ((a * ((y1 * ((z * y3) - (x * y2))) + (b * t_3))) + (((t * y2) - (y * y3)) * t_2)); elseif (c <= 8e+112) tmp = x * (((y * t_5) + (y2 * ((c * y0) - (a * y1)))) + (j * t_1)); else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c * N[(N[(N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.2e-6], t$95$4, If[LessEqual[c, -5.5e-249], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.1e-230], N[(b * N[(N[(N[(a * t$95$3), $MachinePrecision] + N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e-189], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e-124], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.1e-37], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a * N[(N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e+112], N[(x * N[(N[(N[(y * t$95$5), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot y1 - b \cdot y0\\
t_2 := a \cdot y5 - c \cdot y4\\
t_3 := x \cdot y - z \cdot t\\
t_4 := c \cdot \left(\left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right) - i \cdot t\_3\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_5 := a \cdot b - c \cdot i\\
\mathbf{if}\;c \leq -7.2 \cdot 10^{-6}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{-249}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + \left(b \cdot \left(t \cdot y4\right) - i \cdot \left(t \cdot y5\right)\right)\right) + x \cdot t\_1\right)\\
\mathbf{elif}\;c \leq 3.1 \cdot 10^{-230}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_3 + y4 \cdot \left(t \cdot j - y \cdot k\right)\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-189}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t\_5\right) + y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-124}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_2\right)\\
\mathbf{elif}\;c \leq 2.1 \cdot 10^{-37}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + \left(a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right) + b \cdot t\_3\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot t\_2\right)\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+112}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t\_5 + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + j \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if c < -7.19999999999999967e-6 or 7.9999999999999994e112 < c Initial program 30.4%
Taylor expanded in c around inf 64.2%
if -7.19999999999999967e-6 < c < -5.49999999999999999e-249Initial program 31.1%
Taylor expanded in j around inf 47.4%
Taylor expanded in b around 0 52.1%
if -5.49999999999999999e-249 < c < 3.1e-230Initial program 36.0%
Taylor expanded in b around inf 52.7%
if 3.1e-230 < c < 2.4999999999999999e-189Initial program 23.5%
Taylor expanded in y around inf 65.5%
if 2.4999999999999999e-189 < c < 1.05e-124Initial program 31.3%
Taylor expanded in t around inf 70.7%
if 1.05e-124 < c < 2.1000000000000001e-37Initial program 43.2%
Taylor expanded in a around inf 71.8%
if 2.1000000000000001e-37 < c < 7.9999999999999994e112Initial program 22.1%
Taylor expanded in x around inf 51.7%
Final simplification59.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4)))
(t_2
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* (- (* t j) (* y k)) (- (* b y4) (* i y5))))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(* y2 (+ (* y4 (* k (- y1 (* y0 (/ y5 y4))))) (* t t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * t_1));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y5) - (c * y4);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * t_1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * t_1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(a * b) - Float64(c * i)) * Float64(Float64(x * y) - Float64(z * t))) + Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(z * k) - Float64(x * j)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_1)) + 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(y2 * Float64(Float64(y4 * Float64(k * Float64(y1 - Float64(y0 * Float64(y5 / y4))))) + Float64(t * t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y5) - (c * y4); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((t * j) - (y * k)) * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $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[(y2 * N[(N[(y4 * N[(k * N[(y1 - N[(y0 * N[(y5 / y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
t_2 := \left(\left(\left(\left(\left(a \cdot b - c \cdot i\right) \cdot \left(x \cdot y - z \cdot t\right) + \left(b \cdot y0 - i \cdot y1\right) \cdot \left(z \cdot k - x \cdot j\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot t\_1\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}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot \left(y1 - y0 \cdot \frac{y5}{y4}\right)\right) + t \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 90.3%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y2 around inf 39.4%
Taylor expanded in y4 around inf 39.3%
Taylor expanded in x around 0 38.4%
+-commutative38.4%
mul-1-neg38.4%
associate-*r/40.1%
distribute-rgt-neg-in40.1%
mul-1-neg40.1%
distribute-lft-in42.5%
mul-1-neg42.5%
unsub-neg42.5%
associate-/l*41.3%
*-commutative41.3%
*-commutative41.3%
Simplified41.3%
Final simplification57.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y5) (* c y4))))
(if (<= i -3.4e+143)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
(if (<= i -7.8e-87)
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 t_1)))
(if (<= i -1.75e-118)
(* y4 (* c (- (* y y3) (* t y2))))
(if (<= i -2.7e-275)
(*
j
(+
(+
(* y3 (- (* y0 y5) (* y1 y4)))
(- (* b (* t y4)) (* i (* t y5))))
(* x (- (* i y1) (* b y0)))))
(if (<= i 3.8e+145)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_1)))
(* j (* i (- (* x y1) (* t 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 = (a * y5) - (c * y4);
double tmp;
if (i <= -3.4e+143) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
} else if (i <= -7.8e-87) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1));
} else if (i <= -1.75e-118) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (i <= -2.7e-275) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * ((i * y1) - (b * y0))));
} else if (i <= 3.8e+145) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else {
tmp = j * (i * ((x * y1) - (t * 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 = (a * y5) - (c * y4)
if (i <= (-3.4d+143)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
else if (i <= (-7.8d-87)) then
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1))
else if (i <= (-1.75d-118)) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else if (i <= (-2.7d-275)) then
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * ((i * y1) - (b * y0))))
else if (i <= 3.8d+145) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else
tmp = j * (i * ((x * y1) - (t * 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 = (a * y5) - (c * y4);
double tmp;
if (i <= -3.4e+143) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
} else if (i <= -7.8e-87) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1));
} else if (i <= -1.75e-118) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (i <= -2.7e-275) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * ((i * y1) - (b * y0))));
} else if (i <= 3.8e+145) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else {
tmp = j * (i * ((x * y1) - (t * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y5) - (c * y4) tmp = 0 if i <= -3.4e+143: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j))))) elif i <= -7.8e-87: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)) elif i <= -1.75e-118: tmp = y4 * (c * ((y * y3) - (t * y2))) elif i <= -2.7e-275: tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * ((i * y1) - (b * y0)))) elif i <= 3.8e+145: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) else: tmp = j * (i * ((x * y1) - (t * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y5) - Float64(c * y4)) tmp = 0.0 if (i <= -3.4e+143) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))))); elseif (i <= -7.8e-87) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * t_1))); elseif (i <= -1.75e-118) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (i <= -2.7e-275) tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(Float64(b * Float64(t * y4)) - Float64(i * Float64(t * y5)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (i <= 3.8e+145) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_1))); else tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * 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 = (a * y5) - (c * y4); tmp = 0.0; if (i <= -3.4e+143) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j))))); elseif (i <= -7.8e-87) tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * t_1)); elseif (i <= -1.75e-118) tmp = y4 * (c * ((y * y3) - (t * y2))); elseif (i <= -2.7e-275) tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + ((b * (t * y4)) - (i * (t * y5)))) + (x * ((i * y1) - (b * y0)))); elseif (i <= 3.8e+145) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); else tmp = j * (i * ((x * y1) - (t * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.4e+143], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.8e-87], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.75e-118], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.7e-275], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] - N[(i * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e+145], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y5 - c \cdot y4\\
\mathbf{if}\;i \leq -3.4 \cdot 10^{+143}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
\mathbf{elif}\;i \leq -7.8 \cdot 10^{-87}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot t\_1\right)\\
\mathbf{elif}\;i \leq -1.75 \cdot 10^{-118}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq -2.7 \cdot 10^{-275}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + \left(b \cdot \left(t \cdot y4\right) - i \cdot \left(t \cdot y5\right)\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{+145}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\end{array}
\end{array}
if i < -3.39999999999999982e143Initial program 24.0%
Taylor expanded in i around -inf 58.3%
if -3.39999999999999982e143 < i < -7.7999999999999996e-87Initial program 24.4%
Taylor expanded in t around inf 63.4%
if -7.7999999999999996e-87 < i < -1.75e-118Initial program 41.3%
Taylor expanded in y4 around inf 97.3%
Taylor expanded in c around inf 97.3%
if -1.75e-118 < i < -2.69999999999999993e-275Initial program 56.3%
Taylor expanded in j around inf 66.3%
Taylor expanded in b around 0 72.3%
if -2.69999999999999993e-275 < i < 3.80000000000000012e145Initial program 30.5%
Taylor expanded in y2 around inf 46.5%
if 3.80000000000000012e145 < i Initial program 19.8%
Taylor expanded in j around inf 45.7%
Taylor expanded in i around -inf 51.7%
Final simplification56.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b y4) (* i y5))) (t_2 (- (* a y5) (* c y4))))
(if (<= i -3.3e+143)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(+ (* c (- (* z t) (* x y))) (* y5 (- (* y k) (* t j))))))
(if (<= i -9.5e-85)
(* t (+ (+ (* z (- (* c i) (* a b))) (* j t_1)) (* y2 t_2)))
(if (<= i -3.9e-116)
(* y4 (* c (- (* y y3) (* t y2))))
(if (<= i -4.6e-243)
(*
j
(+
(+ (* y3 (- (* y0 y5) (* y1 y4))) (* t t_1))
(* x (- (* i y1) (* b y0)))))
(if (<= i 2.05e+145)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_2)))
(* j (* i (- (* x y1) (* t 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 = (b * y4) - (i * y5);
double t_2 = (a * y5) - (c * y4);
double tmp;
if (i <= -3.3e+143) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
} else if (i <= -9.5e-85) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * t_2));
} else if (i <= -3.9e-116) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (i <= -4.6e-243) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * t_1)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 2.05e+145) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else {
tmp = j * (i * ((x * y1) - (t * y5)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (b * y4) - (i * y5)
t_2 = (a * y5) - (c * y4)
if (i <= (-3.3d+143)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))))
else if (i <= (-9.5d-85)) then
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * t_2))
else if (i <= (-3.9d-116)) then
tmp = y4 * (c * ((y * y3) - (t * y2)))
else if (i <= (-4.6d-243)) then
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * t_1)) + (x * ((i * y1) - (b * y0))))
else if (i <= 2.05d+145) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2))
else
tmp = j * (i * ((x * y1) - (t * 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 = (b * y4) - (i * y5);
double t_2 = (a * y5) - (c * y4);
double tmp;
if (i <= -3.3e+143) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j)))));
} else if (i <= -9.5e-85) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * t_2));
} else if (i <= -3.9e-116) {
tmp = y4 * (c * ((y * y3) - (t * y2)));
} else if (i <= -4.6e-243) {
tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * t_1)) + (x * ((i * y1) - (b * y0))));
} else if (i <= 2.05e+145) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2));
} else {
tmp = j * (i * ((x * y1) - (t * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = (a * y5) - (c * y4) tmp = 0 if i <= -3.3e+143: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j))))) elif i <= -9.5e-85: tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * t_2)) elif i <= -3.9e-116: tmp = y4 * (c * ((y * y3) - (t * y2))) elif i <= -4.6e-243: tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * t_1)) + (x * ((i * y1) - (b * y0)))) elif i <= 2.05e+145: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)) else: tmp = j * (i * ((x * y1) - (t * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(Float64(a * y5) - Float64(c * y4)) tmp = 0.0 if (i <= -3.3e+143) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) + Float64(y5 * Float64(Float64(y * k) - Float64(t * j)))))); elseif (i <= -9.5e-85) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * t_1)) + Float64(y2 * t_2))); elseif (i <= -3.9e-116) tmp = Float64(y4 * Float64(c * Float64(Float64(y * y3) - Float64(t * y2)))); elseif (i <= -4.6e-243) tmp = Float64(j * Float64(Float64(Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(t * t_1)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (i <= 2.05e+145) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_2))); else tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * 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 = (b * y4) - (i * y5); t_2 = (a * y5) - (c * y4); tmp = 0.0; if (i <= -3.3e+143) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) + (y5 * ((y * k) - (t * j))))); elseif (i <= -9.5e-85) tmp = t * (((z * ((c * i) - (a * b))) + (j * t_1)) + (y2 * t_2)); elseif (i <= -3.9e-116) tmp = y4 * (c * ((y * y3) - (t * y2))); elseif (i <= -4.6e-243) tmp = j * (((y3 * ((y0 * y5) - (y1 * y4))) + (t * t_1)) + (x * ((i * y1) - (b * y0)))); elseif (i <= 2.05e+145) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_2)); else tmp = j * (i * ((x * y1) - (t * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.3e+143], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -9.5e-85], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.9e-116], N[(y4 * N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.6e-243], N[(j * N[(N[(N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.05e+145], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := a \cdot y5 - c \cdot y4\\
\mathbf{if}\;i \leq -3.3 \cdot 10^{+143}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) + y5 \cdot \left(y \cdot k - t \cdot j\right)\right)\right)\\
\mathbf{elif}\;i \leq -9.5 \cdot 10^{-85}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t\_1\right) + y2 \cdot t\_2\right)\\
\mathbf{elif}\;i \leq -3.9 \cdot 10^{-116}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;i \leq -4.6 \cdot 10^{-243}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + t \cdot t\_1\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 2.05 \cdot 10^{+145}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\end{array}
\end{array}
if i < -3.3e143Initial program 24.0%
Taylor expanded in i around -inf 58.3%
if -3.3e143 < i < -9.49999999999999964e-85Initial program 24.4%
Taylor expanded in t around inf 63.4%
if -9.49999999999999964e-85 < i < -3.9000000000000001e-116Initial program 41.3%
Taylor expanded in y4 around inf 97.3%
Taylor expanded in c around inf 97.3%
if -3.9000000000000001e-116 < i < -4.6e-243Initial program 59.3%
Taylor expanded in j around inf 74.7%
if -4.6e-243 < i < 2.0500000000000001e145Initial program 30.9%
Taylor expanded in y2 around inf 45.4%
if 2.0500000000000001e145 < i Initial program 19.8%
Taylor expanded in j around inf 45.7%
Taylor expanded in i around -inf 51.7%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k))))
(if (<= y2 -2.7e+248)
(* t (* y5 (- (* a y2) (* c (/ (* y2 y4) y5)))))
(if (<= y2 -9e+70)
(* y4 (+ (* b t_1) (* y1 (- (* k y2) (* j y3)))))
(if (<= y2 -3.6e-61)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 5200000000000.0)
(*
b
(+
(+ (* a (- (* x y) (* z t))) (* y4 t_1))
(* y0 (- (* z k) (* x j)))))
(if (<= y2 1.4e+248)
(*
y2
(+
(* y4 (* k (- y1 (* y0 (/ y5 y4)))))
(* t (- (* a y5) (* c y4)))))
(* y4 (* c (* y3 (- y (* t (/ y2 y3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (y2 <= -2.7e+248) {
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))));
} else if (y2 <= -9e+70) {
tmp = y4 * ((b * t_1) + (y1 * ((k * y2) - (j * y3))));
} else if (y2 <= -3.6e-61) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 5200000000000.0) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (y2 <= 1.4e+248) {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))));
} else {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (t * j) - (y * k)
if (y2 <= (-2.7d+248)) then
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))))
else if (y2 <= (-9d+70)) then
tmp = y4 * ((b * t_1) + (y1 * ((k * y2) - (j * y3))))
else if (y2 <= (-3.6d-61)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= 5200000000000.0d0) then
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))))
else if (y2 <= 1.4d+248) then
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))))
else
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (y2 <= -2.7e+248) {
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))));
} else if (y2 <= -9e+70) {
tmp = y4 * ((b * t_1) + (y1 * ((k * y2) - (j * y3))));
} else if (y2 <= -3.6e-61) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 5200000000000.0) {
tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j))));
} else if (y2 <= 1.4e+248) {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))));
} else {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) tmp = 0 if y2 <= -2.7e+248: tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5)))) elif y2 <= -9e+70: tmp = y4 * ((b * t_1) + (y1 * ((k * y2) - (j * y3)))) elif y2 <= -3.6e-61: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= 5200000000000.0: tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))) elif y2 <= 1.4e+248: tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4)))) else: tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (y2 <= -2.7e+248) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(c * Float64(Float64(y2 * y4) / y5))))); elseif (y2 <= -9e+70) tmp = Float64(y4 * Float64(Float64(b * t_1) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))))); elseif (y2 <= -3.6e-61) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= 5200000000000.0) tmp = Float64(b * Float64(Float64(Float64(a * Float64(Float64(x * y) - Float64(z * t))) + Float64(y4 * t_1)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y2 <= 1.4e+248) tmp = Float64(y2 * Float64(Float64(y4 * Float64(k * Float64(y1 - Float64(y0 * Float64(y5 / y4))))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); else tmp = Float64(y4 * Float64(c * Float64(y3 * Float64(y - Float64(t * Float64(y2 / y3)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); tmp = 0.0; if (y2 <= -2.7e+248) tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5)))); elseif (y2 <= -9e+70) tmp = y4 * ((b * t_1) + (y1 * ((k * y2) - (j * y3)))); elseif (y2 <= -3.6e-61) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= 5200000000000.0) tmp = b * (((a * ((x * y) - (z * t))) + (y4 * t_1)) + (y0 * ((z * k) - (x * j)))); elseif (y2 <= 1.4e+248) tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4)))); else tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.7e+248], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(c * N[(N[(y2 * y4), $MachinePrecision] / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -9e+70], N[(y4 * N[(N[(b * t$95$1), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.6e-61], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5200000000000.0], N[(b * N[(N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.4e+248], N[(y2 * N[(N[(y4 * N[(k * N[(y1 - N[(y0 * N[(y5 / y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(c * N[(y3 * N[(y - N[(t * N[(y2 / y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
\mathbf{if}\;y2 \leq -2.7 \cdot 10^{+248}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - c \cdot \frac{y2 \cdot y4}{y5}\right)\right)\\
\mathbf{elif}\;y2 \leq -9 \cdot 10^{+70}:\\
\;\;\;\;y4 \cdot \left(b \cdot t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -3.6 \cdot 10^{-61}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 5200000000000:\\
\;\;\;\;b \cdot \left(\left(a \cdot \left(x \cdot y - z \cdot t\right) + y4 \cdot t\_1\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y2 \leq 1.4 \cdot 10^{+248}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot \left(y1 - y0 \cdot \frac{y5}{y4}\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y3 \cdot \left(y - t \cdot \frac{y2}{y3}\right)\right)\right)\\
\end{array}
\end{array}
if y2 < -2.69999999999999989e248Initial program 25.0%
Taylor expanded in y2 around inf 75.0%
Taylor expanded in t around inf 75.5%
Taylor expanded in y5 around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
associate-/l*83.3%
*-commutative83.3%
Simplified83.3%
if -2.69999999999999989e248 < y2 < -8.9999999999999999e70Initial program 35.6%
Taylor expanded in y4 around inf 41.6%
Taylor expanded in c around 0 59.4%
if -8.9999999999999999e70 < y2 < -3.60000000000000014e-61Initial program 24.6%
Taylor expanded in y3 around -inf 56.0%
Taylor expanded in z around inf 52.6%
associate-*r*52.5%
Simplified52.5%
if -3.60000000000000014e-61 < y2 < 5.2e12Initial program 35.0%
Taylor expanded in b around inf 41.1%
if 5.2e12 < y2 < 1.4000000000000001e248Initial program 23.9%
Taylor expanded in y2 around inf 52.5%
Taylor expanded in y4 around inf 52.5%
Taylor expanded in x around 0 46.6%
+-commutative46.6%
mul-1-neg46.6%
associate-*r/50.8%
distribute-rgt-neg-in50.8%
mul-1-neg50.8%
distribute-lft-in52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-/l*55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
if 1.4000000000000001e248 < y2 Initial program 21.4%
Taylor expanded in y4 around inf 50.1%
Taylor expanded in c around inf 50.5%
Taylor expanded in y3 around inf 57.5%
mul-1-neg57.5%
unsub-neg57.5%
associate-/l*71.5%
Simplified71.5%
Final simplification51.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -4.2e+133)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y3 -4.3e+36)
(* j (* y5 (- (* y0 y3) (* y1 (/ (* y3 y4) y5)))))
(if (<= y3 1.6e-289)
(*
y2
(+ (* y4 (* k (- y1 (* y0 (/ y5 y4))))) (* t (- (* a y5) (* c y4)))))
(if (<= y3 4.4e-100)
(* a (* b (* x (- y (/ (* z t) x)))))
(if (<= y3 2.2e+14)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y3 6e+44)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y3 7e+216)
(* j (* y0 (- (* y3 y5) (* x b))))
(* y4 (* y2 (- (* c (* y (/ y3 y2))) (* t c))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -4.2e+133) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y3 <= -4.3e+36) {
tmp = j * (y5 * ((y0 * y3) - (y1 * ((y3 * y4) / y5))));
} else if (y3 <= 1.6e-289) {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= 4.4e-100) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else if (y3 <= 2.2e+14) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y3 <= 6e+44) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= 7e+216) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = y4 * (y2 * ((c * (y * (y3 / y2))) - (t * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-4.2d+133)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y3 <= (-4.3d+36)) then
tmp = j * (y5 * ((y0 * y3) - (y1 * ((y3 * y4) / y5))))
else if (y3 <= 1.6d-289) then
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))))
else if (y3 <= 4.4d-100) then
tmp = a * (b * (x * (y - ((z * t) / x))))
else if (y3 <= 2.2d+14) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y3 <= 6d+44) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y3 <= 7d+216) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = y4 * (y2 * ((c * (y * (y3 / y2))) - (t * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -4.2e+133) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y3 <= -4.3e+36) {
tmp = j * (y5 * ((y0 * y3) - (y1 * ((y3 * y4) / y5))));
} else if (y3 <= 1.6e-289) {
tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= 4.4e-100) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else if (y3 <= 2.2e+14) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y3 <= 6e+44) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= 7e+216) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = y4 * (y2 * ((c * (y * (y3 / y2))) - (t * c)));
}
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.2e+133: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y3 <= -4.3e+36: tmp = j * (y5 * ((y0 * y3) - (y1 * ((y3 * y4) / y5)))) elif y3 <= 1.6e-289: tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4)))) elif y3 <= 4.4e-100: tmp = a * (b * (x * (y - ((z * t) / x)))) elif y3 <= 2.2e+14: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y3 <= 6e+44: tmp = a * (y * ((x * b) - (y3 * y5))) elif y3 <= 7e+216: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = y4 * (y2 * ((c * (y * (y3 / y2))) - (t * c))) 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.2e+133) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y3 <= -4.3e+36) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(y1 * Float64(Float64(y3 * y4) / y5))))); elseif (y3 <= 1.6e-289) tmp = Float64(y2 * Float64(Float64(y4 * Float64(k * Float64(y1 - Float64(y0 * Float64(y5 / y4))))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= 4.4e-100) tmp = Float64(a * Float64(b * Float64(x * Float64(y - Float64(Float64(z * t) / x))))); elseif (y3 <= 2.2e+14) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y3 <= 6e+44) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= 7e+216) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(y4 * Float64(y2 * Float64(Float64(c * Float64(y * Float64(y3 / y2))) - Float64(t * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -4.2e+133) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y3 <= -4.3e+36) tmp = j * (y5 * ((y0 * y3) - (y1 * ((y3 * y4) / y5)))); elseif (y3 <= 1.6e-289) tmp = y2 * ((y4 * (k * (y1 - (y0 * (y5 / y4))))) + (t * ((a * y5) - (c * y4)))); elseif (y3 <= 4.4e-100) tmp = a * (b * (x * (y - ((z * t) / x)))); elseif (y3 <= 2.2e+14) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y3 <= 6e+44) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y3 <= 7e+216) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = y4 * (y2 * ((c * (y * (y3 / y2))) - (t * c))); 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.2e+133], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.3e+36], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(y1 * N[(N[(y3 * y4), $MachinePrecision] / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.6e-289], N[(y2 * N[(N[(y4 * N[(k * N[(y1 - N[(y0 * N[(y5 / y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.4e-100], N[(a * N[(b * N[(x * N[(y - N[(N[(z * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.2e+14], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6e+44], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7e+216], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(y2 * N[(N[(c * N[(y * N[(y3 / y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -4.2 \cdot 10^{+133}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y3 \leq -4.3 \cdot 10^{+36}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - y1 \cdot \frac{y3 \cdot y4}{y5}\right)\right)\\
\mathbf{elif}\;y3 \leq 1.6 \cdot 10^{-289}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot \left(y1 - y0 \cdot \frac{y5}{y4}\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 4.4 \cdot 10^{-100}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot \left(y - \frac{z \cdot t}{x}\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 2.2 \cdot 10^{+14}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y3 \leq 6 \cdot 10^{+44}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 7 \cdot 10^{+216}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(y2 \cdot \left(c \cdot \left(y \cdot \frac{y3}{y2}\right) - t \cdot c\right)\right)\\
\end{array}
\end{array}
if y3 < -4.2e133Initial program 19.4%
Taylor expanded in y3 around -inf 61.6%
Taylor expanded in z around inf 58.9%
associate-*r*58.9%
Simplified58.9%
if -4.2e133 < y3 < -4.30000000000000005e36Initial program 19.4%
Taylor expanded in j around inf 44.0%
Taylor expanded in y3 around inf 39.9%
neg-mul-139.9%
distribute-rgt-neg-in39.9%
Simplified39.9%
Taylor expanded in y5 around inf 48.9%
+-commutative48.9%
mul-1-neg48.9%
unsub-neg48.9%
associate-/l*48.8%
*-commutative48.8%
Simplified48.8%
if -4.30000000000000005e36 < y3 < 1.6000000000000001e-289Initial program 32.7%
Taylor expanded in y2 around inf 47.6%
Taylor expanded in y4 around inf 50.5%
Taylor expanded in x around 0 44.9%
+-commutative44.9%
mul-1-neg44.9%
associate-*r/46.3%
distribute-rgt-neg-in46.3%
mul-1-neg46.3%
distribute-lft-in49.2%
mul-1-neg49.2%
unsub-neg49.2%
associate-/l*49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
if 1.6000000000000001e-289 < y3 < 4.39999999999999978e-100Initial program 40.8%
Taylor expanded in b around inf 39.1%
Taylor expanded in a around inf 39.5%
Taylor expanded in x around inf 46.6%
associate-*r/46.6%
neg-mul-146.6%
distribute-rgt-neg-in46.6%
Simplified46.6%
if 4.39999999999999978e-100 < y3 < 2.2e14Initial program 30.0%
Taylor expanded in y2 around inf 53.9%
Taylor expanded in x around inf 51.0%
if 2.2e14 < y3 < 5.99999999999999974e44Initial program 12.5%
Taylor expanded in y around inf 62.8%
Taylor expanded in a around inf 75.3%
if 5.99999999999999974e44 < y3 < 6.99999999999999984e216Initial program 35.5%
Taylor expanded in j around inf 50.5%
Taylor expanded in y0 around inf 46.1%
if 6.99999999999999984e216 < y3 Initial program 31.3%
Taylor expanded in y4 around inf 56.7%
Taylor expanded in c around inf 63.4%
Taylor expanded in y2 around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
associate-/l*63.2%
associate-/l*75.0%
*-commutative75.0%
Simplified75.0%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.25e+24)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))
(if (<= y4 -1.42e-39)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 1.55e-243)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 8.4e+40)
(* y4 (* c (* y3 (- y (* t (/ y2 y3))))))
(* j (* y3 (* y5 (- y0 (* y1 (/ y4 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 (y4 <= -1.25e+24) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.55e-243) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 8.4e+40) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= (-1.25d+24)) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
else if (y4 <= (-1.42d-39)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 1.55d-243) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= 8.4d+40) then
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))))
else
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.25e+24) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.55e-243) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 8.4e+40) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -1.25e+24: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) elif y4 <= -1.42e-39: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 1.55e-243: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= 8.4e+40: tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))) else: tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.25e+24) 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 (y4 <= -1.42e-39) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 1.55e-243) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= 8.4e+40) tmp = Float64(y4 * Float64(c * Float64(y3 * Float64(y - Float64(t * Float64(y2 / y3)))))); else tmp = Float64(j * Float64(y3 * Float64(y5 * Float64(y0 - Float64(y1 * Float64(y4 / 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 (y4 <= -1.25e+24) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); elseif (y4 <= -1.42e-39) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 1.55e-243) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= 8.4e+40) tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))); else tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.25e+24], 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[y4, -1.42e-39], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.55e-243], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.4e+40], N[(y4 * N[(c * N[(y3 * N[(y - N[(t * N[(y2 / y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y3 * N[(y5 * N[(y0 - N[(y1 * N[(y4 / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.25 \cdot 10^{+24}:\\
\;\;\;\;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}\;y4 \leq -1.42 \cdot 10^{-39}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 1.55 \cdot 10^{-243}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 8.4 \cdot 10^{+40}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y3 \cdot \left(y - t \cdot \frac{y2}{y3}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y5 \cdot \left(y0 - y1 \cdot \frac{y4}{y5}\right)\right)\right)\\
\end{array}
\end{array}
if y4 < -1.25000000000000011e24Initial program 21.2%
Taylor expanded in y4 around inf 63.1%
if -1.25000000000000011e24 < y4 < -1.42000000000000005e-39Initial program 29.4%
Taylor expanded in j around inf 36.3%
Taylor expanded in x around inf 64.9%
if -1.42000000000000005e-39 < y4 < 1.55e-243Initial program 35.8%
Taylor expanded in y2 around inf 51.8%
if 1.55e-243 < y4 < 8.4000000000000004e40Initial program 34.0%
Taylor expanded in y4 around inf 31.3%
Taylor expanded in c around inf 36.7%
Taylor expanded in y3 around inf 40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*44.9%
Simplified44.9%
if 8.4000000000000004e40 < y4 Initial program 29.6%
Taylor expanded in j around inf 39.3%
Taylor expanded in y3 around inf 40.0%
neg-mul-140.0%
distribute-rgt-neg-in40.0%
Simplified40.0%
Taylor expanded in y5 around inf 44.4%
mul-1-neg44.4%
unsub-neg44.4%
associate-/l*48.7%
Simplified48.7%
Final simplification52.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.9e+23)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (<= y4 -1.42e-39)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 9.5e-245)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 2.3e+40)
(* y4 (* c (* y3 (- y (* t (/ y2 y3))))))
(* j (* y3 (* y5 (- y0 (* y1 (/ y4 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 (y4 <= -1.9e+23) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 9.5e-245) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 2.3e+40) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= (-1.9d+23)) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if (y4 <= (-1.42d-39)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 9.5d-245) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= 2.3d+40) then
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))))
else
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.9e+23) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 9.5e-245) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= 2.3e+40) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -1.9e+23: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif y4 <= -1.42e-39: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 9.5e-245: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= 2.3e+40: tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))) else: tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.9e+23) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif (y4 <= -1.42e-39) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 9.5e-245) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= 2.3e+40) tmp = Float64(y4 * Float64(c * Float64(y3 * Float64(y - Float64(t * Float64(y2 / y3)))))); else tmp = Float64(j * Float64(y3 * Float64(y5 * Float64(y0 - Float64(y1 * Float64(y4 / 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 (y4 <= -1.9e+23) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif (y4 <= -1.42e-39) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 9.5e-245) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= 2.3e+40) tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))); else tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.9e+23], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.42e-39], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.5e-245], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.3e+40], N[(y4 * N[(c * N[(y3 * N[(y - N[(t * N[(y2 / y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y3 * N[(y5 * N[(y0 - N[(y1 * N[(y4 / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.9 \cdot 10^{+23}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y4 \leq -1.42 \cdot 10^{-39}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 9.5 \cdot 10^{-245}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq 2.3 \cdot 10^{+40}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y3 \cdot \left(y - t \cdot \frac{y2}{y3}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y5 \cdot \left(y0 - y1 \cdot \frac{y4}{y5}\right)\right)\right)\\
\end{array}
\end{array}
if y4 < -1.89999999999999987e23Initial program 21.2%
Taylor expanded in y4 around inf 63.1%
Taylor expanded in k around inf 53.5%
associate-*r*51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
Simplified51.8%
if -1.89999999999999987e23 < y4 < -1.42000000000000005e-39Initial program 29.4%
Taylor expanded in j around inf 36.3%
Taylor expanded in x around inf 64.9%
if -1.42000000000000005e-39 < y4 < 9.5000000000000002e-245Initial program 35.8%
Taylor expanded in y2 around inf 51.8%
if 9.5000000000000002e-245 < y4 < 2.29999999999999994e40Initial program 34.0%
Taylor expanded in y4 around inf 31.3%
Taylor expanded in c around inf 36.7%
Taylor expanded in y3 around inf 40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*44.9%
Simplified44.9%
if 2.29999999999999994e40 < y4 Initial program 29.6%
Taylor expanded in j around inf 39.3%
Taylor expanded in y3 around inf 40.0%
neg-mul-140.0%
distribute-rgt-neg-in40.0%
Simplified40.0%
Taylor expanded in y5 around inf 44.4%
mul-1-neg44.4%
unsub-neg44.4%
associate-/l*48.7%
Simplified48.7%
Final simplification50.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.9e+254)
(* c (* y4 (* t (- y2))))
(if (<= y2 -7.8e+46)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y2 -3.8e-92)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y2 1.3)
(* a (* b (- (* x y) (* z t))))
(if (<= y2 5.8e+177)
(* j (* x (- (* i y1) (* b y0))))
(* a (* y5 (* t y2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -7.8e+46) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -3.8e-92) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.3) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 5.8e+177) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.9d+254)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-7.8d+46)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y2 <= (-3.8d-92)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y2 <= 1.3d0) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y2 <= 5.8d+177) then
tmp = j * (x * ((i * y1) - (b * y0)))
else
tmp = a * (y5 * (t * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.9e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -7.8e+46) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -3.8e-92) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.3) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 5.8e+177) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.9e+254: tmp = c * (y4 * (t * -y2)) elif y2 <= -7.8e+46: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y2 <= -3.8e-92: tmp = a * (y * ((x * b) - (y3 * y5))) elif y2 <= 1.3: tmp = a * (b * ((x * y) - (z * t))) elif y2 <= 5.8e+177: tmp = j * (x * ((i * y1) - (b * y0))) else: tmp = a * (y5 * (t * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.9e+254) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -7.8e+46) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y2 <= -3.8e-92) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 1.3) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y2 <= 5.8e+177) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(a * Float64(y5 * Float64(t * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.9e+254) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -7.8e+46) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y2 <= -3.8e-92) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y2 <= 1.3) tmp = a * (b * ((x * y) - (z * t))); elseif (y2 <= 5.8e+177) tmp = j * (x * ((i * y1) - (b * y0))); else tmp = a * (y5 * (t * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.9e+254], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -7.8e+46], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.8e-92], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e+177], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.9 \cdot 10^{+254}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -7.8 \cdot 10^{+46}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -3.8 \cdot 10^{-92}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{+177}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -2.8999999999999999e254Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -2.8999999999999999e254 < y2 < -7.7999999999999999e46Initial program 34.0%
Taylor expanded in y2 around inf 52.1%
Taylor expanded in k around inf 44.4%
if -7.7999999999999999e46 < y2 < -3.8000000000000001e-92Initial program 37.5%
Taylor expanded in y around inf 44.7%
Taylor expanded in a around inf 48.1%
if -3.8000000000000001e-92 < y2 < 1.30000000000000004Initial program 31.4%
Taylor expanded in b around inf 40.2%
Taylor expanded in a around inf 33.2%
if 1.30000000000000004 < y2 < 5.80000000000000027e177Initial program 30.6%
Taylor expanded in j around inf 50.5%
Taylor expanded in x around inf 45.6%
if 5.80000000000000027e177 < y2 Initial program 20.0%
Taylor expanded in y2 around inf 60.3%
Taylor expanded in t around inf 44.5%
Taylor expanded in a around inf 41.4%
associate-*r*47.5%
Simplified47.5%
Final simplification42.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4.5e+252)
(* c (* y4 (* t (- y2))))
(if (<= y2 -1.55e+75)
(* k (* y1 (* y2 y4)))
(if (<= y2 -1.75e-90)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y2 1.85)
(* a (* b (- (* x y) (* z t))))
(if (<= y2 4.2e+177)
(* j (* x (- (* i y1) (* b y0))))
(* a (* y5 (* t y2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.5e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -1.55e+75) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= -1.75e-90) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.85) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 4.2e+177) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-4.5d+252)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-1.55d+75)) then
tmp = k * (y1 * (y2 * y4))
else if (y2 <= (-1.75d-90)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y2 <= 1.85d0) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y2 <= 4.2d+177) then
tmp = j * (x * ((i * y1) - (b * y0)))
else
tmp = a * (y5 * (t * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.5e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -1.55e+75) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= -1.75e-90) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.85) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 4.2e+177) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = a * (y5 * (t * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4.5e+252: tmp = c * (y4 * (t * -y2)) elif y2 <= -1.55e+75: tmp = k * (y1 * (y2 * y4)) elif y2 <= -1.75e-90: tmp = a * (y * ((x * b) - (y3 * y5))) elif y2 <= 1.85: tmp = a * (b * ((x * y) - (z * t))) elif y2 <= 4.2e+177: tmp = j * (x * ((i * y1) - (b * y0))) else: tmp = a * (y5 * (t * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4.5e+252) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -1.55e+75) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (y2 <= -1.75e-90) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 1.85) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y2 <= 4.2e+177) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(a * Float64(y5 * Float64(t * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -4.5e+252) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -1.55e+75) tmp = k * (y1 * (y2 * y4)); elseif (y2 <= -1.75e-90) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y2 <= 1.85) tmp = a * (b * ((x * y) - (z * t))); elseif (y2 <= 4.2e+177) tmp = j * (x * ((i * y1) - (b * y0))); else tmp = a * (y5 * (t * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4.5e+252], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.55e+75], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.75e-90], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.85], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.2e+177], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4.5 \cdot 10^{+252}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.55 \cdot 10^{+75}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.75 \cdot 10^{-90}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 1.85:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 4.2 \cdot 10^{+177}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -4.5e252Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -4.5e252 < y2 < -1.5500000000000001e75Initial program 34.6%
Taylor expanded in y2 around inf 56.7%
Taylor expanded in y4 around inf 51.0%
Taylor expanded in x around 0 48.3%
+-commutative48.3%
mul-1-neg48.3%
associate-*r/45.4%
distribute-rgt-neg-in45.4%
mul-1-neg45.4%
distribute-lft-in51.1%
mul-1-neg51.1%
unsub-neg51.1%
associate-/l*48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in y1 around inf 41.2%
*-commutative41.2%
Simplified41.2%
if -1.5500000000000001e75 < y2 < -1.7499999999999999e-90Initial program 36.3%
Taylor expanded in y around inf 37.0%
Taylor expanded in a around inf 40.1%
if -1.7499999999999999e-90 < y2 < 1.8500000000000001Initial program 31.4%
Taylor expanded in b around inf 40.2%
Taylor expanded in a around inf 33.2%
if 1.8500000000000001 < y2 < 4.20000000000000026e177Initial program 30.6%
Taylor expanded in j around inf 50.5%
Taylor expanded in x around inf 45.6%
if 4.20000000000000026e177 < y2 Initial program 20.0%
Taylor expanded in y2 around inf 60.3%
Taylor expanded in t around inf 44.5%
Taylor expanded in a around inf 41.4%
associate-*r*47.5%
Simplified47.5%
Final simplification41.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4.4e+254)
(* c (* y4 (* t (- y2))))
(if (<= y2 -2.2e+75)
(* k (* y1 (* y2 y4)))
(if (<= y2 -2.95e-89)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y2 1.28e+18)
(* a (* b (- (* x y) (* z t))))
(if (<= y2 2.6e+248)
(* k (* (* y0 y2) (- y5)))
(* t (* a (* y2 y5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.4e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2.2e+75) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= -2.95e-89) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.28e+18) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 2.6e+248) {
tmp = k * ((y0 * y2) * -y5);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-4.4d+254)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-2.2d+75)) then
tmp = k * (y1 * (y2 * y4))
else if (y2 <= (-2.95d-89)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y2 <= 1.28d+18) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y2 <= 2.6d+248) then
tmp = k * ((y0 * y2) * -y5)
else
tmp = t * (a * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.4e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2.2e+75) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= -2.95e-89) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 1.28e+18) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 2.6e+248) {
tmp = k * ((y0 * y2) * -y5);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4.4e+254: tmp = c * (y4 * (t * -y2)) elif y2 <= -2.2e+75: tmp = k * (y1 * (y2 * y4)) elif y2 <= -2.95e-89: tmp = a * (y * ((x * b) - (y3 * y5))) elif y2 <= 1.28e+18: tmp = a * (b * ((x * y) - (z * t))) elif y2 <= 2.6e+248: tmp = k * ((y0 * y2) * -y5) else: tmp = t * (a * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4.4e+254) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -2.2e+75) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (y2 <= -2.95e-89) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 1.28e+18) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y2 <= 2.6e+248) tmp = Float64(k * Float64(Float64(y0 * y2) * Float64(-y5))); else tmp = Float64(t * Float64(a * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -4.4e+254) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -2.2e+75) tmp = k * (y1 * (y2 * y4)); elseif (y2 <= -2.95e-89) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y2 <= 1.28e+18) tmp = a * (b * ((x * y) - (z * t))); elseif (y2 <= 2.6e+248) tmp = k * ((y0 * y2) * -y5); else tmp = t * (a * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4.4e+254], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.2e+75], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.95e-89], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.28e+18], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.6e+248], N[(k * N[(N[(y0 * y2), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4.4 \cdot 10^{+254}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -2.2 \cdot 10^{+75}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -2.95 \cdot 10^{-89}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 1.28 \cdot 10^{+18}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 2.6 \cdot 10^{+248}:\\
\;\;\;\;k \cdot \left(\left(y0 \cdot y2\right) \cdot \left(-y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -4.4000000000000002e254Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -4.4000000000000002e254 < y2 < -2.20000000000000012e75Initial program 34.6%
Taylor expanded in y2 around inf 56.7%
Taylor expanded in y4 around inf 51.0%
Taylor expanded in x around 0 48.3%
+-commutative48.3%
mul-1-neg48.3%
associate-*r/45.4%
distribute-rgt-neg-in45.4%
mul-1-neg45.4%
distribute-lft-in51.1%
mul-1-neg51.1%
unsub-neg51.1%
associate-/l*48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in y1 around inf 41.2%
*-commutative41.2%
Simplified41.2%
if -2.20000000000000012e75 < y2 < -2.9500000000000001e-89Initial program 36.3%
Taylor expanded in y around inf 37.0%
Taylor expanded in a around inf 40.1%
if -2.9500000000000001e-89 < y2 < 1.28e18Initial program 32.4%
Taylor expanded in b around inf 39.9%
Taylor expanded in a around inf 34.1%
if 1.28e18 < y2 < 2.60000000000000009e248Initial program 23.9%
Taylor expanded in y2 around inf 52.5%
Taylor expanded in y4 around inf 52.5%
Taylor expanded in x around 0 46.6%
+-commutative46.6%
mul-1-neg46.6%
associate-*r/50.8%
distribute-rgt-neg-in50.8%
mul-1-neg50.8%
distribute-lft-in52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-/l*55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in y0 around inf 38.8%
mul-1-neg38.8%
*-commutative38.8%
distribute-rgt-neg-in38.8%
associate-*r*40.8%
Simplified40.8%
if 2.60000000000000009e248 < y2 Initial program 21.4%
Taylor expanded in y2 around inf 57.1%
Taylor expanded in t around inf 43.8%
Taylor expanded in a around inf 50.8%
*-commutative50.8%
Simplified50.8%
Final simplification40.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4.1e+247)
(* t (* y5 (- (* a y2) (* c (/ (* y2 y4) y5)))))
(if (<= y2 -1.25e+70)
(* y4 (+ (* b (- (* t j) (* y k))) (* y1 (- (* k y2) (* j y3)))))
(if (<= y2 -8e-62)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 2.9e-61)
(* a (* b (* x (- y (/ (* z t) x)))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.1e+247) {
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))));
} else if (y2 <= -1.25e+70) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))));
} else if (y2 <= -8e-62) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 2.9e-61) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-4.1d+247)) then
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))))
else if (y2 <= (-1.25d+70)) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))))
else if (y2 <= (-8d-62)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= 2.9d-61) then
tmp = a * (b * (x * (y - ((z * t) / x))))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.1e+247) {
tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5))));
} else if (y2 <= -1.25e+70) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))));
} else if (y2 <= -8e-62) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 2.9e-61) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4.1e+247: tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5)))) elif y2 <= -1.25e+70: tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) elif y2 <= -8e-62: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= 2.9e-61: tmp = a * (b * (x * (y - ((z * t) / x)))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4.1e+247) tmp = Float64(t * Float64(y5 * Float64(Float64(a * y2) - Float64(c * Float64(Float64(y2 * y4) / y5))))); elseif (y2 <= -1.25e+70) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))))); elseif (y2 <= -8e-62) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= 2.9e-61) tmp = Float64(a * Float64(b * Float64(x * Float64(y - Float64(Float64(z * t) / x))))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -4.1e+247) tmp = t * (y5 * ((a * y2) - (c * ((y2 * y4) / y5)))); elseif (y2 <= -1.25e+70) tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))); elseif (y2 <= -8e-62) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= 2.9e-61) tmp = a * (b * (x * (y - ((z * t) / x)))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4.1e+247], N[(t * N[(y5 * N[(N[(a * y2), $MachinePrecision] - N[(c * N[(N[(y2 * y4), $MachinePrecision] / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.25e+70], N[(y4 * 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]), $MachinePrecision], If[LessEqual[y2, -8e-62], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.9e-61], N[(a * N[(b * N[(x * N[(y - N[(N[(z * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4.1 \cdot 10^{+247}:\\
\;\;\;\;t \cdot \left(y5 \cdot \left(a \cdot y2 - c \cdot \frac{y2 \cdot y4}{y5}\right)\right)\\
\mathbf{elif}\;y2 \leq -1.25 \cdot 10^{+70}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -8 \cdot 10^{-62}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 2.9 \cdot 10^{-61}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot \left(y - \frac{z \cdot t}{x}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -4.1000000000000002e247Initial program 25.0%
Taylor expanded in y2 around inf 75.0%
Taylor expanded in t around inf 75.5%
Taylor expanded in y5 around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
associate-/l*83.3%
*-commutative83.3%
Simplified83.3%
if -4.1000000000000002e247 < y2 < -1.2500000000000001e70Initial program 35.6%
Taylor expanded in y4 around inf 41.6%
Taylor expanded in c around 0 59.4%
if -1.2500000000000001e70 < y2 < -8.0000000000000003e-62Initial program 24.6%
Taylor expanded in y3 around -inf 56.0%
Taylor expanded in z around inf 52.6%
associate-*r*52.5%
Simplified52.5%
if -8.0000000000000003e-62 < y2 < 2.8999999999999999e-61Initial program 33.3%
Taylor expanded in b around inf 39.5%
Taylor expanded in a around inf 34.0%
Taylor expanded in x around inf 36.8%
associate-*r/36.8%
neg-mul-136.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if 2.8999999999999999e-61 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification47.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4.6e+253)
(* c (* y4 (* t (- y2))))
(if (<= y2 -1.36e+75)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -3.9e-63)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 1.32e-61)
(* a (* b (* x (- y (/ (* z t) x)))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.6e+253) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -1.36e+75) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.9e-63) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 1.32e-61) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-4.6d+253)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-1.36d+75)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-3.9d-63)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= 1.32d-61) then
tmp = a * (b * (x * (y - ((z * t) / x))))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.6e+253) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -1.36e+75) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -3.9e-63) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 1.32e-61) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4.6e+253: tmp = c * (y4 * (t * -y2)) elif y2 <= -1.36e+75: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -3.9e-63: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= 1.32e-61: tmp = a * (b * (x * (y - ((z * t) / x)))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4.6e+253) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -1.36e+75) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -3.9e-63) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= 1.32e-61) tmp = Float64(a * Float64(b * Float64(x * Float64(y - Float64(Float64(z * t) / x))))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -4.6e+253) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -1.36e+75) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -3.9e-63) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= 1.32e-61) tmp = a * (b * (x * (y - ((z * t) / x)))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4.6e+253], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.36e+75], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.9e-63], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.32e-61], N[(a * N[(b * N[(x * N[(y - N[(N[(z * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4.6 \cdot 10^{+253}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.36 \cdot 10^{+75}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -3.9 \cdot 10^{-63}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 1.32 \cdot 10^{-61}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot \left(y - \frac{z \cdot t}{x}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -4.6e253Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -4.6e253 < y2 < -1.36e75Initial program 34.6%
Taylor expanded in y4 around inf 37.5%
Taylor expanded in y1 around inf 54.0%
if -1.36e75 < y2 < -3.90000000000000022e-63Initial program 27.2%
Taylor expanded in y3 around -inf 54.1%
Taylor expanded in z around inf 50.9%
associate-*r*50.8%
Simplified50.8%
if -3.90000000000000022e-63 < y2 < 1.32000000000000002e-61Initial program 33.3%
Taylor expanded in b around inf 39.5%
Taylor expanded in a around inf 34.0%
Taylor expanded in x around inf 36.8%
associate-*r/36.8%
neg-mul-136.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if 1.32000000000000002e-61 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.05e+23)
(* (* k y4) (- (* y1 y2) (* y b)))
(if (<= y4 -1.42e-39)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 1.35e-247)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y4 4.5e+36)
(* y4 (* c (* y3 (- y (* t (/ y2 y3))))))
(* j (* y3 (* y5 (- y0 (* y1 (/ y4 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 (y4 <= -1.05e+23) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.35e-247) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y4 <= 4.5e+36) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= (-1.05d+23)) then
tmp = (k * y4) * ((y1 * y2) - (y * b))
else if (y4 <= (-1.42d-39)) then
tmp = j * (x * ((i * y1) - (b * y0)))
else if (y4 <= 1.35d-247) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y4 <= 4.5d+36) then
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))))
else
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.05e+23) {
tmp = (k * y4) * ((y1 * y2) - (y * b));
} else if (y4 <= -1.42e-39) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 1.35e-247) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y4 <= 4.5e+36) {
tmp = y4 * (c * (y3 * (y - (t * (y2 / y3)))));
} else {
tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -1.05e+23: tmp = (k * y4) * ((y1 * y2) - (y * b)) elif y4 <= -1.42e-39: tmp = j * (x * ((i * y1) - (b * y0))) elif y4 <= 1.35e-247: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y4 <= 4.5e+36: tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))) else: tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / 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 (y4 <= -1.05e+23) tmp = Float64(Float64(k * y4) * Float64(Float64(y1 * y2) - Float64(y * b))); elseif (y4 <= -1.42e-39) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 1.35e-247) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y4 <= 4.5e+36) tmp = Float64(y4 * Float64(c * Float64(y3 * Float64(y - Float64(t * Float64(y2 / y3)))))); else tmp = Float64(j * Float64(y3 * Float64(y5 * Float64(y0 - Float64(y1 * Float64(y4 / 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 (y4 <= -1.05e+23) tmp = (k * y4) * ((y1 * y2) - (y * b)); elseif (y4 <= -1.42e-39) tmp = j * (x * ((i * y1) - (b * y0))); elseif (y4 <= 1.35e-247) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y4 <= 4.5e+36) tmp = y4 * (c * (y3 * (y - (t * (y2 / y3))))); else tmp = j * (y3 * (y5 * (y0 - (y1 * (y4 / y5))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.05e+23], N[(N[(k * y4), $MachinePrecision] * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.42e-39], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.35e-247], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.5e+36], N[(y4 * N[(c * N[(y3 * N[(y - N[(t * N[(y2 / y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y3 * N[(y5 * N[(y0 - N[(y1 * N[(y4 / y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.05 \cdot 10^{+23}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(y1 \cdot y2 - y \cdot b\right)\\
\mathbf{elif}\;y4 \leq -1.42 \cdot 10^{-39}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 1.35 \cdot 10^{-247}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 4.5 \cdot 10^{+36}:\\
\;\;\;\;y4 \cdot \left(c \cdot \left(y3 \cdot \left(y - t \cdot \frac{y2}{y3}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y5 \cdot \left(y0 - y1 \cdot \frac{y4}{y5}\right)\right)\right)\\
\end{array}
\end{array}
if y4 < -1.0500000000000001e23Initial program 21.2%
Taylor expanded in y4 around inf 63.1%
Taylor expanded in k around inf 53.5%
associate-*r*51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
Simplified51.8%
if -1.0500000000000001e23 < y4 < -1.42000000000000005e-39Initial program 29.4%
Taylor expanded in j around inf 36.3%
Taylor expanded in x around inf 64.9%
if -1.42000000000000005e-39 < y4 < 1.35000000000000004e-247Initial program 35.8%
Taylor expanded in y2 around inf 51.8%
Taylor expanded in x around inf 37.8%
if 1.35000000000000004e-247 < y4 < 4.49999999999999997e36Initial program 34.0%
Taylor expanded in y4 around inf 31.3%
Taylor expanded in c around inf 36.7%
Taylor expanded in y3 around inf 40.0%
mul-1-neg40.0%
unsub-neg40.0%
associate-/l*44.9%
Simplified44.9%
if 4.49999999999999997e36 < y4 Initial program 29.6%
Taylor expanded in j around inf 39.3%
Taylor expanded in y3 around inf 40.0%
neg-mul-140.0%
distribute-rgt-neg-in40.0%
Simplified40.0%
Taylor expanded in y5 around inf 44.4%
mul-1-neg44.4%
unsub-neg44.4%
associate-/l*48.7%
Simplified48.7%
Final simplification45.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.7e+254)
(* c (* y4 (* t (- y2))))
(if (<= y2 -9e+74)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -1.4e-61)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 4.8e-61)
(* a (* b (- (* x y) (* z t))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.7e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -9e+74) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.4e-61) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 4.8e-61) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.7d+254)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-9d+74)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-1.4d-61)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= 4.8d-61) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.7e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -9e+74) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.4e-61) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 4.8e-61) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.7e+254: tmp = c * (y4 * (t * -y2)) elif y2 <= -9e+74: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -1.4e-61: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= 4.8e-61: tmp = a * (b * ((x * y) - (z * t))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.7e+254) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -9e+74) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1.4e-61) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= 4.8e-61) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.7e+254) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -9e+74) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -1.4e-61) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= 4.8e-61) tmp = a * (b * ((x * y) - (z * t))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.7e+254], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -9e+74], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.4e-61], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.8e-61], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.7 \cdot 10^{+254}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -9 \cdot 10^{+74}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.4 \cdot 10^{-61}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 4.8 \cdot 10^{-61}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -2.70000000000000022e254Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -2.70000000000000022e254 < y2 < -8.9999999999999999e74Initial program 34.6%
Taylor expanded in y4 around inf 37.5%
Taylor expanded in y1 around inf 54.0%
if -8.9999999999999999e74 < y2 < -1.4000000000000001e-61Initial program 27.2%
Taylor expanded in y3 around -inf 54.1%
Taylor expanded in z around inf 50.9%
associate-*r*50.8%
Simplified50.8%
if -1.4000000000000001e-61 < y2 < 4.8000000000000002e-61Initial program 33.3%
Taylor expanded in b around inf 39.5%
Taylor expanded in a around inf 34.0%
if 4.8000000000000002e-61 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification45.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.6e+254)
(* c (* y4 (* t (- y2))))
(if (<= y2 -3.35e+16)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -2.45e-71)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y2 8.2e-62)
(* a (* b (- (* x y) (* z t))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.6e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -3.35e+16) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -2.45e-71) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 8.2e-62) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-2.6d+254)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-3.35d+16)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-2.45d-71)) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y2 <= 8.2d-62) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.6e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -3.35e+16) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -2.45e-71) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y2 <= 8.2e-62) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -2.6e+254: tmp = c * (y4 * (t * -y2)) elif y2 <= -3.35e+16: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -2.45e-71: tmp = i * (j * ((x * y1) - (t * y5))) elif y2 <= 8.2e-62: tmp = a * (b * ((x * y) - (z * t))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.6e+254) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -3.35e+16) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -2.45e-71) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y2 <= 8.2e-62) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -2.6e+254) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -3.35e+16) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -2.45e-71) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y2 <= 8.2e-62) tmp = a * (b * ((x * y) - (z * t))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.6e+254], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.35e+16], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.45e-71], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.2e-62], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.6 \cdot 10^{+254}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -3.35 \cdot 10^{+16}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -2.45 \cdot 10^{-71}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 8.2 \cdot 10^{-62}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -2.6000000000000001e254Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -2.6000000000000001e254 < y2 < -3.35e16Initial program 32.5%
Taylor expanded in y4 around inf 38.4%
Taylor expanded in y1 around inf 48.5%
if -3.35e16 < y2 < -2.4499999999999999e-71Initial program 23.5%
Taylor expanded in j around inf 41.5%
Taylor expanded in i around -inf 53.7%
if -2.4499999999999999e-71 < y2 < 8.2e-62Initial program 34.0%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 34.7%
if 8.2e-62 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.7e+252)
(* c (* y4 (* t (- y2))))
(if (<= y2 -2.85e+20)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y2 -1.1e-88)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y2 8.9e-60)
(* a (* b (- (* x y) (* z t))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.7e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2.85e+20) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.1e-88) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 8.9e-60) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-1.7d+252)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-2.85d+20)) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y2 <= (-1.1d-88)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y2 <= 8.9d-60) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.7e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2.85e+20) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y2 <= -1.1e-88) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 8.9e-60) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.7e+252: tmp = c * (y4 * (t * -y2)) elif y2 <= -2.85e+20: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y2 <= -1.1e-88: tmp = a * (y * ((x * b) - (y3 * y5))) elif y2 <= 8.9e-60: tmp = a * (b * ((x * y) - (z * t))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -1.7e+252) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -2.85e+20) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y2 <= -1.1e-88) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 8.9e-60) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -1.7e+252) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -2.85e+20) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y2 <= -1.1e-88) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y2 <= 8.9e-60) tmp = a * (b * ((x * y) - (z * t))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.7e+252], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.85e+20], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.1e-88], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.9e-60], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.7 \cdot 10^{+252}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -2.85 \cdot 10^{+20}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -1.1 \cdot 10^{-88}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 8.9 \cdot 10^{-60}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -1.7e252Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -1.7e252 < y2 < -2.85e20Initial program 32.5%
Taylor expanded in y4 around inf 38.4%
Taylor expanded in y1 around inf 48.5%
if -2.85e20 < y2 < -1.10000000000000002e-88Initial program 41.7%
Taylor expanded in y around inf 43.0%
Taylor expanded in a around inf 47.4%
if -1.10000000000000002e-88 < y2 < 8.9000000000000003e-60Initial program 30.1%
Taylor expanded in b around inf 37.8%
Taylor expanded in a around inf 34.0%
if 8.9000000000000003e-60 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification44.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4.2e+254)
(* c (* y4 (* t (- y2))))
(if (<= y2 -8.8e+46)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y2 -5.2e-89)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y2 5.1e-61)
(* a (* b (- (* x y) (* z t))))
(* x (* y2 (- (* c y0) (* a y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.2e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -8.8e+46) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -5.2e-89) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 5.1e-61) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-4.2d+254)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-8.8d+46)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y2 <= (-5.2d-89)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y2 <= 5.1d-61) then
tmp = a * (b * ((x * y) - (z * t)))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4.2e+254) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -8.8e+46) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -5.2e-89) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y2 <= 5.1e-61) {
tmp = a * (b * ((x * y) - (z * t)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4.2e+254: tmp = c * (y4 * (t * -y2)) elif y2 <= -8.8e+46: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y2 <= -5.2e-89: tmp = a * (y * ((x * b) - (y3 * y5))) elif y2 <= 5.1e-61: tmp = a * (b * ((x * y) - (z * t))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4.2e+254) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -8.8e+46) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y2 <= -5.2e-89) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y2 <= 5.1e-61) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -4.2e+254) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -8.8e+46) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y2 <= -5.2e-89) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y2 <= 5.1e-61) tmp = a * (b * ((x * y) - (z * t))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4.2e+254], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8.8e+46], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.2e-89], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.1e-61], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4.2 \cdot 10^{+254}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{+46}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -5.2 \cdot 10^{-89}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 5.1 \cdot 10^{-61}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -4.2e254Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -4.2e254 < y2 < -8.8000000000000001e46Initial program 34.0%
Taylor expanded in y2 around inf 52.1%
Taylor expanded in k around inf 44.4%
if -8.8000000000000001e46 < y2 < -5.1999999999999997e-89Initial program 37.5%
Taylor expanded in y around inf 44.7%
Taylor expanded in a around inf 48.1%
if -5.1999999999999997e-89 < y2 < 5.09999999999999968e-61Initial program 30.1%
Taylor expanded in b around inf 37.8%
Taylor expanded in a around inf 34.0%
if 5.09999999999999968e-61 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification44.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.1e+72)
(* a (* y (- (* x b) (* y3 y5))))
(if (<= y3 -1.6e-201)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y3 7.2e+44)
(* a (* b (- (* x y) (* z t))))
(if (<= y3 9.5e+216)
(* j (* y0 (- (* y3 y5) (* x b))))
(* (* y3 y4) (* y c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.1e+72) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= -1.6e-201) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 7.2e+44) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y3 <= 9.5e+216) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = (y3 * y4) * (y * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.1d+72)) then
tmp = a * (y * ((x * b) - (y3 * y5)))
else if (y3 <= (-1.6d-201)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y3 <= 7.2d+44) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y3 <= 9.5d+216) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = (y3 * y4) * (y * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.1e+72) {
tmp = a * (y * ((x * b) - (y3 * y5)));
} else if (y3 <= -1.6e-201) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 7.2e+44) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y3 <= 9.5e+216) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = (y3 * y4) * (y * c);
}
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.1e+72: tmp = a * (y * ((x * b) - (y3 * y5))) elif y3 <= -1.6e-201: tmp = b * (y0 * ((z * k) - (x * j))) elif y3 <= 7.2e+44: tmp = a * (b * ((x * y) - (z * t))) elif y3 <= 9.5e+216: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = (y3 * y4) * (y * c) 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.1e+72) tmp = Float64(a * Float64(y * Float64(Float64(x * b) - Float64(y3 * y5)))); elseif (y3 <= -1.6e-201) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y3 <= 7.2e+44) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y3 <= 9.5e+216) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(Float64(y3 * y4) * Float64(y * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.1e+72) tmp = a * (y * ((x * b) - (y3 * y5))); elseif (y3 <= -1.6e-201) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y3 <= 7.2e+44) tmp = a * (b * ((x * y) - (z * t))); elseif (y3 <= 9.5e+216) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = (y3 * y4) * (y * c); 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.1e+72], N[(a * N[(y * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.6e-201], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.2e+44], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9.5e+216], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(y * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.1 \cdot 10^{+72}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b - y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -1.6 \cdot 10^{-201}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y3 \leq 7.2 \cdot 10^{+44}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y3 \leq 9.5 \cdot 10^{+216}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c\right)\\
\end{array}
\end{array}
if y3 < -1.1e72Initial program 16.1%
Taylor expanded in y around inf 39.2%
Taylor expanded in a around inf 39.6%
if -1.1e72 < y3 < -1.6000000000000001e-201Initial program 42.1%
Taylor expanded in b around inf 42.8%
Taylor expanded in y0 around inf 39.2%
if -1.6000000000000001e-201 < y3 < 7.2e44Initial program 29.5%
Taylor expanded in b around inf 31.2%
Taylor expanded in a around inf 33.4%
if 7.2e44 < y3 < 9.50000000000000005e216Initial program 35.5%
Taylor expanded in j around inf 50.5%
Taylor expanded in y0 around inf 46.1%
if 9.50000000000000005e216 < y3 Initial program 31.3%
Taylor expanded in y4 around inf 56.7%
Taylor expanded in c around inf 63.4%
Taylor expanded in y around inf 63.2%
associate-*r*63.2%
*-commutative63.2%
Simplified63.2%
Final simplification39.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -9e+252)
(* c (* y4 (* t (- y2))))
(if (<= y2 -2800000000.0)
(* k (* y1 (* y2 y4)))
(if (<= y2 2.5e+19)
(* a (* b (- (* x y) (* z t))))
(if (<= y2 3.6e+247)
(* k (* (* y0 y2) (- y5)))
(* t (* a (* y2 y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -9e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2800000000.0) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= 2.5e+19) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 3.6e+247) {
tmp = k * ((y0 * y2) * -y5);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-9d+252)) then
tmp = c * (y4 * (t * -y2))
else if (y2 <= (-2800000000.0d0)) then
tmp = k * (y1 * (y2 * y4))
else if (y2 <= 2.5d+19) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y2 <= 3.6d+247) then
tmp = k * ((y0 * y2) * -y5)
else
tmp = t * (a * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -9e+252) {
tmp = c * (y4 * (t * -y2));
} else if (y2 <= -2800000000.0) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= 2.5e+19) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y2 <= 3.6e+247) {
tmp = k * ((y0 * y2) * -y5);
} else {
tmp = t * (a * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -9e+252: tmp = c * (y4 * (t * -y2)) elif y2 <= -2800000000.0: tmp = k * (y1 * (y2 * y4)) elif y2 <= 2.5e+19: tmp = a * (b * ((x * y) - (z * t))) elif y2 <= 3.6e+247: tmp = k * ((y0 * y2) * -y5) else: tmp = t * (a * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -9e+252) tmp = Float64(c * Float64(y4 * Float64(t * Float64(-y2)))); elseif (y2 <= -2800000000.0) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (y2 <= 2.5e+19) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y2 <= 3.6e+247) tmp = Float64(k * Float64(Float64(y0 * y2) * Float64(-y5))); else tmp = Float64(t * Float64(a * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -9e+252) tmp = c * (y4 * (t * -y2)); elseif (y2 <= -2800000000.0) tmp = k * (y1 * (y2 * y4)); elseif (y2 <= 2.5e+19) tmp = a * (b * ((x * y) - (z * t))); elseif (y2 <= 3.6e+247) tmp = k * ((y0 * y2) * -y5); else tmp = t * (a * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -9e+252], N[(c * N[(y4 * N[(t * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2800000000.0], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.5e+19], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.6e+247], N[(k * N[(N[(y0 * y2), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision], N[(t * N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -9 \cdot 10^{+252}:\\
\;\;\;\;c \cdot \left(y4 \cdot \left(t \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -2800000000:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{+19}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{+247}:\\
\;\;\;\;k \cdot \left(\left(y0 \cdot y2\right) \cdot \left(-y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y2 < -9.0000000000000001e252Initial program 20.0%
Taylor expanded in y4 around inf 50.0%
Taylor expanded in c around inf 90.6%
Taylor expanded in y around 0 81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
associate-*r*90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
if -9.0000000000000001e252 < y2 < -2.8e9Initial program 31.9%
Taylor expanded in y2 around inf 49.3%
Taylor expanded in y4 around inf 45.4%
Taylor expanded in x around 0 41.5%
+-commutative41.5%
mul-1-neg41.5%
associate-*r/39.6%
distribute-rgt-neg-in39.6%
mul-1-neg39.6%
distribute-lft-in43.5%
mul-1-neg43.5%
unsub-neg43.5%
associate-/l*41.7%
*-commutative41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in y1 around inf 33.0%
*-commutative33.0%
Simplified33.0%
if -2.8e9 < y2 < 2.5e19Initial program 34.3%
Taylor expanded in b around inf 38.4%
Taylor expanded in a around inf 32.9%
if 2.5e19 < y2 < 3.6e247Initial program 23.9%
Taylor expanded in y2 around inf 52.5%
Taylor expanded in y4 around inf 52.5%
Taylor expanded in x around 0 46.6%
+-commutative46.6%
mul-1-neg46.6%
associate-*r/50.8%
distribute-rgt-neg-in50.8%
mul-1-neg50.8%
distribute-lft-in52.9%
mul-1-neg52.9%
unsub-neg52.9%
associate-/l*55.0%
*-commutative55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in y0 around inf 38.8%
mul-1-neg38.8%
*-commutative38.8%
distribute-rgt-neg-in38.8%
associate-*r*40.8%
Simplified40.8%
if 3.6e247 < y2 Initial program 21.4%
Taylor expanded in y2 around inf 57.1%
Taylor expanded in t around inf 43.8%
Taylor expanded in a around inf 50.8%
*-commutative50.8%
Simplified50.8%
Final simplification37.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -2.7e+123)
(* a (* y (* x b)))
(if (<= x -2.4e-209)
(* a (* t (* y2 y5)))
(if (<= x 7.2e-64)
(* j (* y0 (* y3 y5)))
(if (<= x 2.9e+59) (* a (* b (* z (- t)))) (* a (* (* x y) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.7e+123) {
tmp = a * (y * (x * b));
} else if (x <= -2.4e-209) {
tmp = a * (t * (y2 * y5));
} else if (x <= 7.2e-64) {
tmp = j * (y0 * (y3 * y5));
} else if (x <= 2.9e+59) {
tmp = a * (b * (z * -t));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-2.7d+123)) then
tmp = a * (y * (x * b))
else if (x <= (-2.4d-209)) then
tmp = a * (t * (y2 * y5))
else if (x <= 7.2d-64) then
tmp = j * (y0 * (y3 * y5))
else if (x <= 2.9d+59) then
tmp = a * (b * (z * -t))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.7e+123) {
tmp = a * (y * (x * b));
} else if (x <= -2.4e-209) {
tmp = a * (t * (y2 * y5));
} else if (x <= 7.2e-64) {
tmp = j * (y0 * (y3 * y5));
} else if (x <= 2.9e+59) {
tmp = a * (b * (z * -t));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -2.7e+123: tmp = a * (y * (x * b)) elif x <= -2.4e-209: tmp = a * (t * (y2 * y5)) elif x <= 7.2e-64: tmp = j * (y0 * (y3 * y5)) elif x <= 2.9e+59: tmp = a * (b * (z * -t)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.7e+123) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= -2.4e-209) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (x <= 7.2e-64) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (x <= 2.9e+59) tmp = Float64(a * Float64(b * Float64(z * Float64(-t)))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -2.7e+123) tmp = a * (y * (x * b)); elseif (x <= -2.4e-209) tmp = a * (t * (y2 * y5)); elseif (x <= 7.2e-64) tmp = j * (y0 * (y3 * y5)); elseif (x <= 2.9e+59) tmp = a * (b * (z * -t)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.7e+123], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.4e-209], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-64], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+59], N[(a * N[(b * N[(z * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+123}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq -2.4 \cdot 10^{-209}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-64}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+59}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(-t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -2.70000000000000013e123Initial program 33.3%
Taylor expanded in b around inf 34.3%
Taylor expanded in a around inf 36.9%
Taylor expanded in x around inf 39.3%
associate-*r*39.4%
Simplified39.4%
if -2.70000000000000013e123 < x < -2.4000000000000001e-209Initial program 31.2%
Taylor expanded in y2 around inf 46.3%
Taylor expanded in t around inf 42.7%
Taylor expanded in a around inf 37.0%
if -2.4000000000000001e-209 < x < 7.1999999999999996e-64Initial program 32.8%
Taylor expanded in j around inf 36.3%
Taylor expanded in y3 around inf 33.7%
neg-mul-133.7%
distribute-rgt-neg-in33.7%
Simplified33.7%
Taylor expanded in y1 around 0 23.7%
*-commutative23.7%
Simplified23.7%
if 7.1999999999999996e-64 < x < 2.89999999999999991e59Initial program 44.9%
Taylor expanded in b around inf 55.3%
Taylor expanded in a around inf 45.6%
Taylor expanded in x around 0 45.6%
associate-*r*45.6%
mul-1-neg45.6%
Simplified45.6%
if 2.89999999999999991e59 < x Initial program 18.6%
Taylor expanded in b around inf 27.1%
Taylor expanded in a around inf 39.3%
Taylor expanded in x around inf 39.6%
Final simplification34.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -6.1e+72)
(* y2 (+ (* y4 (* k y1)) (* t (- (* a y5) (* c y4)))))
(if (<= y2 -3.1e-63)
(* (* z y3) (- (* a y1) (* c y0)))
(if (<= y2 5.8e-60)
(* a (* b (* x (- y (/ (* z t) x)))))
(* x (* y2 (- (* c y0) (* a y1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -6.1e+72) {
tmp = y2 * ((y4 * (k * y1)) + (t * ((a * y5) - (c * y4))));
} else if (y2 <= -3.1e-63) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 5.8e-60) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-6.1d+72)) then
tmp = y2 * ((y4 * (k * y1)) + (t * ((a * y5) - (c * y4))))
else if (y2 <= (-3.1d-63)) then
tmp = (z * y3) * ((a * y1) - (c * y0))
else if (y2 <= 5.8d-60) then
tmp = a * (b * (x * (y - ((z * t) / x))))
else
tmp = x * (y2 * ((c * y0) - (a * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -6.1e+72) {
tmp = y2 * ((y4 * (k * y1)) + (t * ((a * y5) - (c * y4))));
} else if (y2 <= -3.1e-63) {
tmp = (z * y3) * ((a * y1) - (c * y0));
} else if (y2 <= 5.8e-60) {
tmp = a * (b * (x * (y - ((z * t) / x))));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -6.1e+72: tmp = y2 * ((y4 * (k * y1)) + (t * ((a * y5) - (c * y4)))) elif y2 <= -3.1e-63: tmp = (z * y3) * ((a * y1) - (c * y0)) elif y2 <= 5.8e-60: tmp = a * (b * (x * (y - ((z * t) / x)))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -6.1e+72) tmp = Float64(y2 * Float64(Float64(y4 * Float64(k * y1)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y2 <= -3.1e-63) tmp = Float64(Float64(z * y3) * Float64(Float64(a * y1) - Float64(c * y0))); elseif (y2 <= 5.8e-60) tmp = Float64(a * Float64(b * Float64(x * Float64(y - Float64(Float64(z * t) / x))))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -6.1e+72) tmp = y2 * ((y4 * (k * y1)) + (t * ((a * y5) - (c * y4)))); elseif (y2 <= -3.1e-63) tmp = (z * y3) * ((a * y1) - (c * y0)); elseif (y2 <= 5.8e-60) tmp = a * (b * (x * (y - ((z * t) / x)))); else tmp = x * (y2 * ((c * y0) - (a * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -6.1e+72], N[(y2 * N[(N[(y4 * N[(k * y1), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.1e-63], N[(N[(z * y3), $MachinePrecision] * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.8e-60], N[(a * N[(b * N[(x * N[(y - N[(N[(z * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -6.1 \cdot 10^{+72}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -3.1 \cdot 10^{-63}:\\
\;\;\;\;\left(z \cdot y3\right) \cdot \left(a \cdot y1 - c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 5.8 \cdot 10^{-60}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot \left(y - \frac{z \cdot t}{x}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y2 < -6.09999999999999991e72Initial program 32.9%
Taylor expanded in y2 around inf 58.5%
Taylor expanded in y4 around inf 54.1%
Taylor expanded in x around 0 52.0%
+-commutative52.0%
mul-1-neg52.0%
associate-*r/49.9%
distribute-rgt-neg-in49.9%
mul-1-neg49.9%
distribute-lft-in54.2%
mul-1-neg54.2%
unsub-neg54.2%
associate-/l*52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in y4 around inf 58.7%
associate-*r*56.5%
Simplified56.5%
if -6.09999999999999991e72 < y2 < -3.09999999999999984e-63Initial program 24.6%
Taylor expanded in y3 around -inf 56.0%
Taylor expanded in z around inf 52.6%
associate-*r*52.5%
Simplified52.5%
if -3.09999999999999984e-63 < y2 < 5.7999999999999999e-60Initial program 33.3%
Taylor expanded in b around inf 39.5%
Taylor expanded in a around inf 34.0%
Taylor expanded in x around inf 36.8%
associate-*r/36.8%
neg-mul-136.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if 5.7999999999999999e-60 < y2 Initial program 28.2%
Taylor expanded in y2 around inf 47.9%
Taylor expanded in x around inf 48.4%
Final simplification45.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -2.2e+124)
(* a (* y (* x b)))
(if (<= x -9.5e-210)
(* a (* t (* y2 y5)))
(if (<= x 1.3e+20) (* j (* y3 (* y0 y5))) (* a (* (* x y) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.2e+124) {
tmp = a * (y * (x * b));
} else if (x <= -9.5e-210) {
tmp = a * (t * (y2 * y5));
} else if (x <= 1.3e+20) {
tmp = j * (y3 * (y0 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-2.2d+124)) then
tmp = a * (y * (x * b))
else if (x <= (-9.5d-210)) then
tmp = a * (t * (y2 * y5))
else if (x <= 1.3d+20) then
tmp = j * (y3 * (y0 * y5))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.2e+124) {
tmp = a * (y * (x * b));
} else if (x <= -9.5e-210) {
tmp = a * (t * (y2 * y5));
} else if (x <= 1.3e+20) {
tmp = j * (y3 * (y0 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -2.2e+124: tmp = a * (y * (x * b)) elif x <= -9.5e-210: tmp = a * (t * (y2 * y5)) elif x <= 1.3e+20: tmp = j * (y3 * (y0 * y5)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.2e+124) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= -9.5e-210) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (x <= 1.3e+20) tmp = Float64(j * Float64(y3 * Float64(y0 * y5))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -2.2e+124) tmp = a * (y * (x * b)); elseif (x <= -9.5e-210) tmp = a * (t * (y2 * y5)); elseif (x <= 1.3e+20) tmp = j * (y3 * (y0 * y5)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.2e+124], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-210], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e+20], N[(j * N[(y3 * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.2 \cdot 10^{+124}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-210}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+20}:\\
\;\;\;\;j \cdot \left(y3 \cdot \left(y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -2.2000000000000001e124Initial program 33.3%
Taylor expanded in b around inf 34.3%
Taylor expanded in a around inf 36.9%
Taylor expanded in x around inf 39.3%
associate-*r*39.4%
Simplified39.4%
if -2.2000000000000001e124 < x < -9.4999999999999997e-210Initial program 31.2%
Taylor expanded in y2 around inf 46.3%
Taylor expanded in t around inf 42.7%
Taylor expanded in a around inf 37.0%
if -9.4999999999999997e-210 < x < 1.3e20Initial program 33.6%
Taylor expanded in j around inf 36.6%
Taylor expanded in y3 around inf 33.4%
neg-mul-133.4%
distribute-rgt-neg-in33.4%
Simplified33.4%
Taylor expanded in y1 around 0 22.1%
if 1.3e20 < x Initial program 22.8%
Taylor expanded in b around inf 28.8%
Taylor expanded in a around inf 42.1%
Taylor expanded in x around inf 36.9%
Final simplification31.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -4.1e+124)
(* a (* y (* x b)))
(if (<= x -1.8e-210)
(* a (* t (* y2 y5)))
(if (<= x 4e+22) (* j (* y0 (* y3 y5))) (* a (* (* x y) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -4.1e+124) {
tmp = a * (y * (x * b));
} else if (x <= -1.8e-210) {
tmp = a * (t * (y2 * y5));
} else if (x <= 4e+22) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-4.1d+124)) then
tmp = a * (y * (x * b))
else if (x <= (-1.8d-210)) then
tmp = a * (t * (y2 * y5))
else if (x <= 4d+22) then
tmp = j * (y0 * (y3 * y5))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -4.1e+124) {
tmp = a * (y * (x * b));
} else if (x <= -1.8e-210) {
tmp = a * (t * (y2 * y5));
} else if (x <= 4e+22) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -4.1e+124: tmp = a * (y * (x * b)) elif x <= -1.8e-210: tmp = a * (t * (y2 * y5)) elif x <= 4e+22: tmp = j * (y0 * (y3 * y5)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -4.1e+124) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= -1.8e-210) tmp = Float64(a * Float64(t * Float64(y2 * y5))); elseif (x <= 4e+22) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -4.1e+124) tmp = a * (y * (x * b)); elseif (x <= -1.8e-210) tmp = a * (t * (y2 * y5)); elseif (x <= 4e+22) tmp = j * (y0 * (y3 * y5)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -4.1e+124], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.8e-210], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+22], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.1 \cdot 10^{+124}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq -1.8 \cdot 10^{-210}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+22}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -4.10000000000000001e124Initial program 33.3%
Taylor expanded in b around inf 34.3%
Taylor expanded in a around inf 36.9%
Taylor expanded in x around inf 39.3%
associate-*r*39.4%
Simplified39.4%
if -4.10000000000000001e124 < x < -1.7999999999999999e-210Initial program 31.2%
Taylor expanded in y2 around inf 46.3%
Taylor expanded in t around inf 42.7%
Taylor expanded in a around inf 37.0%
if -1.7999999999999999e-210 < x < 4e22Initial program 33.6%
Taylor expanded in j around inf 36.6%
Taylor expanded in y3 around inf 33.4%
neg-mul-133.4%
distribute-rgt-neg-in33.4%
Simplified33.4%
Taylor expanded in y1 around 0 22.1%
*-commutative22.1%
Simplified22.1%
if 4e22 < x Initial program 22.8%
Taylor expanded in b around inf 28.8%
Taylor expanded in a around inf 42.1%
Taylor expanded in x around inf 36.9%
Final simplification31.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -2.6e+123) (not (<= x 4.5e+48))) (* a (* (* x y) b)) (* a (* t (* y2 y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.6e+123) || !(x <= 4.5e+48)) {
tmp = a * ((x * y) * b);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-2.6d+123)) .or. (.not. (x <= 4.5d+48))) then
tmp = a * ((x * y) * b)
else
tmp = a * (t * (y2 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.6e+123) || !(x <= 4.5e+48)) {
tmp = a * ((x * y) * b);
} else {
tmp = a * (t * (y2 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -2.6e+123) or not (x <= 4.5e+48): tmp = a * ((x * y) * b) else: tmp = a * (t * (y2 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -2.6e+123) || !(x <= 4.5e+48)) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(a * Float64(t * Float64(y2 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -2.6e+123) || ~((x <= 4.5e+48))) tmp = a * ((x * y) * b); else tmp = a * (t * (y2 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[x, -2.6e+123], N[Not[LessEqual[x, 4.5e+48]], $MachinePrecision]], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.6 \cdot 10^{+123} \lor \neg \left(x \leq 4.5 \cdot 10^{+48}\right):\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\end{array}
\end{array}
if x < -2.59999999999999985e123 or 4.49999999999999995e48 < x Initial program 24.8%
Taylor expanded in b around inf 29.9%
Taylor expanded in a around inf 38.9%
Taylor expanded in x around inf 39.1%
if -2.59999999999999985e123 < x < 4.49999999999999995e48Initial program 33.8%
Taylor expanded in y2 around inf 39.0%
Taylor expanded in t around inf 28.5%
Taylor expanded in a around inf 21.1%
Final simplification27.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -2.1e+125) (* a (* y (* x b))) (if (<= x 3.2e+19) (* a (* y5 (* t y2))) (* a (* (* x y) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.1e+125) {
tmp = a * (y * (x * b));
} else if (x <= 3.2e+19) {
tmp = a * (y5 * (t * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-2.1d+125)) then
tmp = a * (y * (x * b))
else if (x <= 3.2d+19) then
tmp = a * (y5 * (t * y2))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.1e+125) {
tmp = a * (y * (x * b));
} else if (x <= 3.2e+19) {
tmp = a * (y5 * (t * y2));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -2.1e+125: tmp = a * (y * (x * b)) elif x <= 3.2e+19: tmp = a * (y5 * (t * y2)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.1e+125) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 3.2e+19) tmp = Float64(a * Float64(y5 * Float64(t * y2))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -2.1e+125) tmp = a * (y * (x * b)); elseif (x <= 3.2e+19) tmp = a * (y5 * (t * y2)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.1e+125], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+19], N[(a * N[(y5 * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+125}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+19}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -2.1000000000000001e125Initial program 33.3%
Taylor expanded in b around inf 34.3%
Taylor expanded in a around inf 36.9%
Taylor expanded in x around inf 39.3%
associate-*r*39.4%
Simplified39.4%
if -2.1000000000000001e125 < x < 3.2e19Initial program 32.6%
Taylor expanded in y2 around inf 39.1%
Taylor expanded in t around inf 28.4%
Taylor expanded in a around inf 21.4%
associate-*r*22.5%
Simplified22.5%
if 3.2e19 < x Initial program 22.8%
Taylor expanded in b around inf 28.8%
Taylor expanded in a around inf 42.1%
Taylor expanded in x around inf 36.9%
Final simplification28.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= x -2.1e+123) (* a (* y (* x b))) (if (<= x 5e+53) (* a (* t (* y2 y5))) (* a (* (* x y) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.1e+123) {
tmp = a * (y * (x * b));
} else if (x <= 5e+53) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (x <= (-2.1d+123)) then
tmp = a * (y * (x * b))
else if (x <= 5d+53) then
tmp = a * (t * (y2 * y5))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.1e+123) {
tmp = a * (y * (x * b));
} else if (x <= 5e+53) {
tmp = a * (t * (y2 * y5));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if x <= -2.1e+123: tmp = a * (y * (x * b)) elif x <= 5e+53: tmp = a * (t * (y2 * y5)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.1e+123) tmp = Float64(a * Float64(y * Float64(x * b))); elseif (x <= 5e+53) tmp = Float64(a * Float64(t * Float64(y2 * y5))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (x <= -2.1e+123) tmp = a * (y * (x * b)); elseif (x <= 5e+53) tmp = a * (t * (y2 * y5)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.1e+123], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+53], N[(a * N[(t * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+123}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+53}:\\
\;\;\;\;a \cdot \left(t \cdot \left(y2 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -2.09999999999999994e123Initial program 33.3%
Taylor expanded in b around inf 34.3%
Taylor expanded in a around inf 36.9%
Taylor expanded in x around inf 39.3%
associate-*r*39.4%
Simplified39.4%
if -2.09999999999999994e123 < x < 5.0000000000000004e53Initial program 33.8%
Taylor expanded in y2 around inf 39.0%
Taylor expanded in t around inf 28.5%
Taylor expanded in a around inf 21.1%
if 5.0000000000000004e53 < x Initial program 18.2%
Taylor expanded in b around inf 26.5%
Taylor expanded in a around inf 40.6%
Taylor expanded in x around inf 38.9%
Final simplification27.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 30.7%
Taylor expanded in b around inf 32.6%
Taylor expanded in a around inf 27.3%
Taylor expanded in x around inf 17.8%
Final simplification17.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2024186
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* 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 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* 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 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* 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 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* 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 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* 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 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* 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)))))