
(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 42 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 (- (* b y4) (* i y5)))
(t_2 (- (* a b) (* c i)))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4
(*
y2
(+
(+ (* k t_3) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))))
(if (<= x -1.55e+232)
(* x (- (+ (* c (* y0 y2)) (* y t_2)) (* b (* j y0))))
(if (<= x -2.8e+52)
t_4
(if (<= x -1.1e-62)
(*
y0
(+
(+ (* y5 (- (* j y3) (* k y2))) (* c (- (* x y2) (* z y3))))
(* b (- (* z k) (* x j)))))
(if (<= x -2.2e-151)
(*
k
(+
(* b (* z y0))
(- (* y (- (* i y5) (* b y4))) (* y0 (* y2 y5)))))
(if (<= x -1.1e-274)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0))))))
(if (<= x 7.2e-245)
(* j (* t t_1))
(if (<= x 3.2e-177)
(*
a
(+ (* b (- (* x y) (* z t))) (* y5 (- (* t y2) (* y y3)))))
(if (<= x 1.85e-152)
(*
y4
(+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= x 3400000000000.0)
t_4
(if (<= x 1.22e+95)
(*
k
(+
(- (* y2 t_3) (* y t_1))
(* z (- (* b y0) (* i y1)))))
(if (<= x 1.05e+123)
(* y1 (* y4 (- (* k y2) (* j y3))))
(* y (* x t_2)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = (a * b) - (c * i);
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (x <= -1.55e+232) {
tmp = x * (((c * (y0 * y2)) + (y * t_2)) - (b * (j * y0)));
} else if (x <= -2.8e+52) {
tmp = t_4;
} else if (x <= -1.1e-62) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
} else if (x <= -2.2e-151) {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
} else if (x <= -1.1e-274) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (x <= 7.2e-245) {
tmp = j * (t * t_1);
} else if (x <= 3.2e-177) {
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= 1.85e-152) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 3400000000000.0) {
tmp = t_4;
} else if (x <= 1.22e+95) {
tmp = k * (((y2 * t_3) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (x <= 1.05e+123) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else {
tmp = y * (x * t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (b * y4) - (i * y5)
t_2 = (a * b) - (c * i)
t_3 = (y1 * y4) - (y0 * y5)
t_4 = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
if (x <= (-1.55d+232)) then
tmp = x * (((c * (y0 * y2)) + (y * t_2)) - (b * (j * y0)))
else if (x <= (-2.8d+52)) then
tmp = t_4
else if (x <= (-1.1d-62)) then
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))))
else if (x <= (-2.2d-151)) then
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))))
else if (x <= (-1.1d-274)) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
else if (x <= 7.2d-245) then
tmp = j * (t * t_1)
else if (x <= 3.2d-177) then
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))))
else if (x <= 1.85d-152) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (x <= 3400000000000.0d0) then
tmp = t_4
else if (x <= 1.22d+95) then
tmp = k * (((y2 * t_3) - (y * t_1)) + (z * ((b * y0) - (i * y1))))
else if (x <= 1.05d+123) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else
tmp = y * (x * t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * y4) - (i * y5);
double t_2 = (a * b) - (c * i);
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (x <= -1.55e+232) {
tmp = x * (((c * (y0 * y2)) + (y * t_2)) - (b * (j * y0)));
} else if (x <= -2.8e+52) {
tmp = t_4;
} else if (x <= -1.1e-62) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j))));
} else if (x <= -2.2e-151) {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
} else if (x <= -1.1e-274) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
} else if (x <= 7.2e-245) {
tmp = j * (t * t_1);
} else if (x <= 3.2e-177) {
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= 1.85e-152) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 3400000000000.0) {
tmp = t_4;
} else if (x <= 1.22e+95) {
tmp = k * (((y2 * t_3) - (y * t_1)) + (z * ((b * y0) - (i * y1))));
} else if (x <= 1.05e+123) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else {
tmp = y * (x * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (b * y4) - (i * y5) t_2 = (a * b) - (c * i) t_3 = (y1 * y4) - (y0 * y5) t_4 = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) tmp = 0 if x <= -1.55e+232: tmp = x * (((c * (y0 * y2)) + (y * t_2)) - (b * (j * y0))) elif x <= -2.8e+52: tmp = t_4 elif x <= -1.1e-62: tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j)))) elif x <= -2.2e-151: tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))) elif x <= -1.1e-274: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) elif x <= 7.2e-245: tmp = j * (t * t_1) elif x <= 3.2e-177: tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))) elif x <= 1.85e-152: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif x <= 3400000000000.0: tmp = t_4 elif x <= 1.22e+95: tmp = k * (((y2 * t_3) - (y * t_1)) + (z * ((b * y0) - (i * y1)))) elif x <= 1.05e+123: tmp = y1 * (y4 * ((k * y2) - (j * y3))) else: tmp = y * (x * t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * y4) - Float64(i * y5)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(y2 * Float64(Float64(Float64(k * t_3) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (x <= -1.55e+232) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * t_2)) - Float64(b * Float64(j * y0)))); elseif (x <= -2.8e+52) tmp = t_4; elseif (x <= -1.1e-62) tmp = Float64(y0 * Float64(Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * Float64(Float64(z * k) - Float64(x * j))))); elseif (x <= -2.2e-151) tmp = Float64(k * Float64(Float64(b * Float64(z * y0)) + Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(y0 * Float64(y2 * y5))))); elseif (x <= -1.1e-274) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (x <= 7.2e-245) tmp = Float64(j * Float64(t * t_1)); elseif (x <= 3.2e-177) tmp = Float64(a * Float64(Float64(b * Float64(Float64(x * y) - Float64(z * t))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (x <= 1.85e-152) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 3400000000000.0) tmp = t_4; elseif (x <= 1.22e+95) tmp = Float64(k * Float64(Float64(Float64(y2 * t_3) - Float64(y * t_1)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (x <= 1.05e+123) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); else tmp = Float64(y * Float64(x * t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (b * y4) - (i * y5); t_2 = (a * b) - (c * i); t_3 = (y1 * y4) - (y0 * y5); t_4 = y2 * (((k * t_3) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); tmp = 0.0; if (x <= -1.55e+232) tmp = x * (((c * (y0 * y2)) + (y * t_2)) - (b * (j * y0))); elseif (x <= -2.8e+52) tmp = t_4; elseif (x <= -1.1e-62) tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * ((z * k) - (x * j)))); elseif (x <= -2.2e-151) tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))); elseif (x <= -1.1e-274) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); elseif (x <= 7.2e-245) tmp = j * (t * t_1); elseif (x <= 3.2e-177) tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))); elseif (x <= 1.85e-152) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (x <= 3400000000000.0) tmp = t_4; elseif (x <= 1.22e+95) tmp = k * (((y2 * t_3) - (y * t_1)) + (z * ((b * y0) - (i * y1)))); elseif (x <= 1.05e+123) tmp = y1 * (y4 * ((k * y2) - (j * y3))); else tmp = y * (x * t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y2 * N[(N[(N[(k * t$95$3), $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[x, -1.55e+232], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.8e+52], t$95$4, If[LessEqual[x, -1.1e-62], N[(y0 * N[(N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.2e-151], N[(k * N[(N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.1e-274], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-245], N[(j * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e-177], N[(a * N[(N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85e-152], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3400000000000.0], t$95$4, If[LessEqual[x, 1.22e+95], N[(k * N[(N[(N[(y2 * t$95$3), $MachinePrecision] - N[(y * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.05e+123], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot y4 - i \cdot y5\\
t_2 := a \cdot b - c \cdot i\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := y2 \cdot \left(\left(k \cdot t_3 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+232}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot t_2\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{+52}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-62}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-151}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right) + \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-274}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-245}:\\
\;\;\;\;j \cdot \left(t \cdot t_1\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-177}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 1.85 \cdot 10^{-152}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 3400000000000:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{+95}:\\
\;\;\;\;k \cdot \left(\left(y2 \cdot t_3 - y \cdot t_1\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{+123}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot t_2\right)\\
\end{array}
\end{array}
if x < -1.54999999999999992e232Initial program 13.9%
Taylor expanded in y1 around 0 7.3%
Taylor expanded in x around inf 73.7%
if -1.54999999999999992e232 < x < -2.8e52 or 1.8499999999999999e-152 < x < 3.4e12Initial program 27.1%
Taylor expanded in y2 around inf 55.9%
if -2.8e52 < x < -1.10000000000000009e-62Initial program 35.7%
Taylor expanded in y0 around inf 57.6%
if -1.10000000000000009e-62 < x < -2.1999999999999999e-151Initial program 49.9%
Taylor expanded in y1 around 0 38.8%
Taylor expanded in k around -inf 78.3%
if -2.1999999999999999e-151 < x < -1.09999999999999998e-274Initial program 16.7%
Taylor expanded in y3 around -inf 83.3%
if -1.09999999999999998e-274 < x < 7.19999999999999999e-245Initial program 32.3%
Taylor expanded in j around inf 36.9%
+-commutative36.9%
mul-1-neg36.9%
unsub-neg36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in t around inf 49.6%
*-commutative49.6%
Simplified49.6%
if 7.19999999999999999e-245 < x < 3.1999999999999998e-177Initial program 26.3%
Taylor expanded in y1 around 0 15.9%
Taylor expanded in a around inf 79.4%
*-commutative79.4%
mul-1-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
if 3.1999999999999998e-177 < x < 1.8499999999999999e-152Initial program 28.6%
Taylor expanded in y1 around 0 15.5%
Taylor expanded in y4 around inf 86.8%
*-commutative86.8%
*-commutative86.8%
Simplified86.8%
if 3.4e12 < x < 1.22000000000000007e95Initial program 33.3%
Taylor expanded in k around inf 91.9%
sub-neg91.9%
+-commutative91.9%
mul-1-neg91.9%
unsub-neg91.9%
*-commutative91.9%
mul-1-neg91.9%
remove-double-neg91.9%
Simplified91.9%
if 1.22000000000000007e95 < x < 1.04999999999999997e123Initial program 11.1%
Taylor expanded in y1 around inf 30.3%
associate--l+30.3%
mul-1-neg30.3%
distribute-rgt-neg-in30.3%
*-commutative30.3%
*-commutative30.3%
fma-neg30.3%
fma-neg30.3%
*-commutative30.3%
distribute-rgt-neg-in30.3%
mul-1-neg30.3%
remove-double-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in y4 around inf 60.6%
mul-1-neg60.6%
+-commutative60.6%
sub-neg60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
if 1.04999999999999997e123 < x Initial program 22.6%
Taylor expanded in y1 around 0 16.1%
Taylor expanded in y around inf 38.8%
Taylor expanded in x around inf 64.8%
Final simplification65.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_1 INFINITY)
t_1
(*
y1
(+
(fma y4 (fma k y2 (* j (- y3))) (* i (- (* x j) (* z k))))
(* a (- (* z y3) (* x y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y1 * (fma(y4, fma(k, y2, (j * -y3)), (i * ((x * j) - (z * k)))) + (a * ((z * y3) - (x * y2))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(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(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y1 * Float64(fma(y4, fma(k, y2, Float64(j * Float64(-y3))), Float64(i * Float64(Float64(x * j) - Float64(z * k)))) + Float64(a * Float64(Float64(z * y3) - Float64(x * y2))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y1 * N[(N[(y4 * N[(k * y2 + N[(j * (-y3)), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(\mathsf{fma}\left(y4, \mathsf{fma}\left(k, y2, j \cdot \left(-y3\right)\right), i \cdot \left(x \cdot j - z \cdot k\right)\right) + a \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.8%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y1 around inf 38.0%
associate--l+38.0%
mul-1-neg38.0%
distribute-rgt-neg-in38.0%
*-commutative38.0%
*-commutative38.0%
fma-neg40.8%
fma-neg40.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
mul-1-neg40.8%
remove-double-neg40.8%
*-commutative40.8%
Simplified40.8%
Final simplification56.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(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))))
(* (- (* b y4) (* i y5)) (- (* t j) (* y k))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* t_1 (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
y1
(+
(+ (* a (- (* z y3) (* x y2))) (* y4 t_1))
(* i (- (* x j) (* z k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
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)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_1 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k))));
}
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 = (k * y2) - (j * y3);
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)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_1 * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (k * y2) - (j * y3) 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)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_1 * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) 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(b * y4) - Float64(i * y5)) * Float64(Float64(t * j) - Float64(y * k)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(t_1 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y1 * Float64(Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y4 * t_1)) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (k * y2) - (j * y3); 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)))) + (((b * y4) - (i * y5)) * ((t * j) - (y * k)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (t_1 * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k)))); 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[(k * y2), $MachinePrecision] - N[(j * y3), $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[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(y1 * N[(N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
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(b \cdot y4 - i \cdot y5\right) \cdot \left(t \cdot j - y \cdot k\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + t_1 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + y4 \cdot t_1\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.8%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y1 around inf 38.0%
Final simplification54.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (* b t_1))
(t_3 (* y5 (- (* t y2) (* y y3))))
(t_4 (- (* y0 y5) (* y1 y4)))
(t_5 (- (* z k) (* x j)))
(t_6 (- (* b y4) (* i y5)))
(t_7 (- (* y1 y4) (* y0 y5)))
(t_8 (* (- (* k y2) (* j y3)) t_7))
(t_9 (- (* a y5) (* c y4)))
(t_10 (* y2 (+ (+ (* k t_7) (* x (- (* c y0) (* a y1)))) (* t t_9)))))
(if (<= y2 -1.7e+210)
t_10
(if (<= y2 -5.8e+123)
(* j (+ (+ (* t t_6) (* y3 t_4)) (* x (- (* i y1) (* b y0)))))
(if (<= y2 -3.1e-13)
(+ t_8 (* a (+ t_3 (+ t_2 (* y1 (- (* z y3) (* x y2)))))))
(if (<= y2 -4.05e-45)
(* i (* y1 (- (* x j) (* z k))))
(if (<= y2 -5.4e-167)
(*
y0
(+
(+ (* y5 (- (* j y3) (* k y2))) (* c (- (* x y2) (* z y3))))
(* b t_5)))
(if (<= y2 -1.65e-222)
(* a (+ t_2 t_3))
(if (<= y2 4e-287)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j t_4) (* z (- (* a y1) (* c y0))))))
(if (<= y2 1.7e-128)
(-
t_8
(*
i
(+ (+ (* c t_1) (* y5 (- (* t j) (* y k)))) (* y1 t_5))))
(if (<= y2 4.2e+14)
(+
t_8
(*
t
(+ (+ (* z (- (* c i) (* a b))) (* j t_6)) (* y2 t_9))))
t_10)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = b * t_1;
double t_3 = y5 * ((t * y2) - (y * y3));
double t_4 = (y0 * y5) - (y1 * y4);
double t_5 = (z * k) - (x * j);
double t_6 = (b * y4) - (i * y5);
double t_7 = (y1 * y4) - (y0 * y5);
double t_8 = ((k * y2) - (j * y3)) * t_7;
double t_9 = (a * y5) - (c * y4);
double t_10 = y2 * (((k * t_7) + (x * ((c * y0) - (a * y1)))) + (t * t_9));
double tmp;
if (y2 <= -1.7e+210) {
tmp = t_10;
} else if (y2 <= -5.8e+123) {
tmp = j * (((t * t_6) + (y3 * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (y2 <= -3.1e-13) {
tmp = t_8 + (a * (t_3 + (t_2 + (y1 * ((z * y3) - (x * y2))))));
} else if (y2 <= -4.05e-45) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y2 <= -5.4e-167) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5));
} else if (y2 <= -1.65e-222) {
tmp = a * (t_2 + t_3);
} else if (y2 <= 4e-287) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * t_4) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= 1.7e-128) {
tmp = t_8 - (i * (((c * t_1) + (y5 * ((t * j) - (y * k)))) + (y1 * t_5)));
} else if (y2 <= 4.2e+14) {
tmp = t_8 + (t * (((z * ((c * i) - (a * b))) + (j * t_6)) + (y2 * t_9)));
} else {
tmp = t_10;
}
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_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 = (x * y) - (z * t)
t_2 = b * t_1
t_3 = y5 * ((t * y2) - (y * y3))
t_4 = (y0 * y5) - (y1 * y4)
t_5 = (z * k) - (x * j)
t_6 = (b * y4) - (i * y5)
t_7 = (y1 * y4) - (y0 * y5)
t_8 = ((k * y2) - (j * y3)) * t_7
t_9 = (a * y5) - (c * y4)
t_10 = y2 * (((k * t_7) + (x * ((c * y0) - (a * y1)))) + (t * t_9))
if (y2 <= (-1.7d+210)) then
tmp = t_10
else if (y2 <= (-5.8d+123)) then
tmp = j * (((t * t_6) + (y3 * t_4)) + (x * ((i * y1) - (b * y0))))
else if (y2 <= (-3.1d-13)) then
tmp = t_8 + (a * (t_3 + (t_2 + (y1 * ((z * y3) - (x * y2))))))
else if (y2 <= (-4.05d-45)) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (y2 <= (-5.4d-167)) then
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5))
else if (y2 <= (-1.65d-222)) then
tmp = a * (t_2 + t_3)
else if (y2 <= 4d-287) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * t_4) + (z * ((a * y1) - (c * y0)))))
else if (y2 <= 1.7d-128) then
tmp = t_8 - (i * (((c * t_1) + (y5 * ((t * j) - (y * k)))) + (y1 * t_5)))
else if (y2 <= 4.2d+14) then
tmp = t_8 + (t * (((z * ((c * i) - (a * b))) + (j * t_6)) + (y2 * t_9)))
else
tmp = t_10
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = b * t_1;
double t_3 = y5 * ((t * y2) - (y * y3));
double t_4 = (y0 * y5) - (y1 * y4);
double t_5 = (z * k) - (x * j);
double t_6 = (b * y4) - (i * y5);
double t_7 = (y1 * y4) - (y0 * y5);
double t_8 = ((k * y2) - (j * y3)) * t_7;
double t_9 = (a * y5) - (c * y4);
double t_10 = y2 * (((k * t_7) + (x * ((c * y0) - (a * y1)))) + (t * t_9));
double tmp;
if (y2 <= -1.7e+210) {
tmp = t_10;
} else if (y2 <= -5.8e+123) {
tmp = j * (((t * t_6) + (y3 * t_4)) + (x * ((i * y1) - (b * y0))));
} else if (y2 <= -3.1e-13) {
tmp = t_8 + (a * (t_3 + (t_2 + (y1 * ((z * y3) - (x * y2))))));
} else if (y2 <= -4.05e-45) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y2 <= -5.4e-167) {
tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5));
} else if (y2 <= -1.65e-222) {
tmp = a * (t_2 + t_3);
} else if (y2 <= 4e-287) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * t_4) + (z * ((a * y1) - (c * y0)))));
} else if (y2 <= 1.7e-128) {
tmp = t_8 - (i * (((c * t_1) + (y5 * ((t * j) - (y * k)))) + (y1 * t_5)));
} else if (y2 <= 4.2e+14) {
tmp = t_8 + (t * (((z * ((c * i) - (a * b))) + (j * t_6)) + (y2 * t_9)));
} else {
tmp = t_10;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) t_2 = b * t_1 t_3 = y5 * ((t * y2) - (y * y3)) t_4 = (y0 * y5) - (y1 * y4) t_5 = (z * k) - (x * j) t_6 = (b * y4) - (i * y5) t_7 = (y1 * y4) - (y0 * y5) t_8 = ((k * y2) - (j * y3)) * t_7 t_9 = (a * y5) - (c * y4) t_10 = y2 * (((k * t_7) + (x * ((c * y0) - (a * y1)))) + (t * t_9)) tmp = 0 if y2 <= -1.7e+210: tmp = t_10 elif y2 <= -5.8e+123: tmp = j * (((t * t_6) + (y3 * t_4)) + (x * ((i * y1) - (b * y0)))) elif y2 <= -3.1e-13: tmp = t_8 + (a * (t_3 + (t_2 + (y1 * ((z * y3) - (x * y2)))))) elif y2 <= -4.05e-45: tmp = i * (y1 * ((x * j) - (z * k))) elif y2 <= -5.4e-167: tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5)) elif y2 <= -1.65e-222: tmp = a * (t_2 + t_3) elif y2 <= 4e-287: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * t_4) + (z * ((a * y1) - (c * y0))))) elif y2 <= 1.7e-128: tmp = t_8 - (i * (((c * t_1) + (y5 * ((t * j) - (y * k)))) + (y1 * t_5))) elif y2 <= 4.2e+14: tmp = t_8 + (t * (((z * ((c * i) - (a * b))) + (j * t_6)) + (y2 * t_9))) else: tmp = t_10 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) t_2 = Float64(b * t_1) t_3 = Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))) t_4 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_5 = Float64(Float64(z * k) - Float64(x * j)) t_6 = Float64(Float64(b * y4) - Float64(i * y5)) t_7 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_8 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_7) t_9 = Float64(Float64(a * y5) - Float64(c * y4)) t_10 = Float64(y2 * Float64(Float64(Float64(k * t_7) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_9))) tmp = 0.0 if (y2 <= -1.7e+210) tmp = t_10; elseif (y2 <= -5.8e+123) tmp = Float64(j * Float64(Float64(Float64(t * t_6) + Float64(y3 * t_4)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y2 <= -3.1e-13) tmp = Float64(t_8 + Float64(a * Float64(t_3 + Float64(t_2 + Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2))))))); elseif (y2 <= -4.05e-45) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (y2 <= -5.4e-167) tmp = Float64(y0 * Float64(Float64(Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2))) + Float64(c * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(b * t_5))); elseif (y2 <= -1.65e-222) tmp = Float64(a * Float64(t_2 + t_3)); elseif (y2 <= 4e-287) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * t_4) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (y2 <= 1.7e-128) tmp = Float64(t_8 - Float64(i * Float64(Float64(Float64(c * t_1) + Float64(y5 * Float64(Float64(t * j) - Float64(y * k)))) + Float64(y1 * t_5)))); elseif (y2 <= 4.2e+14) tmp = Float64(t_8 + Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * t_6)) + Float64(y2 * t_9)))); else tmp = t_10; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = b * t_1; t_3 = y5 * ((t * y2) - (y * y3)); t_4 = (y0 * y5) - (y1 * y4); t_5 = (z * k) - (x * j); t_6 = (b * y4) - (i * y5); t_7 = (y1 * y4) - (y0 * y5); t_8 = ((k * y2) - (j * y3)) * t_7; t_9 = (a * y5) - (c * y4); t_10 = y2 * (((k * t_7) + (x * ((c * y0) - (a * y1)))) + (t * t_9)); tmp = 0.0; if (y2 <= -1.7e+210) tmp = t_10; elseif (y2 <= -5.8e+123) tmp = j * (((t * t_6) + (y3 * t_4)) + (x * ((i * y1) - (b * y0)))); elseif (y2 <= -3.1e-13) tmp = t_8 + (a * (t_3 + (t_2 + (y1 * ((z * y3) - (x * y2)))))); elseif (y2 <= -4.05e-45) tmp = i * (y1 * ((x * j) - (z * k))); elseif (y2 <= -5.4e-167) tmp = y0 * (((y5 * ((j * y3) - (k * y2))) + (c * ((x * y2) - (z * y3)))) + (b * t_5)); elseif (y2 <= -1.65e-222) tmp = a * (t_2 + t_3); elseif (y2 <= 4e-287) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((j * t_4) + (z * ((a * y1) - (c * y0))))); elseif (y2 <= 1.7e-128) tmp = t_8 - (i * (((c * t_1) + (y5 * ((t * j) - (y * k)))) + (y1 * t_5))); elseif (y2 <= 4.2e+14) tmp = t_8 + (t * (((z * ((c * i) - (a * b))) + (j * t_6)) + (y2 * t_9))); else tmp = t_10; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]}, Block[{t$95$9 = N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(y2 * N[(N[(N[(k * t$95$7), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.7e+210], t$95$10, If[LessEqual[y2, -5.8e+123], N[(j * N[(N[(N[(t * t$95$6), $MachinePrecision] + N[(y3 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.1e-13], N[(t$95$8 + N[(a * N[(t$95$3 + N[(t$95$2 + N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.05e-45], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -5.4e-167], N[(y0 * N[(N[(N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.65e-222], N[(a * N[(t$95$2 + t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4e-287], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t$95$4), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.7e-128], N[(t$95$8 - N[(i * N[(N[(N[(c * t$95$1), $MachinePrecision] + N[(y5 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.2e+14], N[(t$95$8 + N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$6), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$9), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$10]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := b \cdot t_1\\
t_3 := y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\\
t_4 := y0 \cdot y5 - y1 \cdot y4\\
t_5 := z \cdot k - x \cdot j\\
t_6 := b \cdot y4 - i \cdot y5\\
t_7 := y1 \cdot y4 - y0 \cdot y5\\
t_8 := \left(k \cdot y2 - j \cdot y3\right) \cdot t_7\\
t_9 := a \cdot y5 - c \cdot y4\\
t_10 := y2 \cdot \left(\left(k \cdot t_7 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t_9\right)\\
\mathbf{if}\;y2 \leq -1.7 \cdot 10^{+210}:\\
\;\;\;\;t_10\\
\mathbf{elif}\;y2 \leq -5.8 \cdot 10^{+123}:\\
\;\;\;\;j \cdot \left(\left(t \cdot t_6 + y3 \cdot t_4\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq -3.1 \cdot 10^{-13}:\\
\;\;\;\;t_8 + a \cdot \left(t_3 + \left(t_2 + y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -4.05 \cdot 10^{-45}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y2 \leq -5.4 \cdot 10^{-167}:\\
\;\;\;\;y0 \cdot \left(\left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right) + c \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + b \cdot t_5\right)\\
\mathbf{elif}\;y2 \leq -1.65 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \left(t_2 + t_3\right)\\
\mathbf{elif}\;y2 \leq 4 \cdot 10^{-287}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot t_4 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 1.7 \cdot 10^{-128}:\\
\;\;\;\;t_8 - i \cdot \left(\left(c \cdot t_1 + y5 \cdot \left(t \cdot j - y \cdot k\right)\right) + y1 \cdot t_5\right)\\
\mathbf{elif}\;y2 \leq 4.2 \cdot 10^{+14}:\\
\;\;\;\;t_8 + t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot t_6\right) + y2 \cdot t_9\right)\\
\mathbf{else}:\\
\;\;\;\;t_10\\
\end{array}
\end{array}
if y2 < -1.70000000000000012e210 or 4.2e14 < y2 Initial program 20.6%
Taylor expanded in y2 around inf 65.5%
if -1.70000000000000012e210 < y2 < -5.80000000000000019e123Initial program 16.7%
Taylor expanded in j around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -5.80000000000000019e123 < y2 < -3.0999999999999999e-13Initial program 37.9%
Taylor expanded in a around -inf 65.6%
mul-1-neg65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
Simplified65.6%
if -3.0999999999999999e-13 < y2 < -4.05000000000000024e-45Initial program 14.3%
Taylor expanded in y1 around inf 57.1%
associate--l+57.1%
mul-1-neg57.1%
distribute-rgt-neg-in57.1%
*-commutative57.1%
*-commutative57.1%
fma-neg71.4%
fma-neg71.4%
*-commutative71.4%
distribute-rgt-neg-in71.4%
mul-1-neg71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in i around inf 85.7%
if -4.05000000000000024e-45 < y2 < -5.4000000000000001e-167Initial program 18.5%
Taylor expanded in y0 around inf 55.3%
if -5.4000000000000001e-167 < y2 < -1.65000000000000001e-222Initial program 40.9%
Taylor expanded in y1 around 0 30.9%
Taylor expanded in a around inf 61.9%
*-commutative61.9%
mul-1-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
if -1.65000000000000001e-222 < y2 < 4.00000000000000009e-287Initial program 27.8%
Taylor expanded in y3 around -inf 66.9%
if 4.00000000000000009e-287 < y2 < 1.69999999999999987e-128Initial program 41.6%
Taylor expanded in i around -inf 55.9%
if 1.69999999999999987e-128 < y2 < 4.2e14Initial program 37.0%
Taylor expanded in t around inf 59.2%
Final simplification63.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(+ (* j (- (* y0 y5) (* y1 y4))) (* z (- (* a y1) (* c y0)))))))
(t_2 (- (* b y4) (* i y5)))
(t_3 (- (* a b) (* c i)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5
(*
y2
(+
(+ (* k t_4) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))))
(if (<= x -2.85e+231)
(* x (- (+ (* c (* y0 y2)) (* y t_3)) (* b (* j y0))))
(if (<= x -7.5e+52)
t_5
(if (<= x -7e-58)
t_1
(if (<= x -2.3e-151)
(*
k
(+
(* b (* z y0))
(- (* y (- (* i y5) (* b y4))) (* y0 (* y2 y5)))))
(if (<= x -8e-275)
t_1
(if (<= x 7.2e-241)
(* j (* t t_2))
(if (<= x 9.2e-184)
(*
a
(+ (* b (- (* x y) (* z t))) (* y5 (- (* t y2) (* y y3)))))
(if (<= x 1.5e-153)
(*
y4
(+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= x 7.6e+16)
t_5
(if (<= x 4.5e+96)
(*
k
(+
(- (* y2 t_4) (* y t_2))
(* z (- (* b y0) (* i y1)))))
(if (<= x 1.15e+125)
(* y1 (* y4 (- (* k y2) (* j y3))))
(* y (* x t_3)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
double t_2 = (b * y4) - (i * y5);
double t_3 = (a * b) - (c * i);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (x <= -2.85e+231) {
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)));
} else if (x <= -7.5e+52) {
tmp = t_5;
} else if (x <= -7e-58) {
tmp = t_1;
} else if (x <= -2.3e-151) {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
} else if (x <= -8e-275) {
tmp = t_1;
} else if (x <= 7.2e-241) {
tmp = j * (t * t_2);
} else if (x <= 9.2e-184) {
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= 1.5e-153) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 7.6e+16) {
tmp = t_5;
} else if (x <= 4.5e+96) {
tmp = k * (((y2 * t_4) - (y * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (x <= 1.15e+125) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else {
tmp = y * (x * t_3);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))))
t_2 = (b * y4) - (i * y5)
t_3 = (a * b) - (c * i)
t_4 = (y1 * y4) - (y0 * y5)
t_5 = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
if (x <= (-2.85d+231)) then
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)))
else if (x <= (-7.5d+52)) then
tmp = t_5
else if (x <= (-7d-58)) then
tmp = t_1
else if (x <= (-2.3d-151)) then
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))))
else if (x <= (-8d-275)) then
tmp = t_1
else if (x <= 7.2d-241) then
tmp = j * (t * t_2)
else if (x <= 9.2d-184) then
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))))
else if (x <= 1.5d-153) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (x <= 7.6d+16) then
tmp = t_5
else if (x <= 4.5d+96) then
tmp = k * (((y2 * t_4) - (y * t_2)) + (z * ((b * y0) - (i * y1))))
else if (x <= 1.15d+125) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else
tmp = y * (x * t_3)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0)))));
double t_2 = (b * y4) - (i * y5);
double t_3 = (a * b) - (c * i);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (x <= -2.85e+231) {
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)));
} else if (x <= -7.5e+52) {
tmp = t_5;
} else if (x <= -7e-58) {
tmp = t_1;
} else if (x <= -2.3e-151) {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
} else if (x <= -8e-275) {
tmp = t_1;
} else if (x <= 7.2e-241) {
tmp = j * (t * t_2);
} else if (x <= 9.2e-184) {
tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
} else if (x <= 1.5e-153) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 7.6e+16) {
tmp = t_5;
} else if (x <= 4.5e+96) {
tmp = k * (((y2 * t_4) - (y * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (x <= 1.15e+125) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else {
tmp = y * (x * t_3);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))) t_2 = (b * y4) - (i * y5) t_3 = (a * b) - (c * i) t_4 = (y1 * y4) - (y0 * y5) t_5 = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) tmp = 0 if x <= -2.85e+231: tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0))) elif x <= -7.5e+52: tmp = t_5 elif x <= -7e-58: tmp = t_1 elif x <= -2.3e-151: tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))) elif x <= -8e-275: tmp = t_1 elif x <= 7.2e-241: tmp = j * (t * t_2) elif x <= 9.2e-184: tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))) elif x <= 1.5e-153: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif x <= 7.6e+16: tmp = t_5 elif x <= 4.5e+96: tmp = k * (((y2 * t_4) - (y * t_2)) + (z * ((b * y0) - (i * y1)))) elif x <= 1.15e+125: tmp = y1 * (y4 * ((k * y2) - (j * y3))) else: tmp = y * (x * t_3) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(j * Float64(Float64(y0 * y5) - Float64(y1 * y4))) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))) t_2 = Float64(Float64(b * y4) - Float64(i * y5)) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (x <= -2.85e+231) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * t_3)) - Float64(b * Float64(j * y0)))); elseif (x <= -7.5e+52) tmp = t_5; elseif (x <= -7e-58) tmp = t_1; elseif (x <= -2.3e-151) tmp = Float64(k * Float64(Float64(b * Float64(z * y0)) + Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(y0 * Float64(y2 * y5))))); elseif (x <= -8e-275) tmp = t_1; elseif (x <= 7.2e-241) tmp = Float64(j * Float64(t * t_2)); elseif (x <= 9.2e-184) tmp = Float64(a * Float64(Float64(b * Float64(Float64(x * y) - Float64(z * t))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (x <= 1.5e-153) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 7.6e+16) tmp = t_5; elseif (x <= 4.5e+96) tmp = Float64(k * Float64(Float64(Float64(y2 * t_4) - Float64(y * t_2)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (x <= 1.15e+125) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); else tmp = Float64(y * Float64(x * t_3)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y3 * ((y * ((c * y4) - (a * y5))) + ((j * ((y0 * y5) - (y1 * y4))) + (z * ((a * y1) - (c * y0))))); t_2 = (b * y4) - (i * y5); t_3 = (a * b) - (c * i); t_4 = (y1 * y4) - (y0 * y5); t_5 = y2 * (((k * t_4) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); tmp = 0.0; if (x <= -2.85e+231) tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0))); elseif (x <= -7.5e+52) tmp = t_5; elseif (x <= -7e-58) tmp = t_1; elseif (x <= -2.3e-151) tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))); elseif (x <= -8e-275) tmp = t_1; elseif (x <= 7.2e-241) tmp = j * (t * t_2); elseif (x <= 9.2e-184) tmp = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))); elseif (x <= 1.5e-153) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (x <= 7.6e+16) tmp = t_5; elseif (x <= 4.5e+96) tmp = k * (((y2 * t_4) - (y * t_2)) + (z * ((b * y0) - (i * y1)))); elseif (x <= 1.15e+125) tmp = y1 * (y4 * ((k * y2) - (j * y3))); else tmp = y * (x * t_3); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * N[(N[(N[(k * t$95$4), $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[x, -2.85e+231], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.5e+52], t$95$5, If[LessEqual[x, -7e-58], t$95$1, If[LessEqual[x, -2.3e-151], N[(k * N[(N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8e-275], t$95$1, If[LessEqual[x, 7.2e-241], N[(j * N[(t * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e-184], N[(a * N[(N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-153], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.6e+16], t$95$5, If[LessEqual[x, 4.5e+96], N[(k * N[(N[(N[(y2 * t$95$4), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+125], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * t$95$3), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(j \cdot \left(y0 \cdot y5 - y1 \cdot y4\right) + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
t_2 := b \cdot y4 - i \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := y2 \cdot \left(\left(k \cdot t_4 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;x \leq -2.85 \cdot 10^{+231}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot t_3\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq -7.5 \cdot 10^{+52}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-151}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right) + \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-275}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-241}:\\
\;\;\;\;j \cdot \left(t \cdot t_2\right)\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-184}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-153}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{+16}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+96}:\\
\;\;\;\;k \cdot \left(\left(y2 \cdot t_4 - y \cdot t_2\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+125}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot t_3\right)\\
\end{array}
\end{array}
if x < -2.8500000000000001e231Initial program 13.9%
Taylor expanded in y1 around 0 7.3%
Taylor expanded in x around inf 73.7%
if -2.8500000000000001e231 < x < -7.49999999999999995e52 or 1.5e-153 < x < 7.6e16Initial program 27.1%
Taylor expanded in y2 around inf 55.9%
if -7.49999999999999995e52 < x < -6.9999999999999998e-58 or -2.29999999999999996e-151 < x < -7.99999999999999947e-275Initial program 28.9%
Taylor expanded in y3 around -inf 63.3%
if -6.9999999999999998e-58 < x < -2.29999999999999996e-151Initial program 49.9%
Taylor expanded in y1 around 0 39.9%
Taylor expanded in k around -inf 75.5%
if -7.99999999999999947e-275 < x < 7.1999999999999998e-241Initial program 32.3%
Taylor expanded in j around inf 36.9%
+-commutative36.9%
mul-1-neg36.9%
unsub-neg36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in t around inf 49.6%
*-commutative49.6%
Simplified49.6%
if 7.1999999999999998e-241 < x < 9.1999999999999998e-184Initial program 26.3%
Taylor expanded in y1 around 0 15.9%
Taylor expanded in a around inf 79.4%
*-commutative79.4%
mul-1-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
if 9.1999999999999998e-184 < x < 1.5e-153Initial program 28.6%
Taylor expanded in y1 around 0 15.5%
Taylor expanded in y4 around inf 86.8%
*-commutative86.8%
*-commutative86.8%
Simplified86.8%
if 7.6e16 < x < 4.49999999999999957e96Initial program 33.3%
Taylor expanded in k around inf 91.9%
sub-neg91.9%
+-commutative91.9%
mul-1-neg91.9%
unsub-neg91.9%
*-commutative91.9%
mul-1-neg91.9%
remove-double-neg91.9%
Simplified91.9%
if 4.49999999999999957e96 < x < 1.15000000000000006e125Initial program 11.1%
Taylor expanded in y1 around inf 30.3%
associate--l+30.3%
mul-1-neg30.3%
distribute-rgt-neg-in30.3%
*-commutative30.3%
*-commutative30.3%
fma-neg30.3%
fma-neg30.3%
*-commutative30.3%
distribute-rgt-neg-in30.3%
mul-1-neg30.3%
remove-double-neg30.3%
*-commutative30.3%
Simplified30.3%
Taylor expanded in y4 around inf 60.6%
mul-1-neg60.6%
+-commutative60.6%
sub-neg60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
if 1.15000000000000006e125 < x Initial program 22.6%
Taylor expanded in y1 around 0 16.1%
Taylor expanded in y around inf 38.8%
Taylor expanded in x around inf 64.8%
Final simplification64.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0)))))))
(if (<= k -1.25e+68)
(+ (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) (* i (* k (* y y5))))
(if (<= k -2e-181)
(* y4 (+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= k -4e-229)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= k 1.45e-305)
(* c (* z (- (* t i) (* y0 y3))))
(if (<= k 1.15e-272)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= k 1.46e-272)
(* a (* (* x y) b))
(if (<= k 5.2e-155)
t_1
(if (<= k 3.8e-69)
(*
x
(-
(+ (* c (* y0 y2)) (* y (- (* a b) (* c i))))
(* b (* j y0))))
(if (<= k 1.15e+184)
t_1
(*
k
(+
(* b (* z y0))
(-
(* y (- (* i y5) (* b y4)))
(* y0 (* 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 t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -1.25e+68) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)));
} else if (k <= -2e-181) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -4e-229) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 1.45e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 1.15e-272) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 1.46e-272) {
tmp = a * ((x * y) * b);
} else if (k <= 5.2e-155) {
tmp = t_1;
} else if (k <= 3.8e-69) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 1.15e+184) {
tmp = t_1;
} else {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (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) :: t_1
real(8) :: tmp
t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
if (k <= (-1.25d+68)) then
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)))
else if (k <= (-2d-181)) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (k <= (-4d-229)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (k <= 1.45d-305) then
tmp = c * (z * ((t * i) - (y0 * y3)))
else if (k <= 1.15d-272) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (k <= 1.46d-272) then
tmp = a * ((x * y) * b)
else if (k <= 5.2d-155) then
tmp = t_1
else if (k <= 3.8d-69) then
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)))
else if (k <= 1.15d+184) then
tmp = t_1
else
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (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 t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double tmp;
if (k <= -1.25e+68) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)));
} else if (k <= -2e-181) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (k <= -4e-229) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 1.45e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 1.15e-272) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 1.46e-272) {
tmp = a * ((x * y) * b);
} else if (k <= 5.2e-155) {
tmp = t_1;
} else if (k <= 3.8e-69) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 1.15e+184) {
tmp = t_1;
} else {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) tmp = 0 if k <= -1.25e+68: tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5))) elif k <= -2e-181: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif k <= -4e-229: tmp = (y * a) * ((x * b) - (y3 * y5)) elif k <= 1.45e-305: tmp = c * (z * ((t * i) - (y0 * y3))) elif k <= 1.15e-272: tmp = x * (y1 * ((i * j) - (a * y2))) elif k <= 1.46e-272: tmp = a * ((x * y) * b) elif k <= 5.2e-155: tmp = t_1 elif k <= 3.8e-69: tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))) elif k <= 1.15e+184: tmp = t_1 else: tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) tmp = 0.0 if (k <= -1.25e+68) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(i * Float64(k * Float64(y * y5)))); elseif (k <= -2e-181) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (k <= -4e-229) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (k <= 1.45e-305) tmp = Float64(c * Float64(z * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (k <= 1.15e-272) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (k <= 1.46e-272) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (k <= 5.2e-155) tmp = t_1; elseif (k <= 3.8e-69) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * Float64(Float64(a * b) - Float64(c * i)))) - Float64(b * Float64(j * y0)))); elseif (k <= 1.15e+184) tmp = t_1; else tmp = Float64(k * Float64(Float64(b * Float64(z * y0)) + Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(y0 * 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) t_1 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); tmp = 0.0; if (k <= -1.25e+68) tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5))); elseif (k <= -2e-181) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (k <= -4e-229) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (k <= 1.45e-305) tmp = c * (z * ((t * i) - (y0 * y3))); elseif (k <= 1.15e-272) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (k <= 1.46e-272) tmp = a * ((x * y) * b); elseif (k <= 5.2e-155) tmp = t_1; elseif (k <= 3.8e-69) tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))); elseif (k <= 1.15e+184) tmp = t_1; else tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * 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[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.25e+68], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2e-181], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4e-229], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.45e-305], N[(c * N[(z * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.15e-272], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.46e-272], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.2e-155], t$95$1, If[LessEqual[k, 3.8e-69], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.15e+184], t$95$1, N[(k * N[(N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;k \leq -1.25 \cdot 10^{+68}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq -2 \cdot 10^{-181}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq -4 \cdot 10^{-229}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;k \leq 1.45 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(z \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{-272}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 1.46 \cdot 10^{-272}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;k \leq 5.2 \cdot 10^{-155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 3.8 \cdot 10^{-69}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot \left(a \cdot b - c \cdot i\right)\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 1.15 \cdot 10^{+184}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right) + \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if k < -1.2500000000000001e68Initial program 28.9%
Taylor expanded in y5 around inf 47.0%
distribute-lft-out--47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in k around inf 49.5%
*-commutative49.5%
Simplified49.5%
if -1.2500000000000001e68 < k < -2.00000000000000009e-181Initial program 30.9%
Taylor expanded in y1 around 0 28.9%
Taylor expanded in y4 around inf 55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
if -2.00000000000000009e-181 < k < -4.00000000000000028e-229Initial program 12.5%
Taylor expanded in y1 around 0 18.8%
Taylor expanded in a around inf 44.1%
*-commutative44.1%
mul-1-neg44.1%
*-commutative44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in y around inf 50.6%
associate-*r*56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
if -4.00000000000000028e-229 < k < 1.44999999999999994e-305Initial program 28.1%
Taylor expanded in c around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in z around -inf 61.6%
mul-1-neg61.6%
*-commutative61.6%
Simplified61.6%
if 1.44999999999999994e-305 < k < 1.14999999999999994e-272Initial program 12.3%
Taylor expanded in y1 around inf 26.2%
associate--l+26.2%
mul-1-neg26.2%
distribute-rgt-neg-in26.2%
*-commutative26.2%
*-commutative26.2%
fma-neg26.2%
fma-neg26.2%
*-commutative26.2%
distribute-rgt-neg-in26.2%
mul-1-neg26.2%
remove-double-neg26.2%
*-commutative26.2%
Simplified26.2%
Taylor expanded in x around inf 62.9%
if 1.14999999999999994e-272 < k < 1.45999999999999997e-272Initial program 0.0%
Taylor expanded in y1 around 0 0.0%
Taylor expanded in a around inf 100.0%
*-commutative100.0%
mul-1-neg100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
if 1.45999999999999997e-272 < k < 5.20000000000000016e-155 or 3.7999999999999998e-69 < k < 1.15e184Initial program 31.8%
Taylor expanded in j around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
if 5.20000000000000016e-155 < k < 3.7999999999999998e-69Initial program 35.2%
Taylor expanded in y1 around 0 22.3%
Taylor expanded in x around inf 57.4%
if 1.15e184 < k Initial program 20.6%
Taylor expanded in y1 around 0 24.2%
Taylor expanded in k around -inf 62.3%
Final simplification57.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 y4) (* y0 y5)))
(t_2
(*
y2
(+
(+ (* k t_1) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4))))))
(t_3 (- (* a b) (* c i)))
(t_4
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 (- (* y0 y5) (* y1 y4))))
(* x (- (* i y1) (* b y0))))))
(t_5 (* i (* y1 (- (* x j) (* z k))))))
(if (<= y2 -1.7e+210)
t_2
(if (<= y2 -7.8e+135)
t_4
(if (<= y2 -1100.0)
(+ (* (- (* k y2) (* j y3)) t_1) (* i (* k (* y y5))))
(if (<= y2 -8e-71)
t_5
(if (<= y2 -2.4e-127)
(* y (* x t_3))
(if (<= y2 -3.8e-272)
t_5
(if (<= y2 -2.22e-302)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y2 1.25e-231)
(* x (- (+ (* c (* y0 y2)) (* y t_3)) (* b (* j y0))))
(if (<= y2 1.3e+72) t_4 t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double t_3 = (a * b) - (c * i);
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y2 <= -1.7e+210) {
tmp = t_2;
} else if (y2 <= -7.8e+135) {
tmp = t_4;
} else if (y2 <= -1100.0) {
tmp = (((k * y2) - (j * y3)) * t_1) + (i * (k * (y * y5)));
} else if (y2 <= -8e-71) {
tmp = t_5;
} else if (y2 <= -2.4e-127) {
tmp = y * (x * t_3);
} else if (y2 <= -3.8e-272) {
tmp = t_5;
} else if (y2 <= -2.22e-302) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y2 <= 1.25e-231) {
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)));
} else if (y2 <= 1.3e+72) {
tmp = t_4;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (y1 * y4) - (y0 * y5)
t_2 = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
t_3 = (a * b) - (c * i)
t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))))
t_5 = i * (y1 * ((x * j) - (z * k)))
if (y2 <= (-1.7d+210)) then
tmp = t_2
else if (y2 <= (-7.8d+135)) then
tmp = t_4
else if (y2 <= (-1100.0d0)) then
tmp = (((k * y2) - (j * y3)) * t_1) + (i * (k * (y * y5)))
else if (y2 <= (-8d-71)) then
tmp = t_5
else if (y2 <= (-2.4d-127)) then
tmp = y * (x * t_3)
else if (y2 <= (-3.8d-272)) then
tmp = t_5
else if (y2 <= (-2.22d-302)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y2 <= 1.25d-231) then
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)))
else if (y2 <= 1.3d+72) then
tmp = t_4
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double t_3 = (a * b) - (c * i);
double t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0))));
double t_5 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y2 <= -1.7e+210) {
tmp = t_2;
} else if (y2 <= -7.8e+135) {
tmp = t_4;
} else if (y2 <= -1100.0) {
tmp = (((k * y2) - (j * y3)) * t_1) + (i * (k * (y * y5)));
} else if (y2 <= -8e-71) {
tmp = t_5;
} else if (y2 <= -2.4e-127) {
tmp = y * (x * t_3);
} else if (y2 <= -3.8e-272) {
tmp = t_5;
} else if (y2 <= -2.22e-302) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y2 <= 1.25e-231) {
tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0)));
} else if (y2 <= 1.3e+72) {
tmp = t_4;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y1 * y4) - (y0 * y5) t_2 = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) t_3 = (a * b) - (c * i) t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))) t_5 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if y2 <= -1.7e+210: tmp = t_2 elif y2 <= -7.8e+135: tmp = t_4 elif y2 <= -1100.0: tmp = (((k * y2) - (j * y3)) * t_1) + (i * (k * (y * y5))) elif y2 <= -8e-71: tmp = t_5 elif y2 <= -2.4e-127: tmp = y * (x * t_3) elif y2 <= -3.8e-272: tmp = t_5 elif y2 <= -2.22e-302: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y2 <= 1.25e-231: tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0))) elif y2 <= 1.3e+72: tmp = t_4 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(y2 * Float64(Float64(Float64(k * t_1) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * Float64(Float64(y0 * y5) - Float64(y1 * y4)))) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))) t_5 = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (y2 <= -1.7e+210) tmp = t_2; elseif (y2 <= -7.8e+135) tmp = t_4; elseif (y2 <= -1100.0) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_1) + Float64(i * Float64(k * Float64(y * y5)))); elseif (y2 <= -8e-71) tmp = t_5; elseif (y2 <= -2.4e-127) tmp = Float64(y * Float64(x * t_3)); elseif (y2 <= -3.8e-272) tmp = t_5; elseif (y2 <= -2.22e-302) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y2 <= 1.25e-231) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * t_3)) - Float64(b * Float64(j * y0)))); elseif (y2 <= 1.3e+72) tmp = t_4; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y1 * y4) - (y0 * y5); t_2 = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); t_3 = (a * b) - (c * i); t_4 = j * (((t * ((b * y4) - (i * y5))) + (y3 * ((y0 * y5) - (y1 * y4)))) + (x * ((i * y1) - (b * y0)))); t_5 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (y2 <= -1.7e+210) tmp = t_2; elseif (y2 <= -7.8e+135) tmp = t_4; elseif (y2 <= -1100.0) tmp = (((k * y2) - (j * y3)) * t_1) + (i * (k * (y * y5))); elseif (y2 <= -8e-71) tmp = t_5; elseif (y2 <= -2.4e-127) tmp = y * (x * t_3); elseif (y2 <= -3.8e-272) tmp = t_5; elseif (y2 <= -2.22e-302) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y2 <= 1.25e-231) tmp = x * (((c * (y0 * y2)) + (y * t_3)) - (b * (j * y0))); elseif (y2 <= 1.3e+72) tmp = t_4; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(N[(k * t$95$1), $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]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.7e+210], t$95$2, If[LessEqual[y2, -7.8e+135], t$95$4, If[LessEqual[y2, -1100.0], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision] + N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -8e-71], t$95$5, If[LessEqual[y2, -2.4e-127], N[(y * N[(x * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.8e-272], t$95$5, If[LessEqual[y2, -2.22e-302], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.25e-231], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.3e+72], t$95$4, t$95$2]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := y2 \cdot \left(\left(k \cdot t_1 + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_3 := a \cdot b - c \cdot i\\
t_4 := j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot \left(y0 \cdot y5 - y1 \cdot y4\right)\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
t_5 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;y2 \leq -1.7 \cdot 10^{+210}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y2 \leq -7.8 \cdot 10^{+135}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y2 \leq -1100:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t_1 + i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -8 \cdot 10^{-71}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y2 \leq -2.4 \cdot 10^{-127}:\\
\;\;\;\;y \cdot \left(x \cdot t_3\right)\\
\mathbf{elif}\;y2 \leq -3.8 \cdot 10^{-272}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y2 \leq -2.22 \cdot 10^{-302}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq 1.25 \cdot 10^{-231}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot t_3\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;y2 \leq 1.3 \cdot 10^{+72}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y2 < -1.70000000000000012e210 or 1.29999999999999991e72 < y2 Initial program 19.8%
Taylor expanded in y2 around inf 67.8%
if -1.70000000000000012e210 < y2 < -7.80000000000000064e135 or 1.25000000000000006e-231 < y2 < 1.29999999999999991e72Initial program 33.9%
Taylor expanded in j around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
*-commutative59.0%
Simplified59.0%
if -7.80000000000000064e135 < y2 < -1100Initial program 34.3%
Taylor expanded in y5 around inf 52.8%
distribute-lft-out--52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in k around inf 50.2%
*-commutative50.2%
Simplified50.2%
if -1100 < y2 < -7.9999999999999993e-71 or -2.39999999999999982e-127 < y2 < -3.7999999999999997e-272Initial program 32.7%
Taylor expanded in y1 around inf 57.3%
associate--l+57.3%
mul-1-neg57.3%
distribute-rgt-neg-in57.3%
*-commutative57.3%
*-commutative57.3%
fma-neg60.0%
fma-neg60.0%
*-commutative60.0%
distribute-rgt-neg-in60.0%
mul-1-neg60.0%
remove-double-neg60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in i around inf 55.0%
if -7.9999999999999993e-71 < y2 < -2.39999999999999982e-127Initial program 0.8%
Taylor expanded in y1 around 0 0.8%
Taylor expanded in y around inf 40.8%
Taylor expanded in x around inf 60.6%
if -3.7999999999999997e-272 < y2 < -2.2199999999999999e-302Initial program 14.3%
Taylor expanded in y1 around 0 14.3%
Taylor expanded in y around inf 57.1%
Taylor expanded in y3 around inf 85.7%
if -2.2199999999999999e-302 < y2 < 1.25000000000000006e-231Initial program 33.0%
Taylor expanded in y1 around 0 23.0%
Taylor expanded in x around inf 58.4%
Final simplification60.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2 (- (* y0 y5) (* y1 y4)))
(t_3 (- (* c y4) (* a y5)))
(t_4
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))))
(if (<= a -9.5e+202)
(*
y1
(+ (+ (* a (- (* z y3) (* x y2))) (* y4 t_1)) (* i (- (* x j) (* z k)))))
(if (<= a -8.4e+99)
(* b (* j (- (* t y4) (* x y0))))
(if (<= a -3.35)
(* y3 (+ (* y t_3) (+ (* j t_2) (* z (- (* a y1) (* c y0))))))
(if (<= a -3.2e-107)
t_4
(if (<= a -8.2e-243)
(*
y
(+
(+ (* x (- (* a b) (* c i))) (* k (- (* i y5) (* b y4))))
(* y3 t_3)))
(if (<= a 1.26e-191)
t_4
(if (<= a 1.3e-95)
(*
y4
(+
(+ (* b (- (* t j) (* y k))) (* y1 t_1))
(* c (- (* y y3) (* t y2)))))
(if (<= a 1.4e+66)
(*
j
(+
(+ (* t (- (* b y4) (* i y5))) (* y3 t_2))
(* x (- (* i y1) (* b y0)))))
(if (<= a 2.05e+239)
t_4
(* (* y a) (- (* x b) (* y3 y5))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (y0 * y5) - (y1 * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (a <= -9.5e+202) {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k))));
} else if (a <= -8.4e+99) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -3.35) {
tmp = y3 * ((y * t_3) + ((j * t_2) + (z * ((a * y1) - (c * y0)))));
} else if (a <= -3.2e-107) {
tmp = t_4;
} else if (a <= -8.2e-243) {
tmp = y * (((x * ((a * b) - (c * i))) + (k * ((i * y5) - (b * y4)))) + (y3 * t_3));
} else if (a <= 1.26e-191) {
tmp = t_4;
} else if (a <= 1.3e-95) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
} else if (a <= 1.4e+66) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))));
} else if (a <= 2.05e+239) {
tmp = t_4;
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = (k * y2) - (j * y3)
t_2 = (y0 * y5) - (y1 * y4)
t_3 = (c * y4) - (a * y5)
t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
if (a <= (-9.5d+202)) then
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k))))
else if (a <= (-8.4d+99)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (a <= (-3.35d0)) then
tmp = y3 * ((y * t_3) + ((j * t_2) + (z * ((a * y1) - (c * y0)))))
else if (a <= (-3.2d-107)) then
tmp = t_4
else if (a <= (-8.2d-243)) then
tmp = y * (((x * ((a * b) - (c * i))) + (k * ((i * y5) - (b * y4)))) + (y3 * t_3))
else if (a <= 1.26d-191) then
tmp = t_4
else if (a <= 1.3d-95) then
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))))
else if (a <= 1.4d+66) then
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))))
else if (a <= 2.05d+239) then
tmp = t_4
else
tmp = (y * a) * ((x * b) - (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (y0 * y5) - (y1 * y4);
double t_3 = (c * y4) - (a * y5);
double t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
double tmp;
if (a <= -9.5e+202) {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k))));
} else if (a <= -8.4e+99) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -3.35) {
tmp = y3 * ((y * t_3) + ((j * t_2) + (z * ((a * y1) - (c * y0)))));
} else if (a <= -3.2e-107) {
tmp = t_4;
} else if (a <= -8.2e-243) {
tmp = y * (((x * ((a * b) - (c * i))) + (k * ((i * y5) - (b * y4)))) + (y3 * t_3));
} else if (a <= 1.26e-191) {
tmp = t_4;
} else if (a <= 1.3e-95) {
tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_1)) + (c * ((y * y3) - (t * y2))));
} else if (a <= 1.4e+66) {
tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0))));
} else if (a <= 2.05e+239) {
tmp = t_4;
} else {
tmp = (y * a) * ((x * b) - (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (k * y2) - (j * y3) t_2 = (y0 * y5) - (y1 * y4) t_3 = (c * y4) - (a * y5) t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) tmp = 0 if a <= -9.5e+202: tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k)))) elif a <= -8.4e+99: tmp = b * (j * ((t * y4) - (x * y0))) elif a <= -3.35: tmp = y3 * ((y * t_3) + ((j * t_2) + (z * ((a * y1) - (c * y0))))) elif a <= -3.2e-107: tmp = t_4 elif a <= -8.2e-243: tmp = y * (((x * ((a * b) - (c * i))) + (k * ((i * y5) - (b * y4)))) + (y3 * t_3)) elif a <= 1.26e-191: tmp = t_4 elif a <= 1.3e-95: tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))) elif a <= 1.4e+66: tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0)))) elif a <= 2.05e+239: tmp = t_4 else: tmp = (y * a) * ((x * b) - (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(y0 * y5) - Float64(y1 * y4)) t_3 = Float64(Float64(c * y4) - Float64(a * y5)) t_4 = 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))))) tmp = 0.0 if (a <= -9.5e+202) tmp = Float64(y1 * Float64(Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y4 * t_1)) + Float64(i * Float64(Float64(x * j) - Float64(z * k))))); elseif (a <= -8.4e+99) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (a <= -3.35) tmp = Float64(y3 * Float64(Float64(y * t_3) + Float64(Float64(j * t_2) + Float64(z * Float64(Float64(a * y1) - Float64(c * y0)))))); elseif (a <= -3.2e-107) tmp = t_4; elseif (a <= -8.2e-243) tmp = Float64(y * Float64(Float64(Float64(x * Float64(Float64(a * b) - Float64(c * i))) + Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))) + Float64(y3 * t_3))); elseif (a <= 1.26e-191) tmp = t_4; elseif (a <= 1.3e-95) tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * t_1)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (a <= 1.4e+66) tmp = Float64(j * Float64(Float64(Float64(t * Float64(Float64(b * y4) - Float64(i * y5))) + Float64(y3 * t_2)) + Float64(x * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (a <= 2.05e+239) tmp = t_4; else tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (k * y2) - (j * y3); t_2 = (y0 * y5) - (y1 * y4); t_3 = (c * y4) - (a * y5); t_4 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); tmp = 0.0; if (a <= -9.5e+202) tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * t_1)) + (i * ((x * j) - (z * k)))); elseif (a <= -8.4e+99) tmp = b * (j * ((t * y4) - (x * y0))); elseif (a <= -3.35) tmp = y3 * ((y * t_3) + ((j * t_2) + (z * ((a * y1) - (c * y0))))); elseif (a <= -3.2e-107) tmp = t_4; elseif (a <= -8.2e-243) tmp = y * (((x * ((a * b) - (c * i))) + (k * ((i * y5) - (b * y4)))) + (y3 * t_3)); elseif (a <= 1.26e-191) tmp = t_4; elseif (a <= 1.3e-95) tmp = y4 * (((b * ((t * j) - (y * k))) + (y1 * t_1)) + (c * ((y * y3) - (t * y2)))); elseif (a <= 1.4e+66) tmp = j * (((t * ((b * y4) - (i * y5))) + (y3 * t_2)) + (x * ((i * y1) - (b * y0)))); elseif (a <= 2.05e+239) tmp = t_4; else tmp = (y * a) * ((x * b) - (y3 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y0 * y5), $MachinePrecision] - N[(y1 * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = 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[a, -9.5e+202], N[(y1 * N[(N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.4e+99], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.35], N[(y3 * N[(N[(y * t$95$3), $MachinePrecision] + N[(N[(j * t$95$2), $MachinePrecision] + N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.2e-107], t$95$4, If[LessEqual[a, -8.2e-243], N[(y * N[(N[(N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.26e-191], t$95$4, If[LessEqual[a, 1.3e-95], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+66], N[(j * N[(N[(N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e+239], t$95$4, N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := y0 \cdot y5 - y1 \cdot y4\\
t_3 := c \cdot y4 - a \cdot y5\\
t_4 := 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{if}\;a \leq -9.5 \cdot 10^{+202}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + y4 \cdot t_1\right) + i \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;a \leq -8.4 \cdot 10^{+99}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -3.35:\\
\;\;\;\;y3 \cdot \left(y \cdot t_3 + \left(j \cdot t_2 + z \cdot \left(a \cdot y1 - c \cdot y0\right)\right)\right)\\
\mathbf{elif}\;a \leq -3.2 \cdot 10^{-107}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;a \leq -8.2 \cdot 10^{-243}:\\
\;\;\;\;y \cdot \left(\left(x \cdot \left(a \cdot b - c \cdot i\right) + k \cdot \left(i \cdot y5 - b \cdot y4\right)\right) + y3 \cdot t_3\right)\\
\mathbf{elif}\;a \leq 1.26 \cdot 10^{-191}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{-95}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot t_1\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+66}:\\
\;\;\;\;j \cdot \left(\left(t \cdot \left(b \cdot y4 - i \cdot y5\right) + y3 \cdot t_2\right) + x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+239}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\end{array}
\end{array}
if a < -9.50000000000000059e202Initial program 12.5%
Taylor expanded in y1 around inf 66.7%
if -9.50000000000000059e202 < a < -8.40000000000000041e99Initial program 19.0%
Taylor expanded in j around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in b around inf 57.7%
if -8.40000000000000041e99 < a < -3.35000000000000009Initial program 19.2%
Taylor expanded in y3 around -inf 58.2%
if -3.35000000000000009 < a < -3.20000000000000013e-107 or -8.19999999999999962e-243 < a < 1.26e-191 or 1.4e66 < a < 2.0500000000000001e239Initial program 34.5%
Taylor expanded in y2 around inf 62.0%
if -3.20000000000000013e-107 < a < -8.19999999999999962e-243Initial program 22.3%
Taylor expanded in y1 around 0 22.7%
Taylor expanded in y around inf 61.3%
if 1.26e-191 < a < 1.3e-95Initial program 36.4%
Taylor expanded in y4 around inf 71.0%
if 1.3e-95 < a < 1.4e66Initial program 39.9%
Taylor expanded in j around inf 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
if 2.0500000000000001e239 < a Initial program 16.7%
Taylor expanded in y1 around 0 22.5%
Taylor expanded in a around inf 50.9%
*-commutative50.9%
mul-1-neg50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in y around inf 56.7%
associate-*r*61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
*-commutative61.5%
Simplified61.5%
Final simplification62.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* y1 (- (* i j) (* a y2)))))
(t_2 (* y (* x (- (* a b) (* c i)))))
(t_3 (* a (+ (* b (- (* x y) (* z t))) (* y5 (- (* t y2) (* y y3))))))
(t_4 (* y0 (* z (- (* b k) (* c y3))))))
(if (<= x -4e+202)
t_2
(if (<= x -8e+134)
t_1
(if (<= x -2.15e+86)
(* (* y y5) (- (* i k) (* a y3)))
(if (<= x -3.9e+52)
t_1
(if (<= x -2.6e-15)
t_4
(if (<= x -1.6e-78)
(* k (* y0 (- (* z b) (* y2 y5))))
(if (<= x -1.36e-151)
(* y (* k (- (* i y5) (* b y4))))
(if (<= x -2.2e-201)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= x -1.76e-273)
t_4
(if (<= x 5.6e-245)
(* j (* t (- (* b y4) (* i y5))))
(if (<= x 1.2e-176)
t_3
(if (<= x 3.3e-141)
(*
y4
(+
(* b (- (* t j) (* y k)))
(* c (- (* y y3) (* t y2)))))
(if (<= x 3.4e-106)
t_3
(if (<= x 54000000.0)
(* i (* y1 (- (* x j) (* z k))))
t_2))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y1 * ((i * j) - (a * y2)));
double t_2 = y * (x * ((a * b) - (c * i)));
double t_3 = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
double t_4 = y0 * (z * ((b * k) - (c * y3)));
double tmp;
if (x <= -4e+202) {
tmp = t_2;
} else if (x <= -8e+134) {
tmp = t_1;
} else if (x <= -2.15e+86) {
tmp = (y * y5) * ((i * k) - (a * y3));
} else if (x <= -3.9e+52) {
tmp = t_1;
} else if (x <= -2.6e-15) {
tmp = t_4;
} else if (x <= -1.6e-78) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (x <= -1.36e-151) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (x <= -2.2e-201) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (x <= -1.76e-273) {
tmp = t_4;
} else if (x <= 5.6e-245) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 1.2e-176) {
tmp = t_3;
} else if (x <= 3.3e-141) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 3.4e-106) {
tmp = t_3;
} else if (x <= 54000000.0) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = x * (y1 * ((i * j) - (a * y2)))
t_2 = y * (x * ((a * b) - (c * i)))
t_3 = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))))
t_4 = y0 * (z * ((b * k) - (c * y3)))
if (x <= (-4d+202)) then
tmp = t_2
else if (x <= (-8d+134)) then
tmp = t_1
else if (x <= (-2.15d+86)) then
tmp = (y * y5) * ((i * k) - (a * y3))
else if (x <= (-3.9d+52)) then
tmp = t_1
else if (x <= (-2.6d-15)) then
tmp = t_4
else if (x <= (-1.6d-78)) then
tmp = k * (y0 * ((z * b) - (y2 * y5)))
else if (x <= (-1.36d-151)) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (x <= (-2.2d-201)) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (x <= (-1.76d-273)) then
tmp = t_4
else if (x <= 5.6d-245) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (x <= 1.2d-176) then
tmp = t_3
else if (x <= 3.3d-141) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (x <= 3.4d-106) then
tmp = t_3
else if (x <= 54000000.0d0) then
tmp = i * (y1 * ((x * j) - (z * k)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (y1 * ((i * j) - (a * y2)));
double t_2 = y * (x * ((a * b) - (c * i)));
double t_3 = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3))));
double t_4 = y0 * (z * ((b * k) - (c * y3)));
double tmp;
if (x <= -4e+202) {
tmp = t_2;
} else if (x <= -8e+134) {
tmp = t_1;
} else if (x <= -2.15e+86) {
tmp = (y * y5) * ((i * k) - (a * y3));
} else if (x <= -3.9e+52) {
tmp = t_1;
} else if (x <= -2.6e-15) {
tmp = t_4;
} else if (x <= -1.6e-78) {
tmp = k * (y0 * ((z * b) - (y2 * y5)));
} else if (x <= -1.36e-151) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (x <= -2.2e-201) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (x <= -1.76e-273) {
tmp = t_4;
} else if (x <= 5.6e-245) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (x <= 1.2e-176) {
tmp = t_3;
} else if (x <= 3.3e-141) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (x <= 3.4e-106) {
tmp = t_3;
} else if (x <= 54000000.0) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (y1 * ((i * j) - (a * y2))) t_2 = y * (x * ((a * b) - (c * i))) t_3 = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))) t_4 = y0 * (z * ((b * k) - (c * y3))) tmp = 0 if x <= -4e+202: tmp = t_2 elif x <= -8e+134: tmp = t_1 elif x <= -2.15e+86: tmp = (y * y5) * ((i * k) - (a * y3)) elif x <= -3.9e+52: tmp = t_1 elif x <= -2.6e-15: tmp = t_4 elif x <= -1.6e-78: tmp = k * (y0 * ((z * b) - (y2 * y5))) elif x <= -1.36e-151: tmp = y * (k * ((i * y5) - (b * y4))) elif x <= -2.2e-201: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif x <= -1.76e-273: tmp = t_4 elif x <= 5.6e-245: tmp = j * (t * ((b * y4) - (i * y5))) elif x <= 1.2e-176: tmp = t_3 elif x <= 3.3e-141: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif x <= 3.4e-106: tmp = t_3 elif x <= 54000000.0: tmp = i * (y1 * ((x * j) - (z * k))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))) t_2 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) t_3 = Float64(a * Float64(Float64(b * Float64(Float64(x * y) - Float64(z * t))) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))) t_4 = Float64(y0 * Float64(z * Float64(Float64(b * k) - Float64(c * y3)))) tmp = 0.0 if (x <= -4e+202) tmp = t_2; elseif (x <= -8e+134) tmp = t_1; elseif (x <= -2.15e+86) tmp = Float64(Float64(y * y5) * Float64(Float64(i * k) - Float64(a * y3))); elseif (x <= -3.9e+52) tmp = t_1; elseif (x <= -2.6e-15) tmp = t_4; elseif (x <= -1.6e-78) tmp = Float64(k * Float64(y0 * Float64(Float64(z * b) - Float64(y2 * y5)))); elseif (x <= -1.36e-151) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (x <= -2.2e-201) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (x <= -1.76e-273) tmp = t_4; elseif (x <= 5.6e-245) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (x <= 1.2e-176) tmp = t_3; elseif (x <= 3.3e-141) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (x <= 3.4e-106) tmp = t_3; elseif (x <= 54000000.0) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (y1 * ((i * j) - (a * y2))); t_2 = y * (x * ((a * b) - (c * i))); t_3 = a * ((b * ((x * y) - (z * t))) + (y5 * ((t * y2) - (y * y3)))); t_4 = y0 * (z * ((b * k) - (c * y3))); tmp = 0.0; if (x <= -4e+202) tmp = t_2; elseif (x <= -8e+134) tmp = t_1; elseif (x <= -2.15e+86) tmp = (y * y5) * ((i * k) - (a * y3)); elseif (x <= -3.9e+52) tmp = t_1; elseif (x <= -2.6e-15) tmp = t_4; elseif (x <= -1.6e-78) tmp = k * (y0 * ((z * b) - (y2 * y5))); elseif (x <= -1.36e-151) tmp = y * (k * ((i * y5) - (b * y4))); elseif (x <= -2.2e-201) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (x <= -1.76e-273) tmp = t_4; elseif (x <= 5.6e-245) tmp = j * (t * ((b * y4) - (i * y5))); elseif (x <= 1.2e-176) tmp = t_3; elseif (x <= 3.3e-141) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (x <= 3.4e-106) tmp = t_3; elseif (x <= 54000000.0) tmp = i * (y1 * ((x * j) - (z * k))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y0 * N[(z * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+202], t$95$2, If[LessEqual[x, -8e+134], t$95$1, If[LessEqual[x, -2.15e+86], N[(N[(y * y5), $MachinePrecision] * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.9e+52], t$95$1, If[LessEqual[x, -2.6e-15], t$95$4, If[LessEqual[x, -1.6e-78], N[(k * N[(y0 * N[(N[(z * b), $MachinePrecision] - N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.36e-151], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.2e-201], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.76e-273], t$95$4, If[LessEqual[x, 5.6e-245], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e-176], t$95$3, If[LessEqual[x, 3.3e-141], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e-106], t$95$3, If[LessEqual[x, 54000000.0], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
t_2 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_3 := a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right) + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
t_4 := y0 \cdot \left(z \cdot \left(b \cdot k - c \cdot y3\right)\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+202}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8 \cdot 10^{+134}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{+86}:\\
\;\;\;\;\left(y \cdot y5\right) \cdot \left(i \cdot k - a \cdot y3\right)\\
\mathbf{elif}\;x \leq -3.9 \cdot 10^{+52}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.6 \cdot 10^{-15}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-78}:\\
\;\;\;\;k \cdot \left(y0 \cdot \left(z \cdot b - y2 \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq -1.36 \cdot 10^{-151}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-201}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;x \leq -1.76 \cdot 10^{-273}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{-245}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-176}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-141}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-106}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 54000000:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -3.9999999999999996e202 or 5.4e7 < x Initial program 21.2%
Taylor expanded in y1 around 0 18.8%
Taylor expanded in y around inf 39.9%
Taylor expanded in x around inf 57.3%
if -3.9999999999999996e202 < x < -7.99999999999999937e134 or -2.1500000000000001e86 < x < -3.9e52Initial program 28.0%
Taylor expanded in y1 around inf 52.6%
associate--l+52.6%
mul-1-neg52.6%
distribute-rgt-neg-in52.6%
*-commutative52.6%
*-commutative52.6%
fma-neg60.6%
fma-neg60.6%
*-commutative60.6%
distribute-rgt-neg-in60.6%
mul-1-neg60.6%
remove-double-neg60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in x around inf 61.3%
if -7.99999999999999937e134 < x < -2.1500000000000001e86Initial program 15.8%
Taylor expanded in y5 around inf 61.9%
distribute-lft-out--61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in y around -inf 54.5%
associate-*r*57.6%
*-commutative57.6%
*-commutative57.6%
*-commutative57.6%
Simplified57.6%
if -3.9e52 < x < -2.60000000000000004e-15 or -2.2e-201 < x < -1.75999999999999996e-273Initial program 26.3%
Taylor expanded in y0 around inf 57.9%
Taylor expanded in z around -inf 64.3%
mul-1-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
if -2.60000000000000004e-15 < x < -1.6e-78Initial program 33.3%
Taylor expanded in y0 around inf 61.7%
Taylor expanded in k around -inf 46.3%
if -1.6e-78 < x < -1.35999999999999994e-151Initial program 53.2%
Taylor expanded in y1 around 0 39.9%
Taylor expanded in y around inf 40.2%
Taylor expanded in k around inf 60.9%
mul-1-neg60.9%
cancel-sign-sub-inv60.9%
fma-udef60.9%
distribute-rgt-neg-in60.9%
fma-udef60.9%
cancel-sign-sub-inv60.9%
Simplified60.9%
if -1.35999999999999994e-151 < x < -2.2e-201Initial program 33.3%
Taylor expanded in j around inf 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in y0 around -inf 83.8%
+-commutative83.8%
mul-1-neg83.8%
sub-neg83.8%
*-commutative83.8%
Simplified83.8%
if -1.75999999999999996e-273 < x < 5.6000000000000003e-245Initial program 32.3%
Taylor expanded in j around inf 36.9%
+-commutative36.9%
mul-1-neg36.9%
unsub-neg36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in t around inf 49.6%
*-commutative49.6%
Simplified49.6%
if 5.6000000000000003e-245 < x < 1.20000000000000003e-176 or 3.29999999999999999e-141 < x < 3.39999999999999982e-106Initial program 31.0%
Taylor expanded in y1 around 0 20.8%
Taylor expanded in a around inf 72.9%
*-commutative72.9%
mul-1-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if 1.20000000000000003e-176 < x < 3.29999999999999999e-141Initial program 37.5%
Taylor expanded in y1 around 0 14.6%
Taylor expanded in y4 around inf 77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
if 3.39999999999999982e-106 < x < 5.4e7Initial program 26.2%
Taylor expanded in y1 around inf 52.8%
associate--l+52.8%
mul-1-neg52.8%
distribute-rgt-neg-in52.8%
*-commutative52.8%
*-commutative52.8%
fma-neg52.8%
fma-neg52.8%
*-commutative52.8%
distribute-rgt-neg-in52.8%
mul-1-neg52.8%
remove-double-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in i around inf 53.3%
Final simplification59.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))))
(if (<= k -4.9e+67)
(+ (* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))) (* i (* k (* y y5))))
(if (<= k -1.4e-179)
t_1
(if (<= k -2.8e-228)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= k 1.5e-305)
(* c (* z (- (* t i) (* y0 y3))))
(if (<= k 1.95e-187)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= k 5.8e-145)
t_1
(if (<= k 1.1e-141)
(* a (* (* x y) b))
(if (<= k 8.4e+36)
(*
x
(-
(+ (* c (* y0 y2)) (* y (- (* a b) (* c i))))
(* b (* j y0))))
(if (<= k 5.5e+94)
t_1
(if (<= k 2.3e+146)
(* i (* y1 (- (* x j) (* z k))))
(if (<= k 6.5e+243)
(*
i
(-
(* y5 (- (* y k) (* t j)))
(* c (- (* x y) (* z t)))))
(*
k
(+
(* b (* z y0))
(-
(* y (- (* i y5) (* b y4)))
(* y0 (* 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 t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (k <= -4.9e+67) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)));
} else if (k <= -1.4e-179) {
tmp = t_1;
} else if (k <= -2.8e-228) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 1.5e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 1.95e-187) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 5.8e-145) {
tmp = t_1;
} else if (k <= 1.1e-141) {
tmp = a * ((x * y) * b);
} else if (k <= 8.4e+36) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 5.5e+94) {
tmp = t_1;
} else if (k <= 2.3e+146) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (k <= 6.5e+243) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))));
} else {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (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) :: t_1
real(8) :: tmp
t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
if (k <= (-4.9d+67)) then
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)))
else if (k <= (-1.4d-179)) then
tmp = t_1
else if (k <= (-2.8d-228)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (k <= 1.5d-305) then
tmp = c * (z * ((t * i) - (y0 * y3)))
else if (k <= 1.95d-187) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (k <= 5.8d-145) then
tmp = t_1
else if (k <= 1.1d-141) then
tmp = a * ((x * y) * b)
else if (k <= 8.4d+36) then
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)))
else if (k <= 5.5d+94) then
tmp = t_1
else if (k <= 2.3d+146) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (k <= 6.5d+243) then
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))
else
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (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 t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (k <= -4.9e+67) {
tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5)));
} else if (k <= -1.4e-179) {
tmp = t_1;
} else if (k <= -2.8e-228) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 1.5e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 1.95e-187) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 5.8e-145) {
tmp = t_1;
} else if (k <= 1.1e-141) {
tmp = a * ((x * y) * b);
} else if (k <= 8.4e+36) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 5.5e+94) {
tmp = t_1;
} else if (k <= 2.3e+146) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (k <= 6.5e+243) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))));
} else {
tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if k <= -4.9e+67: tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5))) elif k <= -1.4e-179: tmp = t_1 elif k <= -2.8e-228: tmp = (y * a) * ((x * b) - (y3 * y5)) elif k <= 1.5e-305: tmp = c * (z * ((t * i) - (y0 * y3))) elif k <= 1.95e-187: tmp = x * (y1 * ((i * j) - (a * y2))) elif k <= 5.8e-145: tmp = t_1 elif k <= 1.1e-141: tmp = a * ((x * y) * b) elif k <= 8.4e+36: tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))) elif k <= 5.5e+94: tmp = t_1 elif k <= 2.3e+146: tmp = i * (y1 * ((x * j) - (z * k))) elif k <= 6.5e+243: tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))) else: tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * y5)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (k <= -4.9e+67) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(i * Float64(k * Float64(y * y5)))); elseif (k <= -1.4e-179) tmp = t_1; elseif (k <= -2.8e-228) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (k <= 1.5e-305) tmp = Float64(c * Float64(z * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (k <= 1.95e-187) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (k <= 5.8e-145) tmp = t_1; elseif (k <= 1.1e-141) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (k <= 8.4e+36) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * Float64(Float64(a * b) - Float64(c * i)))) - Float64(b * Float64(j * y0)))); elseif (k <= 5.5e+94) tmp = t_1; elseif (k <= 2.3e+146) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (k <= 6.5e+243) tmp = Float64(i * Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * Float64(Float64(x * y) - Float64(z * t))))); else tmp = Float64(k * Float64(Float64(b * Float64(z * y0)) + Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) - Float64(y0 * 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) t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (k <= -4.9e+67) tmp = (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) + (i * (k * (y * y5))); elseif (k <= -1.4e-179) tmp = t_1; elseif (k <= -2.8e-228) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (k <= 1.5e-305) tmp = c * (z * ((t * i) - (y0 * y3))); elseif (k <= 1.95e-187) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (k <= 5.8e-145) tmp = t_1; elseif (k <= 1.1e-141) tmp = a * ((x * y) * b); elseif (k <= 8.4e+36) tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))); elseif (k <= 5.5e+94) tmp = t_1; elseif (k <= 2.3e+146) tmp = i * (y1 * ((x * j) - (z * k))); elseif (k <= 6.5e+243) tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))); else tmp = k * ((b * (z * y0)) + ((y * ((i * y5) - (b * y4))) - (y0 * (y2 * 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[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.9e+67], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.4e-179], t$95$1, If[LessEqual[k, -2.8e-228], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.5e-305], N[(c * N[(z * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.95e-187], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.8e-145], t$95$1, If[LessEqual[k, 1.1e-141], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.4e+36], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 5.5e+94], t$95$1, If[LessEqual[k, 2.3e+146], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.5e+243], N[(i * N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(N[(b * N[(z * y0), $MachinePrecision]), $MachinePrecision] + N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;k \leq -4.9 \cdot 10^{+67}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq -1.4 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -2.8 \cdot 10^{-228}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(z \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 1.95 \cdot 10^{-187}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 5.8 \cdot 10^{-145}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 1.1 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;k \leq 8.4 \cdot 10^{+36}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot \left(a \cdot b - c \cdot i\right)\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 5.5 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 2.3 \cdot 10^{+146}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 6.5 \cdot 10^{+243}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(b \cdot \left(z \cdot y0\right) + \left(y \cdot \left(i \cdot y5 - b \cdot y4\right) - y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\end{array}
\end{array}
if k < -4.8999999999999999e67Initial program 28.9%
Taylor expanded in y5 around inf 47.0%
distribute-lft-out--47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in k around inf 49.5%
*-commutative49.5%
Simplified49.5%
if -4.8999999999999999e67 < k < -1.4e-179 or 1.9499999999999999e-187 < k < 5.79999999999999968e-145 or 8.40000000000000018e36 < k < 5.4999999999999997e94Initial program 33.0%
Taylor expanded in y1 around 0 28.7%
Taylor expanded in y4 around inf 60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
if -1.4e-179 < k < -2.8000000000000003e-228Initial program 12.5%
Taylor expanded in y1 around 0 18.8%
Taylor expanded in a around inf 44.1%
*-commutative44.1%
mul-1-neg44.1%
*-commutative44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in y around inf 50.6%
associate-*r*56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
if -2.8000000000000003e-228 < k < 1.5000000000000001e-305Initial program 28.1%
Taylor expanded in c around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in z around -inf 61.6%
mul-1-neg61.6%
*-commutative61.6%
Simplified61.6%
if 1.5000000000000001e-305 < k < 1.9499999999999999e-187Initial program 27.9%
Taylor expanded in y1 around inf 49.2%
associate--l+49.2%
mul-1-neg49.2%
distribute-rgt-neg-in49.2%
*-commutative49.2%
*-commutative49.2%
fma-neg49.2%
fma-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
mul-1-neg49.2%
remove-double-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in x around inf 45.9%
if 5.79999999999999968e-145 < k < 1.10000000000000005e-141Initial program 0.0%
Taylor expanded in y1 around 0 0.0%
Taylor expanded in a around inf 0.0%
*-commutative0.0%
mul-1-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in x around inf 100.0%
if 1.10000000000000005e-141 < k < 8.40000000000000018e36Initial program 33.3%
Taylor expanded in y1 around 0 27.9%
Taylor expanded in x around inf 50.4%
if 5.4999999999999997e94 < k < 2.3e146Initial program 14.3%
Taylor expanded in y1 around inf 57.7%
associate--l+57.7%
mul-1-neg57.7%
distribute-rgt-neg-in57.7%
*-commutative57.7%
*-commutative57.7%
fma-neg72.0%
fma-neg72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
mul-1-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 57.9%
if 2.3e146 < k < 6.5000000000000001e243Initial program 29.4%
Taylor expanded in y1 around 0 25.3%
Taylor expanded in i around -inf 71.3%
if 6.5000000000000001e243 < k Initial program 14.3%
Taylor expanded in y1 around 0 21.4%
Taylor expanded in k around -inf 64.3%
Final simplification56.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2))))))
(t_2 (- (* y1 y4) (* y0 y5))))
(if (<= k -9e+63)
(+ (* (- (* k y2) (* j y3)) t_2) (* i (* k (* y y5))))
(if (<= k -5.8e-186)
t_1
(if (<= k -3.4e-229)
(* (* y a) (- (* x b) (* y3 y5)))
(if (<= k 2.1e-305)
(* c (* z (- (* t i) (* y0 y3))))
(if (<= k 2.9e-189)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= k 2.6e-145)
t_1
(if (<= k 8.2e-141)
(* a (* (* x y) b))
(if (<= k 1.35e+37)
(*
x
(-
(+ (* c (* y0 y2)) (* y (- (* a b) (* c i))))
(* b (* j y0))))
(if (<= k 3.55e+93)
t_1
(if (<= k 4.15e+145)
(* i (* y1 (- (* x j) (* z k))))
(if (<= k 7e+285)
(*
i
(-
(* y5 (- (* y k) (* t j)))
(* c (- (* x y) (* z t)))))
(* k (* y2 t_2)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
double t_2 = (y1 * y4) - (y0 * y5);
double tmp;
if (k <= -9e+63) {
tmp = (((k * y2) - (j * y3)) * t_2) + (i * (k * (y * y5)));
} else if (k <= -5.8e-186) {
tmp = t_1;
} else if (k <= -3.4e-229) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 2.1e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 2.9e-189) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 2.6e-145) {
tmp = t_1;
} else if (k <= 8.2e-141) {
tmp = a * ((x * y) * b);
} else if (k <= 1.35e+37) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 3.55e+93) {
tmp = t_1;
} else if (k <= 4.15e+145) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (k <= 7e+285) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))));
} else {
tmp = k * (y2 * t_2);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
t_2 = (y1 * y4) - (y0 * y5)
if (k <= (-9d+63)) then
tmp = (((k * y2) - (j * y3)) * t_2) + (i * (k * (y * y5)))
else if (k <= (-5.8d-186)) then
tmp = t_1
else if (k <= (-3.4d-229)) then
tmp = (y * a) * ((x * b) - (y3 * y5))
else if (k <= 2.1d-305) then
tmp = c * (z * ((t * i) - (y0 * y3)))
else if (k <= 2.9d-189) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (k <= 2.6d-145) then
tmp = t_1
else if (k <= 8.2d-141) then
tmp = a * ((x * y) * b)
else if (k <= 1.35d+37) then
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)))
else if (k <= 3.55d+93) then
tmp = t_1
else if (k <= 4.15d+145) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (k <= 7d+285) then
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))))
else
tmp = k * (y2 * t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
double t_2 = (y1 * y4) - (y0 * y5);
double tmp;
if (k <= -9e+63) {
tmp = (((k * y2) - (j * y3)) * t_2) + (i * (k * (y * y5)));
} else if (k <= -5.8e-186) {
tmp = t_1;
} else if (k <= -3.4e-229) {
tmp = (y * a) * ((x * b) - (y3 * y5));
} else if (k <= 2.1e-305) {
tmp = c * (z * ((t * i) - (y0 * y3)));
} else if (k <= 2.9e-189) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (k <= 2.6e-145) {
tmp = t_1;
} else if (k <= 8.2e-141) {
tmp = a * ((x * y) * b);
} else if (k <= 1.35e+37) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (k <= 3.55e+93) {
tmp = t_1;
} else if (k <= 4.15e+145) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (k <= 7e+285) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t))));
} else {
tmp = k * (y2 * t_2);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) t_2 = (y1 * y4) - (y0 * y5) tmp = 0 if k <= -9e+63: tmp = (((k * y2) - (j * y3)) * t_2) + (i * (k * (y * y5))) elif k <= -5.8e-186: tmp = t_1 elif k <= -3.4e-229: tmp = (y * a) * ((x * b) - (y3 * y5)) elif k <= 2.1e-305: tmp = c * (z * ((t * i) - (y0 * y3))) elif k <= 2.9e-189: tmp = x * (y1 * ((i * j) - (a * y2))) elif k <= 2.6e-145: tmp = t_1 elif k <= 8.2e-141: tmp = a * ((x * y) * b) elif k <= 1.35e+37: tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))) elif k <= 3.55e+93: tmp = t_1 elif k <= 4.15e+145: tmp = i * (y1 * ((x * j) - (z * k))) elif k <= 7e+285: tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))) else: tmp = k * (y2 * t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (k <= -9e+63) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_2) + Float64(i * Float64(k * Float64(y * y5)))); elseif (k <= -5.8e-186) tmp = t_1; elseif (k <= -3.4e-229) tmp = Float64(Float64(y * a) * Float64(Float64(x * b) - Float64(y3 * y5))); elseif (k <= 2.1e-305) tmp = Float64(c * Float64(z * Float64(Float64(t * i) - Float64(y0 * y3)))); elseif (k <= 2.9e-189) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (k <= 2.6e-145) tmp = t_1; elseif (k <= 8.2e-141) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (k <= 1.35e+37) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * Float64(Float64(a * b) - Float64(c * i)))) - Float64(b * Float64(j * y0)))); elseif (k <= 3.55e+93) tmp = t_1; elseif (k <= 4.15e+145) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (k <= 7e+285) tmp = Float64(i * Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * Float64(Float64(x * y) - Float64(z * t))))); else tmp = Float64(k * Float64(y2 * t_2)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); t_2 = (y1 * y4) - (y0 * y5); tmp = 0.0; if (k <= -9e+63) tmp = (((k * y2) - (j * y3)) * t_2) + (i * (k * (y * y5))); elseif (k <= -5.8e-186) tmp = t_1; elseif (k <= -3.4e-229) tmp = (y * a) * ((x * b) - (y3 * y5)); elseif (k <= 2.1e-305) tmp = c * (z * ((t * i) - (y0 * y3))); elseif (k <= 2.9e-189) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (k <= 2.6e-145) tmp = t_1; elseif (k <= 8.2e-141) tmp = a * ((x * y) * b); elseif (k <= 1.35e+37) tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))); elseif (k <= 3.55e+93) tmp = t_1; elseif (k <= 4.15e+145) tmp = i * (y1 * ((x * j) - (z * k))); elseif (k <= 7e+285) tmp = i * ((y5 * ((y * k) - (t * j))) - (c * ((x * y) - (z * t)))); else tmp = k * (y2 * t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -9e+63], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] + N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -5.8e-186], t$95$1, If[LessEqual[k, -3.4e-229], N[(N[(y * a), $MachinePrecision] * N[(N[(x * b), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.1e-305], N[(c * N[(z * N[(N[(t * i), $MachinePrecision] - N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.9e-189], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2.6e-145], t$95$1, If[LessEqual[k, 8.2e-141], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.35e+37], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.55e+93], t$95$1, If[LessEqual[k, 4.15e+145], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 7e+285], N[(i * N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(k * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;k \leq -9 \cdot 10^{+63}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t_2 + i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{elif}\;k \leq -5.8 \cdot 10^{-186}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq -3.4 \cdot 10^{-229}:\\
\;\;\;\;\left(y \cdot a\right) \cdot \left(x \cdot b - y3 \cdot y5\right)\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(z \cdot \left(t \cdot i - y0 \cdot y3\right)\right)\\
\mathbf{elif}\;k \leq 2.9 \cdot 10^{-189}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq 2.6 \cdot 10^{-145}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 8.2 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;k \leq 1.35 \cdot 10^{+37}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot \left(a \cdot b - c \cdot i\right)\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 3.55 \cdot 10^{+93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 4.15 \cdot 10^{+145}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;k \leq 7 \cdot 10^{+285}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;k \cdot \left(y2 \cdot t_2\right)\\
\end{array}
\end{array}
if k < -9.00000000000000034e63Initial program 28.9%
Taylor expanded in y5 around inf 47.0%
distribute-lft-out--47.0%
*-commutative47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in k around inf 49.5%
*-commutative49.5%
Simplified49.5%
if -9.00000000000000034e63 < k < -5.80000000000000038e-186 or 2.9e-189 < k < 2.6e-145 or 1.34999999999999993e37 < k < 3.5500000000000002e93Initial program 33.0%
Taylor expanded in y1 around 0 28.7%
Taylor expanded in y4 around inf 60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
if -5.80000000000000038e-186 < k < -3.3999999999999999e-229Initial program 12.5%
Taylor expanded in y1 around 0 18.8%
Taylor expanded in a around inf 44.1%
*-commutative44.1%
mul-1-neg44.1%
*-commutative44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in y around inf 50.6%
associate-*r*56.5%
+-commutative56.5%
mul-1-neg56.5%
unsub-neg56.5%
*-commutative56.5%
Simplified56.5%
if -3.3999999999999999e-229 < k < 2.1e-305Initial program 28.1%
Taylor expanded in c around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in z around -inf 61.6%
mul-1-neg61.6%
*-commutative61.6%
Simplified61.6%
if 2.1e-305 < k < 2.9e-189Initial program 27.9%
Taylor expanded in y1 around inf 49.2%
associate--l+49.2%
mul-1-neg49.2%
distribute-rgt-neg-in49.2%
*-commutative49.2%
*-commutative49.2%
fma-neg49.2%
fma-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
mul-1-neg49.2%
remove-double-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in x around inf 45.9%
if 2.6e-145 < k < 8.20000000000000005e-141Initial program 0.0%
Taylor expanded in y1 around 0 0.0%
Taylor expanded in a around inf 0.0%
*-commutative0.0%
mul-1-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in x around inf 100.0%
if 8.20000000000000005e-141 < k < 1.34999999999999993e37Initial program 33.3%
Taylor expanded in y1 around 0 27.9%
Taylor expanded in x around inf 50.4%
if 3.5500000000000002e93 < k < 4.1500000000000002e145Initial program 14.3%
Taylor expanded in y1 around inf 57.7%
associate--l+57.7%
mul-1-neg57.7%
distribute-rgt-neg-in57.7%
*-commutative57.7%
*-commutative57.7%
fma-neg72.0%
fma-neg72.0%
*-commutative72.0%
distribute-rgt-neg-in72.0%
mul-1-neg72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 57.9%
if 4.1500000000000002e145 < k < 6.9999999999999996e285Initial program 24.4%
Taylor expanded in y1 around 0 21.4%
Taylor expanded in i around -inf 64.0%
if 6.9999999999999996e285 < k Initial program 20.0%
Taylor expanded in c around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
*-commutative60.0%
*-commutative60.0%
*-commutative60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in k around inf 81.5%
*-commutative81.5%
Simplified81.5%
Final simplification56.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t))))
(if (<= y3 -1.15e+84)
(* y1 (* y3 (- (* z a) (* j y4))))
(if (<= y3 -0.55)
(* j (* i (- (* x y1) (* t y5))))
(if (<= y3 -2.45e-68)
(* a (+ (* b t_1) (* y5 (- (* t y2) (* y y3)))))
(if (<= y3 -1.15e-87)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 -9.5e-208)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= y3 1.1e-220)
(*
x
(-
(+ (* c (* y0 y2)) (* y (- (* a b) (* c i))))
(* b (* j y0))))
(if (<= y3 1.05e-6)
(*
y4
(+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= y3 4.8e+38)
(* i (- (* y5 (- (* y k) (* t j))) (* c t_1)))
(if (<= y3 1.15e+49)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y3 2.9e+186)
(* j (* y0 (- (* y3 y5) (* x b))))
(* j (* (* y3 y4) (- 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 t_1 = (x * y) - (z * t);
double tmp;
if (y3 <= -1.15e+84) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -0.55) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= -2.45e-68) {
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= -1.15e-87) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= -9.5e-208) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 1.1e-220) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (y3 <= 1.05e-6) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 4.8e+38) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1));
} else if (y3 <= 1.15e+49) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 2.9e+186) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -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) :: t_1
real(8) :: tmp
t_1 = (x * y) - (z * t)
if (y3 <= (-1.15d+84)) then
tmp = y1 * (y3 * ((z * a) - (j * y4)))
else if (y3 <= (-0.55d0)) then
tmp = j * (i * ((x * y1) - (t * y5)))
else if (y3 <= (-2.45d-68)) then
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))))
else if (y3 <= (-1.15d-87)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= (-9.5d-208)) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (y3 <= 1.1d-220) then
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)))
else if (y3 <= 1.05d-6) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (y3 <= 4.8d+38) then
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1))
else if (y3 <= 1.15d+49) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y3 <= 2.9d+186) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = j * ((y3 * y4) * -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 t_1 = (x * y) - (z * t);
double tmp;
if (y3 <= -1.15e+84) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -0.55) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= -2.45e-68) {
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= -1.15e-87) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= -9.5e-208) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 1.1e-220) {
tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0)));
} else if (y3 <= 1.05e-6) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 4.8e+38) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1));
} else if (y3 <= 1.15e+49) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 2.9e+186) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) tmp = 0 if y3 <= -1.15e+84: tmp = y1 * (y3 * ((z * a) - (j * y4))) elif y3 <= -0.55: tmp = j * (i * ((x * y1) - (t * y5))) elif y3 <= -2.45e-68: tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3)))) elif y3 <= -1.15e-87: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= -9.5e-208: tmp = x * (y1 * ((i * j) - (a * y2))) elif y3 <= 1.1e-220: tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))) elif y3 <= 1.05e-6: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif y3 <= 4.8e+38: tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1)) elif y3 <= 1.15e+49: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y3 <= 2.9e+186: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = j * ((y3 * y4) * -y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y3 <= -1.15e+84) tmp = Float64(y1 * Float64(y3 * Float64(Float64(z * a) - Float64(j * y4)))); elseif (y3 <= -0.55) tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y3 <= -2.45e-68) tmp = Float64(a * Float64(Float64(b * t_1) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= -1.15e-87) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= -9.5e-208) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (y3 <= 1.1e-220) tmp = Float64(x * Float64(Float64(Float64(c * Float64(y0 * y2)) + Float64(y * Float64(Float64(a * b) - Float64(c * i)))) - Float64(b * Float64(j * y0)))); elseif (y3 <= 1.05e-6) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y3 <= 4.8e+38) tmp = Float64(i * Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * t_1))); elseif (y3 <= 1.15e+49) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y3 <= 2.9e+186) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(j * Float64(Float64(y3 * y4) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); tmp = 0.0; if (y3 <= -1.15e+84) tmp = y1 * (y3 * ((z * a) - (j * y4))); elseif (y3 <= -0.55) tmp = j * (i * ((x * y1) - (t * y5))); elseif (y3 <= -2.45e-68) tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3)))); elseif (y3 <= -1.15e-87) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= -9.5e-208) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (y3 <= 1.1e-220) tmp = x * (((c * (y0 * y2)) + (y * ((a * b) - (c * i)))) - (b * (j * y0))); elseif (y3 <= 1.05e-6) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (y3 <= 4.8e+38) tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1)); elseif (y3 <= 1.15e+49) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y3 <= 2.9e+186) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = j * ((y3 * y4) * -y1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.15e+84], N[(y1 * N[(y3 * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -0.55], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.45e-68], N[(a * N[(N[(b * t$95$1), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.15e-87], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -9.5e-208], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.1e-220], N[(x * N[(N[(N[(c * N[(y0 * y2), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.05e-6], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+38], N[(i * N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.15e+49], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.9e+186], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(y3 * y4), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
\mathbf{if}\;y3 \leq -1.15 \cdot 10^{+84}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -0.55:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -2.45 \cdot 10^{-68}:\\
\;\;\;\;a \cdot \left(b \cdot t_1 + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq -1.15 \cdot 10^{-87}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq -9.5 \cdot 10^{-208}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 1.1 \cdot 10^{-220}:\\
\;\;\;\;x \cdot \left(\left(c \cdot \left(y0 \cdot y2\right) + y \cdot \left(a \cdot b - c \cdot i\right)\right) - b \cdot \left(j \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 1.05 \cdot 10^{-6}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+38}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot t_1\right)\\
\mathbf{elif}\;y3 \leq 1.15 \cdot 10^{+49}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 2.9 \cdot 10^{+186}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot y4\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if y3 < -1.1499999999999999e84Initial program 16.0%
Taylor expanded in y1 around inf 44.0%
associate--l+44.0%
mul-1-neg44.0%
distribute-rgt-neg-in44.0%
*-commutative44.0%
*-commutative44.0%
fma-neg46.3%
fma-neg46.3%
*-commutative46.3%
distribute-rgt-neg-in46.3%
mul-1-neg46.3%
remove-double-neg46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y3 around inf 53.8%
if -1.1499999999999999e84 < y3 < -0.55000000000000004Initial program 53.3%
Taylor expanded in j around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in i around -inf 65.4%
mul-1-neg65.4%
*-commutative65.4%
Simplified65.4%
if -0.55000000000000004 < y3 < -2.44999999999999988e-68Initial program 24.8%
Taylor expanded in y1 around 0 19.1%
Taylor expanded in a around inf 50.9%
*-commutative50.9%
mul-1-neg50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -2.44999999999999988e-68 < y3 < -1.1500000000000001e-87Initial program 16.7%
Taylor expanded in j around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in b around inf 83.4%
if -1.1500000000000001e-87 < y3 < -9.5000000000000001e-208Initial program 31.8%
Taylor expanded in y1 around inf 59.6%
associate--l+59.6%
mul-1-neg59.6%
distribute-rgt-neg-in59.6%
*-commutative59.6%
*-commutative59.6%
fma-neg59.6%
fma-neg59.6%
*-commutative59.6%
distribute-rgt-neg-in59.6%
mul-1-neg59.6%
remove-double-neg59.6%
*-commutative59.6%
Simplified59.6%
Taylor expanded in x around inf 59.9%
if -9.5000000000000001e-208 < y3 < 1.09999999999999993e-220Initial program 45.2%
Taylor expanded in y1 around 0 35.0%
Taylor expanded in x around inf 51.0%
if 1.09999999999999993e-220 < y3 < 1.0499999999999999e-6Initial program 26.9%
Taylor expanded in y1 around 0 35.5%
Taylor expanded in y4 around inf 48.7%
*-commutative48.7%
*-commutative48.7%
Simplified48.7%
if 1.0499999999999999e-6 < y3 < 4.80000000000000035e38Initial program 33.2%
Taylor expanded in y1 around 0 10.9%
Taylor expanded in i around -inf 67.3%
if 4.80000000000000035e38 < y3 < 1.15000000000000001e49Initial program 24.6%
Taylor expanded in y1 around inf 50.0%
associate--l+50.0%
mul-1-neg50.0%
distribute-rgt-neg-in50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
fma-neg50.0%
*-commutative50.0%
distribute-rgt-neg-in50.0%
mul-1-neg50.0%
remove-double-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y4 around inf 75.0%
mul-1-neg75.0%
+-commutative75.0%
sub-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if 1.15000000000000001e49 < y3 < 2.9e186Initial program 27.6%
Taylor expanded in j around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y0 around -inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
*-commutative52.3%
Simplified52.3%
if 2.9e186 < y3 Initial program 8.0%
Taylor expanded in j around inf 36.3%
+-commutative36.3%
mul-1-neg36.3%
unsub-neg36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y4 around inf 52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
*-commutative52.8%
distribute-rgt-neg-in52.8%
*-commutative52.8%
Simplified52.8%
Final simplification54.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t))))
(if (<= y3 -7.8e+81)
(* y1 (* y3 (- (* z a) (* j y4))))
(if (<= y3 -0.6)
(* j (* i (- (* x y1) (* t y5))))
(if (<= y3 -1e-67)
(* a (+ (* b t_1) (* y5 (- (* t y2) (* y y3)))))
(if (<= y3 -3.6e-87)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 -1.7e-298)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= y3 2.3e-8)
(* y4 (+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= y3 2.3e+38)
(* i (- (* y5 (- (* y k) (* t j))) (* c t_1)))
(if (<= y3 1.35e+49)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y3 5.6e+191)
(* j (* y0 (- (* y3 y5) (* x b))))
(* j (* (* y3 y4) (- 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 t_1 = (x * y) - (z * t);
double tmp;
if (y3 <= -7.8e+81) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -0.6) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= -1e-67) {
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= -3.6e-87) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= -1.7e-298) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 2.3e-8) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 2.3e+38) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1));
} else if (y3 <= 1.35e+49) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 5.6e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -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) :: t_1
real(8) :: tmp
t_1 = (x * y) - (z * t)
if (y3 <= (-7.8d+81)) then
tmp = y1 * (y3 * ((z * a) - (j * y4)))
else if (y3 <= (-0.6d0)) then
tmp = j * (i * ((x * y1) - (t * y5)))
else if (y3 <= (-1d-67)) then
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))))
else if (y3 <= (-3.6d-87)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= (-1.7d-298)) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (y3 <= 2.3d-8) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (y3 <= 2.3d+38) then
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1))
else if (y3 <= 1.35d+49) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y3 <= 5.6d+191) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = j * ((y3 * y4) * -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 t_1 = (x * y) - (z * t);
double tmp;
if (y3 <= -7.8e+81) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -0.6) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= -1e-67) {
tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3))));
} else if (y3 <= -3.6e-87) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= -1.7e-298) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 2.3e-8) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 2.3e+38) {
tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1));
} else if (y3 <= 1.35e+49) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 5.6e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) tmp = 0 if y3 <= -7.8e+81: tmp = y1 * (y3 * ((z * a) - (j * y4))) elif y3 <= -0.6: tmp = j * (i * ((x * y1) - (t * y5))) elif y3 <= -1e-67: tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3)))) elif y3 <= -3.6e-87: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= -1.7e-298: tmp = x * (y1 * ((i * j) - (a * y2))) elif y3 <= 2.3e-8: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif y3 <= 2.3e+38: tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1)) elif y3 <= 1.35e+49: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y3 <= 5.6e+191: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = j * ((y3 * y4) * -y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) tmp = 0.0 if (y3 <= -7.8e+81) tmp = Float64(y1 * Float64(y3 * Float64(Float64(z * a) - Float64(j * y4)))); elseif (y3 <= -0.6) tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y3 <= -1e-67) tmp = Float64(a * Float64(Float64(b * t_1) + Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= -3.6e-87) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= -1.7e-298) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (y3 <= 2.3e-8) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y3 <= 2.3e+38) tmp = Float64(i * Float64(Float64(y5 * Float64(Float64(y * k) - Float64(t * j))) - Float64(c * t_1))); elseif (y3 <= 1.35e+49) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y3 <= 5.6e+191) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(j * Float64(Float64(y3 * y4) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); tmp = 0.0; if (y3 <= -7.8e+81) tmp = y1 * (y3 * ((z * a) - (j * y4))); elseif (y3 <= -0.6) tmp = j * (i * ((x * y1) - (t * y5))); elseif (y3 <= -1e-67) tmp = a * ((b * t_1) + (y5 * ((t * y2) - (y * y3)))); elseif (y3 <= -3.6e-87) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= -1.7e-298) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (y3 <= 2.3e-8) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (y3 <= 2.3e+38) tmp = i * ((y5 * ((y * k) - (t * j))) - (c * t_1)); elseif (y3 <= 1.35e+49) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y3 <= 5.6e+191) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = j * ((y3 * y4) * -y1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -7.8e+81], N[(y1 * N[(y3 * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -0.6], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1e-67], N[(a * N[(N[(b * t$95$1), $MachinePrecision] + N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.6e-87], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.7e-298], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e-8], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.3e+38], N[(i * N[(N[(y5 * N[(N[(y * k), $MachinePrecision] - N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.35e+49], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.6e+191], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(y3 * y4), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
\mathbf{if}\;y3 \leq -7.8 \cdot 10^{+81}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -0.6:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -1 \cdot 10^{-67}:\\
\;\;\;\;a \cdot \left(b \cdot t_1 + y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq -3.6 \cdot 10^{-87}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq -1.7 \cdot 10^{-298}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{-8}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 2.3 \cdot 10^{+38}:\\
\;\;\;\;i \cdot \left(y5 \cdot \left(y \cdot k - t \cdot j\right) - c \cdot t_1\right)\\
\mathbf{elif}\;y3 \leq 1.35 \cdot 10^{+49}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 5.6 \cdot 10^{+191}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot y4\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if y3 < -7.8000000000000002e81Initial program 16.0%
Taylor expanded in y1 around inf 44.0%
associate--l+44.0%
mul-1-neg44.0%
distribute-rgt-neg-in44.0%
*-commutative44.0%
*-commutative44.0%
fma-neg46.3%
fma-neg46.3%
*-commutative46.3%
distribute-rgt-neg-in46.3%
mul-1-neg46.3%
remove-double-neg46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y3 around inf 53.8%
if -7.8000000000000002e81 < y3 < -0.599999999999999978Initial program 53.3%
Taylor expanded in j around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in i around -inf 65.4%
mul-1-neg65.4%
*-commutative65.4%
Simplified65.4%
if -0.599999999999999978 < y3 < -9.99999999999999943e-68Initial program 24.8%
Taylor expanded in y1 around 0 19.1%
Taylor expanded in a around inf 50.9%
*-commutative50.9%
mul-1-neg50.9%
*-commutative50.9%
*-commutative50.9%
Simplified50.9%
if -9.99999999999999943e-68 < y3 < -3.59999999999999993e-87Initial program 16.7%
Taylor expanded in j around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in b around inf 83.4%
if -3.59999999999999993e-87 < y3 < -1.7e-298Initial program 40.0%
Taylor expanded in y1 around inf 48.2%
associate--l+48.2%
mul-1-neg48.2%
distribute-rgt-neg-in48.2%
*-commutative48.2%
*-commutative48.2%
fma-neg48.2%
fma-neg48.2%
*-commutative48.2%
distribute-rgt-neg-in48.2%
mul-1-neg48.2%
remove-double-neg48.2%
*-commutative48.2%
Simplified48.2%
Taylor expanded in x around inf 48.4%
if -1.7e-298 < y3 < 2.3000000000000001e-8Initial program 31.4%
Taylor expanded in y1 around 0 34.3%
Taylor expanded in y4 around inf 46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
if 2.3000000000000001e-8 < y3 < 2.3000000000000001e38Initial program 33.2%
Taylor expanded in y1 around 0 10.9%
Taylor expanded in i around -inf 67.3%
if 2.3000000000000001e38 < y3 < 1.35000000000000005e49Initial program 24.6%
Taylor expanded in y1 around inf 50.0%
associate--l+50.0%
mul-1-neg50.0%
distribute-rgt-neg-in50.0%
*-commutative50.0%
*-commutative50.0%
fma-neg50.0%
fma-neg50.0%
*-commutative50.0%
distribute-rgt-neg-in50.0%
mul-1-neg50.0%
remove-double-neg50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y4 around inf 75.0%
mul-1-neg75.0%
+-commutative75.0%
sub-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if 1.35000000000000005e49 < y3 < 5.5999999999999998e191Initial program 27.6%
Taylor expanded in j around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y0 around -inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
*-commutative52.3%
Simplified52.3%
if 5.5999999999999998e191 < y3 Initial program 8.0%
Taylor expanded in j around inf 36.3%
+-commutative36.3%
mul-1-neg36.3%
unsub-neg36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y4 around inf 52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
*-commutative52.8%
distribute-rgt-neg-in52.8%
*-commutative52.8%
Simplified52.8%
Final simplification52.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.5e+82)
(* y1 (* y3 (- (* z a) (* j y4))))
(if (<= y3 -2.5e-12)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y3 -2.05e-296)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= y3 5.8e-81)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 1.6e+41)
(* y (* k (- (* i y5) (* b y4))))
(if (<= y3 1e+49)
(* y4 (+ (* b (- (* t j) (* y k))) (* c (- (* y y3) (* t y2)))))
(if (<= y3 2.46e+191)
(* j (* y0 (- (* y3 y5) (* x b))))
(if (<= y3 4.8e+239)
(* j (* y4 (- (* t b) (* y1 y3))))
(* y (* y3 (- (* c y4) (* a 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 (y3 <= -2.5e+82) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -2.5e-12) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -2.05e-296) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 5.8e-81) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.6e+41) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1e+49) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 2.46e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y3 <= 4.8e+239) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else {
tmp = y * (y3 * ((c * y4) - (a * 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 (y3 <= (-2.5d+82)) then
tmp = y1 * (y3 * ((z * a) - (j * y4)))
else if (y3 <= (-2.5d-12)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y3 <= (-2.05d-296)) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (y3 <= 5.8d-81) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 1.6d+41) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (y3 <= 1d+49) then
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))))
else if (y3 <= 2.46d+191) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else if (y3 <= 4.8d+239) then
tmp = j * (y4 * ((t * b) - (y1 * y3)))
else
tmp = y * (y3 * ((c * y4) - (a * 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 (y3 <= -2.5e+82) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -2.5e-12) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -2.05e-296) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 5.8e-81) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.6e+41) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1e+49) {
tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2))));
} else if (y3 <= 2.46e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else if (y3 <= 4.8e+239) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else {
tmp = y * (y3 * ((c * y4) - (a * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -2.5e+82: tmp = y1 * (y3 * ((z * a) - (j * y4))) elif y3 <= -2.5e-12: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y3 <= -2.05e-296: tmp = x * (y1 * ((i * j) - (a * y2))) elif y3 <= 5.8e-81: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 1.6e+41: tmp = y * (k * ((i * y5) - (b * y4))) elif y3 <= 1e+49: tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))) elif y3 <= 2.46e+191: tmp = j * (y0 * ((y3 * y5) - (x * b))) elif y3 <= 4.8e+239: tmp = j * (y4 * ((t * b) - (y1 * y3))) else: tmp = y * (y3 * ((c * y4) - (a * 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 (y3 <= -2.5e+82) tmp = Float64(y1 * Float64(y3 * Float64(Float64(z * a) - Float64(j * y4)))); elseif (y3 <= -2.5e-12) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y3 <= -2.05e-296) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (y3 <= 5.8e-81) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 1.6e+41) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 1e+49) tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (y3 <= 2.46e+191) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); elseif (y3 <= 4.8e+239) tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); else tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * 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 (y3 <= -2.5e+82) tmp = y1 * (y3 * ((z * a) - (j * y4))); elseif (y3 <= -2.5e-12) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y3 <= -2.05e-296) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (y3 <= 5.8e-81) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 1.6e+41) tmp = y * (k * ((i * y5) - (b * y4))); elseif (y3 <= 1e+49) tmp = y4 * ((b * ((t * j) - (y * k))) + (c * ((y * y3) - (t * y2)))); elseif (y3 <= 2.46e+191) tmp = j * (y0 * ((y3 * y5) - (x * b))); elseif (y3 <= 4.8e+239) tmp = j * (y4 * ((t * b) - (y1 * y3))); else tmp = y * (y3 * ((c * y4) - (a * 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[y3, -2.5e+82], N[(y1 * N[(y3 * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.5e-12], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.05e-296], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.8e-81], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.6e+41], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1e+49], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.46e+191], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+239], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.5 \cdot 10^{+82}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -2.5 \cdot 10^{-12}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq -2.05 \cdot 10^{-296}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 5.8 \cdot 10^{-81}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 1.6 \cdot 10^{+41}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 10^{+49}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 2.46 \cdot 10^{+191}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+239}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\end{array}
\end{array}
if y3 < -2.50000000000000008e82Initial program 16.0%
Taylor expanded in y1 around inf 44.0%
associate--l+44.0%
mul-1-neg44.0%
distribute-rgt-neg-in44.0%
*-commutative44.0%
*-commutative44.0%
fma-neg46.3%
fma-neg46.3%
*-commutative46.3%
distribute-rgt-neg-in46.3%
mul-1-neg46.3%
remove-double-neg46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y3 around inf 53.8%
if -2.50000000000000008e82 < y3 < -2.49999999999999985e-12Initial program 39.4%
Taylor expanded in j around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in y5 around -inf 53.3%
associate-*r*53.3%
neg-mul-153.3%
*-commutative53.3%
Simplified53.3%
if -2.49999999999999985e-12 < y3 < -2.04999999999999997e-296Initial program 37.4%
Taylor expanded in y1 around inf 48.9%
associate--l+48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
*-commutative48.9%
*-commutative48.9%
fma-neg50.7%
fma-neg50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
mul-1-neg50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in x around inf 47.3%
if -2.04999999999999997e-296 < y3 < 5.79999999999999978e-81Initial program 29.5%
Taylor expanded in j around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in b around inf 49.5%
if 5.79999999999999978e-81 < y3 < 1.60000000000000005e41Initial program 35.2%
Taylor expanded in y1 around 0 22.5%
Taylor expanded in y around inf 48.3%
Taylor expanded in k around inf 44.6%
mul-1-neg44.6%
cancel-sign-sub-inv44.6%
fma-udef44.6%
distribute-rgt-neg-in44.6%
fma-udef44.6%
cancel-sign-sub-inv44.6%
Simplified44.6%
if 1.60000000000000005e41 < y3 < 9.99999999999999946e48Initial program 32.8%
Taylor expanded in y1 around 0 0.1%
Taylor expanded in y4 around inf 66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
if 9.99999999999999946e48 < y3 < 2.46000000000000013e191Initial program 27.6%
Taylor expanded in j around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y0 around -inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
*-commutative52.3%
Simplified52.3%
if 2.46000000000000013e191 < y3 < 4.8e239Initial program 0.0%
Taylor expanded in j around inf 38.8%
+-commutative38.8%
mul-1-neg38.8%
unsub-neg38.8%
*-commutative38.8%
Simplified38.8%
Taylor expanded in y4 around inf 55.1%
*-commutative55.1%
Simplified55.1%
if 4.8e239 < y3 Initial program 16.7%
Taylor expanded in y1 around 0 16.7%
Taylor expanded in y around inf 50.0%
Taylor expanded in y3 around inf 67.5%
Final simplification51.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* x (- (* a b) (* c i)))))
(t_2 (* j (* y0 (- (* y3 y5) (* x b))))))
(if (<= a -1e+168)
t_1
(if (<= a -5.2e+101)
(* b (* j (- (* t y4) (* x y0))))
(if (<= a -8.1e+68)
(* c (* y0 (- (* x y2) (* z y3))))
(if (<= a -5.2e-110)
(* j (* y4 (- (* t b) (* y1 y3))))
(if (<= a -6.2e-229)
t_1
(if (<= a 1.75e-111)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= a 2250000000000.0)
t_2
(if (<= a 5.5e+138)
(* j (* t (- (* b y4) (* i y5))))
(if (<= a 3.75e+160)
t_2
(* a (* y1 (- (* z y3) (* x y2)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -1e+168) {
tmp = t_1;
} else if (a <= -5.2e+101) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -8.1e+68) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -5.2e-110) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -6.2e-229) {
tmp = t_1;
} else if (a <= 1.75e-111) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 2250000000000.0) {
tmp = t_2;
} else if (a <= 5.5e+138) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 3.75e+160) {
tmp = t_2;
} else {
tmp = a * (y1 * ((z * y3) - (x * y2)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * ((a * b) - (c * i)))
t_2 = j * (y0 * ((y3 * y5) - (x * b)))
if (a <= (-1d+168)) then
tmp = t_1
else if (a <= (-5.2d+101)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (a <= (-8.1d+68)) then
tmp = c * (y0 * ((x * y2) - (z * y3)))
else if (a <= (-5.2d-110)) then
tmp = j * (y4 * ((t * b) - (y1 * y3)))
else if (a <= (-6.2d-229)) then
tmp = t_1
else if (a <= 1.75d-111) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (a <= 2250000000000.0d0) then
tmp = t_2
else if (a <= 5.5d+138) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (a <= 3.75d+160) then
tmp = t_2
else
tmp = a * (y1 * ((z * y3) - (x * y2)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (x * ((a * b) - (c * i)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -1e+168) {
tmp = t_1;
} else if (a <= -5.2e+101) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -8.1e+68) {
tmp = c * (y0 * ((x * y2) - (z * y3)));
} else if (a <= -5.2e-110) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -6.2e-229) {
tmp = t_1;
} else if (a <= 1.75e-111) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 2250000000000.0) {
tmp = t_2;
} else if (a <= 5.5e+138) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 3.75e+160) {
tmp = t_2;
} else {
tmp = a * (y1 * ((z * y3) - (x * y2)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (x * ((a * b) - (c * i))) t_2 = j * (y0 * ((y3 * y5) - (x * b))) tmp = 0 if a <= -1e+168: tmp = t_1 elif a <= -5.2e+101: tmp = b * (j * ((t * y4) - (x * y0))) elif a <= -8.1e+68: tmp = c * (y0 * ((x * y2) - (z * y3))) elif a <= -5.2e-110: tmp = j * (y4 * ((t * b) - (y1 * y3))) elif a <= -6.2e-229: tmp = t_1 elif a <= 1.75e-111: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif a <= 2250000000000.0: tmp = t_2 elif a <= 5.5e+138: tmp = j * (t * ((b * y4) - (i * y5))) elif a <= 3.75e+160: tmp = t_2 else: tmp = a * (y1 * ((z * y3) - (x * y2))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))) t_2 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))) tmp = 0.0 if (a <= -1e+168) tmp = t_1; elseif (a <= -5.2e+101) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (a <= -8.1e+68) tmp = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))); elseif (a <= -5.2e-110) tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (a <= -6.2e-229) tmp = t_1; elseif (a <= 1.75e-111) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (a <= 2250000000000.0) tmp = t_2; elseif (a <= 5.5e+138) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (a <= 3.75e+160) tmp = t_2; else tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (x * ((a * b) - (c * i))); t_2 = j * (y0 * ((y3 * y5) - (x * b))); tmp = 0.0; if (a <= -1e+168) tmp = t_1; elseif (a <= -5.2e+101) tmp = b * (j * ((t * y4) - (x * y0))); elseif (a <= -8.1e+68) tmp = c * (y0 * ((x * y2) - (z * y3))); elseif (a <= -5.2e-110) tmp = j * (y4 * ((t * b) - (y1 * y3))); elseif (a <= -6.2e-229) tmp = t_1; elseif (a <= 1.75e-111) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (a <= 2250000000000.0) tmp = t_2; elseif (a <= 5.5e+138) tmp = j * (t * ((b * y4) - (i * y5))); elseif (a <= 3.75e+160) tmp = t_2; else tmp = a * (y1 * ((z * y3) - (x * y2))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1e+168], t$95$1, If[LessEqual[a, -5.2e+101], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.1e+68], N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.2e-110], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.2e-229], t$95$1, If[LessEqual[a, 1.75e-111], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2250000000000.0], t$95$2, If[LessEqual[a, 5.5e+138], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.75e+160], t$95$2, N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
t_2 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{if}\;a \leq -1 \cdot 10^{+168}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -8.1 \cdot 10^{+68}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-110}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-229}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-111}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 2250000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+138}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 3.75 \cdot 10^{+160}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\end{array}
\end{array}
if a < -9.9999999999999993e167 or -5.19999999999999979e-110 < a < -6.2000000000000002e-229Initial program 18.5%
Taylor expanded in y1 around 0 16.7%
Taylor expanded in y around inf 49.2%
Taylor expanded in x around inf 55.6%
if -9.9999999999999993e167 < a < -5.2e101Initial program 17.6%
Taylor expanded in j around inf 58.9%
+-commutative58.9%
mul-1-neg58.9%
unsub-neg58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in b around inf 65.2%
if -5.2e101 < a < -8.1000000000000002e68Initial program 33.3%
Taylor expanded in y0 around inf 34.6%
Taylor expanded in c around inf 45.8%
if -8.1000000000000002e68 < a < -5.19999999999999979e-110Initial program 26.8%
Taylor expanded in j around inf 34.8%
+-commutative34.8%
mul-1-neg34.8%
unsub-neg34.8%
*-commutative34.8%
Simplified34.8%
Taylor expanded in y4 around inf 40.3%
*-commutative40.3%
Simplified40.3%
if -6.2000000000000002e-229 < a < 1.75e-111Initial program 29.8%
Taylor expanded in c around inf 33.4%
+-commutative33.4%
mul-1-neg33.4%
unsub-neg33.4%
*-commutative33.4%
*-commutative33.4%
*-commutative33.4%
*-commutative33.4%
Simplified33.4%
Taylor expanded in k around inf 46.6%
*-commutative46.6%
Simplified46.6%
if 1.75e-111 < a < 2.25e12 or 5.4999999999999999e138 < a < 3.75000000000000014e160Initial program 42.1%
Taylor expanded in j around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in y0 around -inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
sub-neg52.7%
*-commutative52.7%
Simplified52.7%
if 2.25e12 < a < 5.4999999999999999e138Initial program 34.7%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
Simplified44.9%
if 3.75000000000000014e160 < a Initial program 27.3%
Taylor expanded in y1 around inf 57.7%
associate--l+57.7%
mul-1-neg57.7%
distribute-rgt-neg-in57.7%
*-commutative57.7%
*-commutative57.7%
fma-neg57.7%
fma-neg57.7%
*-commutative57.7%
distribute-rgt-neg-in57.7%
mul-1-neg57.7%
remove-double-neg57.7%
*-commutative57.7%
Simplified57.7%
Taylor expanded in a around inf 46.1%
Final simplification49.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y1 (- (* z y3) (* x y2)))))
(t_2 (* j (* y0 (- (* y3 y5) (* x b))))))
(if (<= a -2.2e+162)
t_1
(if (<= a -2.1e+69)
(* b (* j (- (* t y4) (* x y0))))
(if (<= a -5.1e-86)
(* j (* y4 (- (* t b) (* y1 y3))))
(if (<= a -2.35e-291)
(* c (* i (- (* z t) (* x y))))
(if (<= a 2.9e-111)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= a 530000000.0)
t_2
(if (<= a 3.2e+139)
(* j (* t (- (* b y4) (* i y5))))
(if (<= a 1.15e+166) t_2 t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * ((z * y3) - (x * y2)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -2.2e+162) {
tmp = t_1;
} else if (a <= -2.1e+69) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -5.1e-86) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -2.35e-291) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 2.9e-111) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 530000000.0) {
tmp = t_2;
} else if (a <= 3.2e+139) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 1.15e+166) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y1 * ((z * y3) - (x * y2)))
t_2 = j * (y0 * ((y3 * y5) - (x * b)))
if (a <= (-2.2d+162)) then
tmp = t_1
else if (a <= (-2.1d+69)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (a <= (-5.1d-86)) then
tmp = j * (y4 * ((t * b) - (y1 * y3)))
else if (a <= (-2.35d-291)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (a <= 2.9d-111) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (a <= 530000000.0d0) then
tmp = t_2
else if (a <= 3.2d+139) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (a <= 1.15d+166) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * ((z * y3) - (x * y2)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -2.2e+162) {
tmp = t_1;
} else if (a <= -2.1e+69) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -5.1e-86) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -2.35e-291) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 2.9e-111) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (a <= 530000000.0) {
tmp = t_2;
} else if (a <= 3.2e+139) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 1.15e+166) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y1 * ((z * y3) - (x * y2))) t_2 = j * (y0 * ((y3 * y5) - (x * b))) tmp = 0 if a <= -2.2e+162: tmp = t_1 elif a <= -2.1e+69: tmp = b * (j * ((t * y4) - (x * y0))) elif a <= -5.1e-86: tmp = j * (y4 * ((t * b) - (y1 * y3))) elif a <= -2.35e-291: tmp = c * (i * ((z * t) - (x * y))) elif a <= 2.9e-111: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif a <= 530000000.0: tmp = t_2 elif a <= 3.2e+139: tmp = j * (t * ((b * y4) - (i * y5))) elif a <= 1.15e+166: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))) t_2 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))) tmp = 0.0 if (a <= -2.2e+162) tmp = t_1; elseif (a <= -2.1e+69) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (a <= -5.1e-86) tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (a <= -2.35e-291) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (a <= 2.9e-111) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (a <= 530000000.0) tmp = t_2; elseif (a <= 3.2e+139) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (a <= 1.15e+166) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y1 * ((z * y3) - (x * y2))); t_2 = j * (y0 * ((y3 * y5) - (x * b))); tmp = 0.0; if (a <= -2.2e+162) tmp = t_1; elseif (a <= -2.1e+69) tmp = b * (j * ((t * y4) - (x * y0))); elseif (a <= -5.1e-86) tmp = j * (y4 * ((t * b) - (y1 * y3))); elseif (a <= -2.35e-291) tmp = c * (i * ((z * t) - (x * y))); elseif (a <= 2.9e-111) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (a <= 530000000.0) tmp = t_2; elseif (a <= 3.2e+139) tmp = j * (t * ((b * y4) - (i * y5))); elseif (a <= 1.15e+166) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e+162], t$95$1, If[LessEqual[a, -2.1e+69], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.1e-86], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.35e-291], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-111], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 530000000.0], t$95$2, If[LessEqual[a, 3.2e+139], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e+166], t$95$2, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
t_2 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{+162}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{+69}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -5.1 \cdot 10^{-86}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-291}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-111}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 530000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{+139}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+166}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.2000000000000002e162 or 1.15000000000000004e166 < a Initial program 20.6%
Taylor expanded in y1 around inf 55.7%
associate--l+55.7%
mul-1-neg55.7%
distribute-rgt-neg-in55.7%
*-commutative55.7%
*-commutative55.7%
fma-neg55.7%
fma-neg55.7%
*-commutative55.7%
distribute-rgt-neg-in55.7%
mul-1-neg55.7%
remove-double-neg55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in a around inf 45.6%
if -2.2000000000000002e162 < a < -2.10000000000000015e69Initial program 26.1%
Taylor expanded in j around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in b around inf 57.1%
if -2.10000000000000015e69 < a < -5.10000000000000006e-86Initial program 21.0%
Taylor expanded in j around inf 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in y4 around inf 43.4%
*-commutative43.4%
Simplified43.4%
if -5.10000000000000006e-86 < a < -2.3499999999999999e-291Initial program 29.7%
Taylor expanded in c around inf 25.2%
+-commutative25.2%
mul-1-neg25.2%
unsub-neg25.2%
*-commutative25.2%
*-commutative25.2%
*-commutative25.2%
*-commutative25.2%
Simplified25.2%
Taylor expanded in i around inf 43.6%
if -2.3499999999999999e-291 < a < 2.90000000000000002e-111Initial program 31.4%
Taylor expanded in c around inf 35.9%
+-commutative35.9%
mul-1-neg35.9%
unsub-neg35.9%
*-commutative35.9%
*-commutative35.9%
*-commutative35.9%
*-commutative35.9%
Simplified35.9%
Taylor expanded in k around inf 51.2%
*-commutative51.2%
Simplified51.2%
if 2.90000000000000002e-111 < a < 5.3e8 or 3.2000000000000001e139 < a < 1.15000000000000004e166Initial program 42.1%
Taylor expanded in j around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
*-commutative55.6%
Simplified55.6%
Taylor expanded in y0 around -inf 52.7%
+-commutative52.7%
mul-1-neg52.7%
sub-neg52.7%
*-commutative52.7%
Simplified52.7%
if 5.3e8 < a < 3.2000000000000001e139Initial program 34.7%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
Simplified44.9%
Final simplification47.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (- (* y3 y5) (* x b)))))
(t_2 (* a (* y1 (- (* z y3) (* x y2))))))
(if (<= a -1.75e+161)
t_2
(if (<= a -1.9e+75)
(* b (* j (- (* t y4) (* x y0))))
(if (<= a -2.9e-83)
(* j (* y4 (- (* t b) (* y1 y3))))
(if (<= a -6.6e-202)
(* c (* i (- (* z t) (* x y))))
(if (<= a 59000000.0)
t_1
(if (<= a 1.1e+140)
(* j (* t (- (* b y4) (* i y5))))
(if (<= a 3.1e+165) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * ((y3 * y5) - (x * b)));
double t_2 = a * (y1 * ((z * y3) - (x * y2)));
double tmp;
if (a <= -1.75e+161) {
tmp = t_2;
} else if (a <= -1.9e+75) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -2.9e-83) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -6.6e-202) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 59000000.0) {
tmp = t_1;
} else if (a <= 1.1e+140) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 3.1e+165) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (y0 * ((y3 * y5) - (x * b)))
t_2 = a * (y1 * ((z * y3) - (x * y2)))
if (a <= (-1.75d+161)) then
tmp = t_2
else if (a <= (-1.9d+75)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (a <= (-2.9d-83)) then
tmp = j * (y4 * ((t * b) - (y1 * y3)))
else if (a <= (-6.6d-202)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (a <= 59000000.0d0) then
tmp = t_1
else if (a <= 1.1d+140) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (a <= 3.1d+165) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * ((y3 * y5) - (x * b)));
double t_2 = a * (y1 * ((z * y3) - (x * y2)));
double tmp;
if (a <= -1.75e+161) {
tmp = t_2;
} else if (a <= -1.9e+75) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -2.9e-83) {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
} else if (a <= -6.6e-202) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 59000000.0) {
tmp = t_1;
} else if (a <= 1.1e+140) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 3.1e+165) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * ((y3 * y5) - (x * b))) t_2 = a * (y1 * ((z * y3) - (x * y2))) tmp = 0 if a <= -1.75e+161: tmp = t_2 elif a <= -1.9e+75: tmp = b * (j * ((t * y4) - (x * y0))) elif a <= -2.9e-83: tmp = j * (y4 * ((t * b) - (y1 * y3))) elif a <= -6.6e-202: tmp = c * (i * ((z * t) - (x * y))) elif a <= 59000000.0: tmp = t_1 elif a <= 1.1e+140: tmp = j * (t * ((b * y4) - (i * y5))) elif a <= 3.1e+165: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))) t_2 = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))) tmp = 0.0 if (a <= -1.75e+161) tmp = t_2; elseif (a <= -1.9e+75) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (a <= -2.9e-83) tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); elseif (a <= -6.6e-202) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (a <= 59000000.0) tmp = t_1; elseif (a <= 1.1e+140) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (a <= 3.1e+165) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * ((y3 * y5) - (x * b))); t_2 = a * (y1 * ((z * y3) - (x * y2))); tmp = 0.0; if (a <= -1.75e+161) tmp = t_2; elseif (a <= -1.9e+75) tmp = b * (j * ((t * y4) - (x * y0))); elseif (a <= -2.9e-83) tmp = j * (y4 * ((t * b) - (y1 * y3))); elseif (a <= -6.6e-202) tmp = c * (i * ((z * t) - (x * y))); elseif (a <= 59000000.0) tmp = t_1; elseif (a <= 1.1e+140) tmp = j * (t * ((b * y4) - (i * y5))); elseif (a <= 3.1e+165) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.75e+161], t$95$2, If[LessEqual[a, -1.9e+75], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.9e-83], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.6e-202], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 59000000.0], t$95$1, If[LessEqual[a, 1.1e+140], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e+165], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
t_2 := a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\mathbf{if}\;a \leq -1.75 \cdot 10^{+161}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{+75}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -2.9 \cdot 10^{-83}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\mathbf{elif}\;a \leq -6.6 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 59000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+140}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{+165}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.74999999999999994e161 or 3.1000000000000002e165 < a Initial program 20.6%
Taylor expanded in y1 around inf 55.7%
associate--l+55.7%
mul-1-neg55.7%
distribute-rgt-neg-in55.7%
*-commutative55.7%
*-commutative55.7%
fma-neg55.7%
fma-neg55.7%
*-commutative55.7%
distribute-rgt-neg-in55.7%
mul-1-neg55.7%
remove-double-neg55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in a around inf 45.6%
if -1.74999999999999994e161 < a < -1.9000000000000001e75Initial program 26.1%
Taylor expanded in j around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in b around inf 57.1%
if -1.9000000000000001e75 < a < -2.8999999999999999e-83Initial program 21.0%
Taylor expanded in j around inf 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in y4 around inf 43.4%
*-commutative43.4%
Simplified43.4%
if -2.8999999999999999e-83 < a < -6.59999999999999979e-202Initial program 35.1%
Taylor expanded in c around inf 27.3%
+-commutative27.3%
mul-1-neg27.3%
unsub-neg27.3%
*-commutative27.3%
*-commutative27.3%
*-commutative27.3%
*-commutative27.3%
Simplified27.3%
Taylor expanded in i around inf 49.5%
if -6.59999999999999979e-202 < a < 5.9e7 or 1.0999999999999999e140 < a < 3.1000000000000002e165Initial program 33.2%
Taylor expanded in j around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in y0 around -inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
sub-neg43.0%
*-commutative43.0%
Simplified43.0%
if 5.9e7 < a < 1.0999999999999999e140Initial program 34.7%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
Simplified44.9%
Final simplification45.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* y4 (- (* k y2) (* j y3))))))
(if (<= y3 -9.5e+64)
t_1
(if (<= y3 -8.2e-26)
(* c (* i (- (* z t) (* x y))))
(if (<= y3 -7.1e-158)
(* i (* y1 (- (* x j) (* z k))))
(if (<= y3 1.66e-251)
(* y (* x (- (* a b) (* c i))))
(if (<= y3 1.22e-18)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 1.8e+49)
t_1
(if (<= y3 8.5e+191)
(* j (* y0 (- (* y3 y5) (* x b))))
(* j (* (* y3 y4) (- 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 t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y3 <= -9.5e+64) {
tmp = t_1;
} else if (y3 <= -8.2e-26) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y3 <= -7.1e-158) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 1.66e-251) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y3 <= 1.22e-18) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.8e+49) {
tmp = t_1;
} else if (y3 <= 8.5e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -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) :: t_1
real(8) :: tmp
t_1 = y1 * (y4 * ((k * y2) - (j * y3)))
if (y3 <= (-9.5d+64)) then
tmp = t_1
else if (y3 <= (-8.2d-26)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (y3 <= (-7.1d-158)) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (y3 <= 1.66d-251) then
tmp = y * (x * ((a * b) - (c * i)))
else if (y3 <= 1.22d-18) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 1.8d+49) then
tmp = t_1
else if (y3 <= 8.5d+191) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = j * ((y3 * y4) * -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 t_1 = y1 * (y4 * ((k * y2) - (j * y3)));
double tmp;
if (y3 <= -9.5e+64) {
tmp = t_1;
} else if (y3 <= -8.2e-26) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (y3 <= -7.1e-158) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 1.66e-251) {
tmp = y * (x * ((a * b) - (c * i)));
} else if (y3 <= 1.22e-18) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.8e+49) {
tmp = t_1;
} else if (y3 <= 8.5e+191) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (y4 * ((k * y2) - (j * y3))) tmp = 0 if y3 <= -9.5e+64: tmp = t_1 elif y3 <= -8.2e-26: tmp = c * (i * ((z * t) - (x * y))) elif y3 <= -7.1e-158: tmp = i * (y1 * ((x * j) - (z * k))) elif y3 <= 1.66e-251: tmp = y * (x * ((a * b) - (c * i))) elif y3 <= 1.22e-18: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 1.8e+49: tmp = t_1 elif y3 <= 8.5e+191: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = j * ((y3 * y4) * -y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) tmp = 0.0 if (y3 <= -9.5e+64) tmp = t_1; elseif (y3 <= -8.2e-26) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (y3 <= -7.1e-158) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (y3 <= 1.66e-251) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); elseif (y3 <= 1.22e-18) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 1.8e+49) tmp = t_1; elseif (y3 <= 8.5e+191) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(j * Float64(Float64(y3 * y4) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (y4 * ((k * y2) - (j * y3))); tmp = 0.0; if (y3 <= -9.5e+64) tmp = t_1; elseif (y3 <= -8.2e-26) tmp = c * (i * ((z * t) - (x * y))); elseif (y3 <= -7.1e-158) tmp = i * (y1 * ((x * j) - (z * k))); elseif (y3 <= 1.66e-251) tmp = y * (x * ((a * b) - (c * i))); elseif (y3 <= 1.22e-18) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 1.8e+49) tmp = t_1; elseif (y3 <= 8.5e+191) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = j * ((y3 * y4) * -y1); 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[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -9.5e+64], t$95$1, If[LessEqual[y3, -8.2e-26], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.1e-158], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.66e-251], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.22e-18], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.8e+49], t$95$1, If[LessEqual[y3, 8.5e+191], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(y3 * y4), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{if}\;y3 \leq -9.5 \cdot 10^{+64}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -8.2 \cdot 10^{-26}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;y3 \leq -7.1 \cdot 10^{-158}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y3 \leq 1.66 \cdot 10^{-251}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 1.22 \cdot 10^{-18}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 1.8 \cdot 10^{+49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq 8.5 \cdot 10^{+191}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot y4\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if y3 < -9.50000000000000028e64 or 1.2200000000000001e-18 < y3 < 1.79999999999999998e49Initial program 24.8%
Taylor expanded in y1 around inf 48.6%
associate--l+48.6%
mul-1-neg48.6%
distribute-rgt-neg-in48.6%
*-commutative48.6%
*-commutative48.6%
fma-neg51.5%
fma-neg51.5%
*-commutative51.5%
distribute-rgt-neg-in51.5%
mul-1-neg51.5%
remove-double-neg51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in y4 around inf 46.9%
mul-1-neg46.9%
+-commutative46.9%
sub-neg46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
if -9.50000000000000028e64 < y3 < -8.1999999999999997e-26Initial program 47.8%
Taylor expanded in c around inf 34.6%
+-commutative34.6%
mul-1-neg34.6%
unsub-neg34.6%
*-commutative34.6%
*-commutative34.6%
*-commutative34.6%
*-commutative34.6%
Simplified34.6%
Taylor expanded in i around inf 44.2%
if -8.1999999999999997e-26 < y3 < -7.10000000000000003e-158Initial program 20.8%
Taylor expanded in y1 around inf 62.8%
associate--l+62.8%
mul-1-neg62.8%
distribute-rgt-neg-in62.8%
*-commutative62.8%
*-commutative62.8%
fma-neg66.9%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-in66.9%
mul-1-neg66.9%
remove-double-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in i around inf 55.0%
if -7.10000000000000003e-158 < y3 < 1.65999999999999994e-251Initial program 38.0%
Taylor expanded in y1 around 0 30.8%
Taylor expanded in y around inf 28.5%
Taylor expanded in x around inf 43.9%
if 1.65999999999999994e-251 < y3 < 1.2200000000000001e-18Initial program 29.7%
Taylor expanded in j around inf 40.9%
+-commutative40.9%
mul-1-neg40.9%
unsub-neg40.9%
*-commutative40.9%
Simplified40.9%
Taylor expanded in b around inf 49.3%
if 1.79999999999999998e49 < y3 < 8.4999999999999999e191Initial program 27.6%
Taylor expanded in j around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y0 around -inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
*-commutative52.3%
Simplified52.3%
if 8.4999999999999999e191 < y3 Initial program 8.0%
Taylor expanded in j around inf 36.3%
+-commutative36.3%
mul-1-neg36.3%
unsub-neg36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y4 around inf 52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
*-commutative52.8%
distribute-rgt-neg-in52.8%
*-commutative52.8%
Simplified52.8%
Final simplification48.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (- (* z t) (* x y))))))
(if (<= y3 -4e+65)
(* j (* y4 (* y1 (- y3))))
(if (<= y3 -4.9e-14)
t_1
(if (<= y3 -1.85e-56)
(* a (* x (- (* y1 y2))))
(if (<= y3 -5.4e-200)
(* b (* y0 (- (* z k) (* x j))))
(if (<= y3 1.32e-83)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 1.4e+144) t_1 (* j (* (* y3 y4) (- 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 t_1 = c * (i * ((z * t) - (x * y)));
double tmp;
if (y3 <= -4e+65) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -4.9e-14) {
tmp = t_1;
} else if (y3 <= -1.85e-56) {
tmp = a * (x * -(y1 * y2));
} else if (y3 <= -5.4e-200) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 1.32e-83) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.4e+144) {
tmp = t_1;
} else {
tmp = j * ((y3 * y4) * -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) :: t_1
real(8) :: tmp
t_1 = c * (i * ((z * t) - (x * y)))
if (y3 <= (-4d+65)) then
tmp = j * (y4 * (y1 * -y3))
else if (y3 <= (-4.9d-14)) then
tmp = t_1
else if (y3 <= (-1.85d-56)) then
tmp = a * (x * -(y1 * y2))
else if (y3 <= (-5.4d-200)) then
tmp = b * (y0 * ((z * k) - (x * j)))
else if (y3 <= 1.32d-83) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 1.4d+144) then
tmp = t_1
else
tmp = j * ((y3 * y4) * -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 t_1 = c * (i * ((z * t) - (x * y)));
double tmp;
if (y3 <= -4e+65) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -4.9e-14) {
tmp = t_1;
} else if (y3 <= -1.85e-56) {
tmp = a * (x * -(y1 * y2));
} else if (y3 <= -5.4e-200) {
tmp = b * (y0 * ((z * k) - (x * j)));
} else if (y3 <= 1.32e-83) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 1.4e+144) {
tmp = t_1;
} else {
tmp = j * ((y3 * y4) * -y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * ((z * t) - (x * y))) tmp = 0 if y3 <= -4e+65: tmp = j * (y4 * (y1 * -y3)) elif y3 <= -4.9e-14: tmp = t_1 elif y3 <= -1.85e-56: tmp = a * (x * -(y1 * y2)) elif y3 <= -5.4e-200: tmp = b * (y0 * ((z * k) - (x * j))) elif y3 <= 1.32e-83: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 1.4e+144: tmp = t_1 else: tmp = j * ((y3 * y4) * -y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))) tmp = 0.0 if (y3 <= -4e+65) tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); elseif (y3 <= -4.9e-14) tmp = t_1; elseif (y3 <= -1.85e-56) tmp = Float64(a * Float64(x * Float64(-Float64(y1 * y2)))); elseif (y3 <= -5.4e-200) tmp = Float64(b * Float64(y0 * Float64(Float64(z * k) - Float64(x * j)))); elseif (y3 <= 1.32e-83) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 1.4e+144) tmp = t_1; else tmp = Float64(j * Float64(Float64(y3 * y4) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (i * ((z * t) - (x * y))); tmp = 0.0; if (y3 <= -4e+65) tmp = j * (y4 * (y1 * -y3)); elseif (y3 <= -4.9e-14) tmp = t_1; elseif (y3 <= -1.85e-56) tmp = a * (x * -(y1 * y2)); elseif (y3 <= -5.4e-200) tmp = b * (y0 * ((z * k) - (x * j))); elseif (y3 <= 1.32e-83) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 1.4e+144) tmp = t_1; else tmp = j * ((y3 * y4) * -y1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -4e+65], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -4.9e-14], t$95$1, If[LessEqual[y3, -1.85e-56], N[(a * N[(x * (-N[(y1 * y2), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.4e-200], N[(b * N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.32e-83], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.4e+144], t$95$1, N[(j * N[(N[(y3 * y4), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{if}\;y3 \leq -4 \cdot 10^{+65}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y3 \leq -4.9 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -1.85 \cdot 10^{-56}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq -5.4 \cdot 10^{-200}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y3 \leq 1.32 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{+144}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot y4\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if y3 < -4e65Initial program 20.1%
Taylor expanded in j around inf 38.6%
+-commutative38.6%
mul-1-neg38.6%
unsub-neg38.6%
*-commutative38.6%
Simplified38.6%
Taylor expanded in y4 around inf 43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in t around 0 41.4%
mul-1-neg41.4%
distribute-lft-neg-out41.4%
*-commutative41.4%
Simplified41.4%
if -4e65 < y3 < -4.89999999999999995e-14 or 1.31999999999999994e-83 < y3 < 1.40000000000000003e144Initial program 32.0%
Taylor expanded in c around inf 31.4%
+-commutative31.4%
mul-1-neg31.4%
unsub-neg31.4%
*-commutative31.4%
*-commutative31.4%
*-commutative31.4%
*-commutative31.4%
Simplified31.4%
Taylor expanded in i around inf 42.0%
if -4.89999999999999995e-14 < y3 < -1.8500000000000001e-56Initial program 44.1%
Taylor expanded in y1 around inf 56.3%
associate--l+56.3%
mul-1-neg56.3%
distribute-rgt-neg-in56.3%
*-commutative56.3%
*-commutative56.3%
fma-neg67.4%
fma-neg67.4%
*-commutative67.4%
distribute-rgt-neg-in67.4%
mul-1-neg67.4%
remove-double-neg67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in a around inf 45.9%
Taylor expanded in y3 around 0 56.5%
mul-1-neg56.5%
*-commutative56.5%
distribute-rgt-neg-in56.5%
Simplified56.5%
if -1.8500000000000001e-56 < y3 < -5.4000000000000003e-200Initial program 28.6%
Taylor expanded in y0 around inf 54.1%
Taylor expanded in b around inf 43.6%
if -5.4000000000000003e-200 < y3 < 1.31999999999999994e-83Initial program 34.4%
Taylor expanded in j around inf 43.2%
+-commutative43.2%
mul-1-neg43.2%
unsub-neg43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in b around inf 41.5%
if 1.40000000000000003e144 < y3 Initial program 14.3%
Taylor expanded in j around inf 45.9%
+-commutative45.9%
mul-1-neg45.9%
unsub-neg45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in y4 around inf 46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in t around 0 43.9%
mul-1-neg43.9%
*-commutative43.9%
distribute-rgt-neg-in43.9%
*-commutative43.9%
Simplified43.9%
Final simplification42.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y4 (* y1 (- y3)))))
(t_2 (* i (* y1 (- (* x j) (* z k)))))
(t_3 (* c (* i (- (* z t) (* x y))))))
(if (<= y3 -2.2e+65)
t_1
(if (<= y3 -5.3e-28)
t_3
(if (<= y3 2.4e-240)
t_2
(if (<= y3 1e-82)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 3.3e+91) t_3 (if (<= y3 2.35e+175) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y4 * (y1 * -y3));
double t_2 = i * (y1 * ((x * j) - (z * k)));
double t_3 = c * (i * ((z * t) - (x * y)));
double tmp;
if (y3 <= -2.2e+65) {
tmp = t_1;
} else if (y3 <= -5.3e-28) {
tmp = t_3;
} else if (y3 <= 2.4e-240) {
tmp = t_2;
} else if (y3 <= 1e-82) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 3.3e+91) {
tmp = t_3;
} else if (y3 <= 2.35e+175) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * (y4 * (y1 * -y3))
t_2 = i * (y1 * ((x * j) - (z * k)))
t_3 = c * (i * ((z * t) - (x * y)))
if (y3 <= (-2.2d+65)) then
tmp = t_1
else if (y3 <= (-5.3d-28)) then
tmp = t_3
else if (y3 <= 2.4d-240) then
tmp = t_2
else if (y3 <= 1d-82) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 3.3d+91) then
tmp = t_3
else if (y3 <= 2.35d+175) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y4 * (y1 * -y3));
double t_2 = i * (y1 * ((x * j) - (z * k)));
double t_3 = c * (i * ((z * t) - (x * y)));
double tmp;
if (y3 <= -2.2e+65) {
tmp = t_1;
} else if (y3 <= -5.3e-28) {
tmp = t_3;
} else if (y3 <= 2.4e-240) {
tmp = t_2;
} else if (y3 <= 1e-82) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 3.3e+91) {
tmp = t_3;
} else if (y3 <= 2.35e+175) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y4 * (y1 * -y3)) t_2 = i * (y1 * ((x * j) - (z * k))) t_3 = c * (i * ((z * t) - (x * y))) tmp = 0 if y3 <= -2.2e+65: tmp = t_1 elif y3 <= -5.3e-28: tmp = t_3 elif y3 <= 2.4e-240: tmp = t_2 elif y3 <= 1e-82: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 3.3e+91: tmp = t_3 elif y3 <= 2.35e+175: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))) t_2 = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) t_3 = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))) tmp = 0.0 if (y3 <= -2.2e+65) tmp = t_1; elseif (y3 <= -5.3e-28) tmp = t_3; elseif (y3 <= 2.4e-240) tmp = t_2; elseif (y3 <= 1e-82) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 3.3e+91) tmp = t_3; elseif (y3 <= 2.35e+175) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y4 * (y1 * -y3)); t_2 = i * (y1 * ((x * j) - (z * k))); t_3 = c * (i * ((z * t) - (x * y))); tmp = 0.0; if (y3 <= -2.2e+65) tmp = t_1; elseif (y3 <= -5.3e-28) tmp = t_3; elseif (y3 <= 2.4e-240) tmp = t_2; elseif (y3 <= 1e-82) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 3.3e+91) tmp = t_3; elseif (y3 <= 2.35e+175) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -2.2e+65], t$95$1, If[LessEqual[y3, -5.3e-28], t$95$3, If[LessEqual[y3, 2.4e-240], t$95$2, If[LessEqual[y3, 1e-82], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.3e+91], t$95$3, If[LessEqual[y3, 2.35e+175], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
t_2 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
t_3 := c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{if}\;y3 \leq -2.2 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y3 \leq -5.3 \cdot 10^{-28}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq 2.4 \cdot 10^{-240}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y3 \leq 10^{-82}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 3.3 \cdot 10^{+91}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y3 \leq 2.35 \cdot 10^{+175}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y3 < -2.1999999999999998e65 or 2.34999999999999998e175 < y3 Initial program 17.0%
Taylor expanded in j around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in y4 around inf 46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in t around 0 44.1%
mul-1-neg44.1%
distribute-lft-neg-out44.1%
*-commutative44.1%
Simplified44.1%
if -2.1999999999999998e65 < y3 < -5.29999999999999988e-28 or 1e-82 < y3 < 3.30000000000000017e91Initial program 38.8%
Taylor expanded in c around inf 33.1%
+-commutative33.1%
mul-1-neg33.1%
unsub-neg33.1%
*-commutative33.1%
*-commutative33.1%
*-commutative33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in i around inf 43.0%
if -5.29999999999999988e-28 < y3 < 2.3999999999999999e-240 or 3.30000000000000017e91 < y3 < 2.34999999999999998e175Initial program 30.0%
Taylor expanded in y1 around inf 45.8%
associate--l+45.8%
mul-1-neg45.8%
distribute-rgt-neg-in45.8%
*-commutative45.8%
*-commutative45.8%
fma-neg48.1%
fma-neg48.1%
*-commutative48.1%
distribute-rgt-neg-in48.1%
mul-1-neg48.1%
remove-double-neg48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in i around inf 45.1%
if 2.3999999999999999e-240 < y3 < 1e-82Initial program 29.6%
Taylor expanded in j around inf 38.2%
+-commutative38.2%
mul-1-neg38.2%
unsub-neg38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in b around inf 51.1%
Final simplification45.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y0 (- (* x y2) (* z y3)))))
(t_2 (* i (* y1 (- (* x j) (* z k))))))
(if (<= t -7.6e+196)
(* j (* t (- (* b y4) (* i y5))))
(if (<= t -9e+80)
t_1
(if (<= t -2.55e-104)
t_2
(if (<= t 7.5e-146)
t_1
(if (<= t 0.025)
t_2
(if (<= t 250000000000.0)
(* a (* y1 (- (* z y3) (* x y2))))
(* b (* j (- (* t y4) (* x y0))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (t <= -7.6e+196) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (t <= -9e+80) {
tmp = t_1;
} else if (t <= -2.55e-104) {
tmp = t_2;
} else if (t <= 7.5e-146) {
tmp = t_1;
} else if (t <= 0.025) {
tmp = t_2;
} else if (t <= 250000000000.0) {
tmp = a * (y1 * ((z * y3) - (x * y2)));
} else {
tmp = b * (j * ((t * y4) - (x * y0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (y0 * ((x * y2) - (z * y3)))
t_2 = i * (y1 * ((x * j) - (z * k)))
if (t <= (-7.6d+196)) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (t <= (-9d+80)) then
tmp = t_1
else if (t <= (-2.55d-104)) then
tmp = t_2
else if (t <= 7.5d-146) then
tmp = t_1
else if (t <= 0.025d0) then
tmp = t_2
else if (t <= 250000000000.0d0) then
tmp = a * (y1 * ((z * y3) - (x * y2)))
else
tmp = b * (j * ((t * y4) - (x * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y0 * ((x * y2) - (z * y3)));
double t_2 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (t <= -7.6e+196) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (t <= -9e+80) {
tmp = t_1;
} else if (t <= -2.55e-104) {
tmp = t_2;
} else if (t <= 7.5e-146) {
tmp = t_1;
} else if (t <= 0.025) {
tmp = t_2;
} else if (t <= 250000000000.0) {
tmp = a * (y1 * ((z * y3) - (x * y2)));
} else {
tmp = b * (j * ((t * y4) - (x * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (y0 * ((x * y2) - (z * y3))) t_2 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if t <= -7.6e+196: tmp = j * (t * ((b * y4) - (i * y5))) elif t <= -9e+80: tmp = t_1 elif t <= -2.55e-104: tmp = t_2 elif t <= 7.5e-146: tmp = t_1 elif t <= 0.025: tmp = t_2 elif t <= 250000000000.0: tmp = a * (y1 * ((z * y3) - (x * y2))) else: tmp = b * (j * ((t * y4) - (x * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) t_2 = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (t <= -7.6e+196) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (t <= -9e+80) tmp = t_1; elseif (t <= -2.55e-104) tmp = t_2; elseif (t <= 7.5e-146) tmp = t_1; elseif (t <= 0.025) tmp = t_2; elseif (t <= 250000000000.0) tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))); else tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (y0 * ((x * y2) - (z * y3))); t_2 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (t <= -7.6e+196) tmp = j * (t * ((b * y4) - (i * y5))); elseif (t <= -9e+80) tmp = t_1; elseif (t <= -2.55e-104) tmp = t_2; elseif (t <= 7.5e-146) tmp = t_1; elseif (t <= 0.025) tmp = t_2; elseif (t <= 250000000000.0) tmp = a * (y1 * ((z * y3) - (x * y2))); else tmp = b * (j * ((t * y4) - (x * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.6e+196], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e+80], t$95$1, If[LessEqual[t, -2.55e-104], t$95$2, If[LessEqual[t, 7.5e-146], t$95$1, If[LessEqual[t, 0.025], t$95$2, If[LessEqual[t, 250000000000.0], N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right)\\
t_2 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;t \leq -7.6 \cdot 10^{+196}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{+80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.55 \cdot 10^{-104}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-146}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 0.025:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 250000000000:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\end{array}
\end{array}
if t < -7.6000000000000003e196Initial program 13.3%
Taylor expanded in j around inf 33.7%
+-commutative33.7%
mul-1-neg33.7%
unsub-neg33.7%
*-commutative33.7%
Simplified33.7%
Taylor expanded in t around inf 57.0%
*-commutative57.0%
Simplified57.0%
if -7.6000000000000003e196 < t < -9.00000000000000013e80 or -2.54999999999999996e-104 < t < 7.49999999999999981e-146Initial program 33.6%
Taylor expanded in y0 around inf 40.4%
Taylor expanded in c around inf 35.5%
if -9.00000000000000013e80 < t < -2.54999999999999996e-104 or 7.49999999999999981e-146 < t < 0.025000000000000001Initial program 32.3%
Taylor expanded in y1 around inf 43.3%
associate--l+43.3%
mul-1-neg43.3%
distribute-rgt-neg-in43.3%
*-commutative43.3%
*-commutative43.3%
fma-neg49.3%
fma-neg49.3%
*-commutative49.3%
distribute-rgt-neg-in49.3%
mul-1-neg49.3%
remove-double-neg49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in i around inf 41.1%
if 0.025000000000000001 < t < 2.5e11Initial program 0.0%
Taylor expanded in y1 around inf 66.7%
associate--l+66.7%
mul-1-neg66.7%
distribute-rgt-neg-in66.7%
*-commutative66.7%
*-commutative66.7%
fma-neg66.7%
fma-neg66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
mul-1-neg66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in a around inf 68.1%
if 2.5e11 < t Initial program 24.7%
Taylor expanded in j around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
*-commutative52.9%
Simplified52.9%
Taylor expanded in b around inf 48.4%
Final simplification43.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y1 (- (* z y3) (* x y2)))))
(t_2 (* j (* y0 (- (* y3 y5) (* x b))))))
(if (<= a -5.5e+160)
t_1
(if (<= a -7e+59)
(* b (* j (- (* t y4) (* x y0))))
(if (<= a -3.9e-202)
(* c (* i (- (* z t) (* x y))))
(if (<= a 27500000000.0)
t_2
(if (<= a 9e+138)
(* j (* t (- (* b y4) (* i y5))))
(if (<= a 6.4e+162) t_2 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * ((z * y3) - (x * y2)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -5.5e+160) {
tmp = t_1;
} else if (a <= -7e+59) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -3.9e-202) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 27500000000.0) {
tmp = t_2;
} else if (a <= 9e+138) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 6.4e+162) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y1 * ((z * y3) - (x * y2)))
t_2 = j * (y0 * ((y3 * y5) - (x * b)))
if (a <= (-5.5d+160)) then
tmp = t_1
else if (a <= (-7d+59)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (a <= (-3.9d-202)) then
tmp = c * (i * ((z * t) - (x * y)))
else if (a <= 27500000000.0d0) then
tmp = t_2
else if (a <= 9d+138) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (a <= 6.4d+162) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * ((z * y3) - (x * y2)));
double t_2 = j * (y0 * ((y3 * y5) - (x * b)));
double tmp;
if (a <= -5.5e+160) {
tmp = t_1;
} else if (a <= -7e+59) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (a <= -3.9e-202) {
tmp = c * (i * ((z * t) - (x * y)));
} else if (a <= 27500000000.0) {
tmp = t_2;
} else if (a <= 9e+138) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (a <= 6.4e+162) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y1 * ((z * y3) - (x * y2))) t_2 = j * (y0 * ((y3 * y5) - (x * b))) tmp = 0 if a <= -5.5e+160: tmp = t_1 elif a <= -7e+59: tmp = b * (j * ((t * y4) - (x * y0))) elif a <= -3.9e-202: tmp = c * (i * ((z * t) - (x * y))) elif a <= 27500000000.0: tmp = t_2 elif a <= 9e+138: tmp = j * (t * ((b * y4) - (i * y5))) elif a <= 6.4e+162: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))) t_2 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))) tmp = 0.0 if (a <= -5.5e+160) tmp = t_1; elseif (a <= -7e+59) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (a <= -3.9e-202) tmp = Float64(c * Float64(i * Float64(Float64(z * t) - Float64(x * y)))); elseif (a <= 27500000000.0) tmp = t_2; elseif (a <= 9e+138) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (a <= 6.4e+162) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y1 * ((z * y3) - (x * y2))); t_2 = j * (y0 * ((y3 * y5) - (x * b))); tmp = 0.0; if (a <= -5.5e+160) tmp = t_1; elseif (a <= -7e+59) tmp = b * (j * ((t * y4) - (x * y0))); elseif (a <= -3.9e-202) tmp = c * (i * ((z * t) - (x * y))); elseif (a <= 27500000000.0) tmp = t_2; elseif (a <= 9e+138) tmp = j * (t * ((b * y4) - (i * y5))); elseif (a <= 6.4e+162) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+160], t$95$1, If[LessEqual[a, -7e+59], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-202], N[(c * N[(i * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 27500000000.0], t$95$2, If[LessEqual[a, 9e+138], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.4e+162], t$95$2, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
t_2 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+160}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -7 \cdot 10^{+59}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-202}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t - x \cdot y\right)\right)\\
\mathbf{elif}\;a \leq 27500000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+138}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{+162}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -5.5e160 or 6.4000000000000002e162 < a Initial program 20.6%
Taylor expanded in y1 around inf 55.7%
associate--l+55.7%
mul-1-neg55.7%
distribute-rgt-neg-in55.7%
*-commutative55.7%
*-commutative55.7%
fma-neg55.7%
fma-neg55.7%
*-commutative55.7%
distribute-rgt-neg-in55.7%
mul-1-neg55.7%
remove-double-neg55.7%
*-commutative55.7%
Simplified55.7%
Taylor expanded in a around inf 45.6%
if -5.5e160 < a < -7e59Initial program 25.9%
Taylor expanded in j around inf 48.7%
+-commutative48.7%
mul-1-neg48.7%
unsub-neg48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in b around inf 56.0%
if -7e59 < a < -3.8999999999999999e-202Initial program 26.4%
Taylor expanded in c around inf 32.4%
+-commutative32.4%
mul-1-neg32.4%
unsub-neg32.4%
*-commutative32.4%
*-commutative32.4%
*-commutative32.4%
*-commutative32.4%
Simplified32.4%
Taylor expanded in i around inf 38.2%
if -3.8999999999999999e-202 < a < 2.75e10 or 8.99999999999999963e138 < a < 6.4000000000000002e162Initial program 33.2%
Taylor expanded in j around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in y0 around -inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
sub-neg43.0%
*-commutative43.0%
Simplified43.0%
if 2.75e10 < a < 8.99999999999999963e138Initial program 34.7%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in t around inf 44.9%
*-commutative44.9%
Simplified44.9%
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.15e+138)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y3 -3.7e-51)
(* j (* i (- (* x y1) (* t y5))))
(if (<= y3 4.4e-240)
(* i (* y1 (- (* x j) (* z k))))
(if (<= y3 1.6e-33)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 7.8e+48)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y3 2.55e+184)
(* j (* y0 (- (* y3 y5) (* x b))))
(* j (* (* y3 y4) (- 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 (y3 <= -1.15e+138) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y3 <= -3.7e-51) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= 4.4e-240) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 1.6e-33) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 7.8e+48) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 2.55e+184) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -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 (y3 <= (-1.15d+138)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y3 <= (-3.7d-51)) then
tmp = j * (i * ((x * y1) - (t * y5)))
else if (y3 <= 4.4d-240) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (y3 <= 1.6d-33) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 7.8d+48) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y3 <= 2.55d+184) then
tmp = j * (y0 * ((y3 * y5) - (x * b)))
else
tmp = j * ((y3 * y4) * -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 (y3 <= -1.15e+138) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y3 <= -3.7e-51) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= 4.4e-240) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 1.6e-33) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 7.8e+48) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y3 <= 2.55e+184) {
tmp = j * (y0 * ((y3 * y5) - (x * b)));
} else {
tmp = j * ((y3 * y4) * -y1);
}
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.15e+138: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y3 <= -3.7e-51: tmp = j * (i * ((x * y1) - (t * y5))) elif y3 <= 4.4e-240: tmp = i * (y1 * ((x * j) - (z * k))) elif y3 <= 1.6e-33: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 7.8e+48: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y3 <= 2.55e+184: tmp = j * (y0 * ((y3 * y5) - (x * b))) else: tmp = j * ((y3 * y4) * -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 (y3 <= -1.15e+138) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y3 <= -3.7e-51) tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y3 <= 4.4e-240) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (y3 <= 1.6e-33) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 7.8e+48) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y3 <= 2.55e+184) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(x * b)))); else tmp = Float64(j * Float64(Float64(y3 * y4) * Float64(-y1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.15e+138) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y3 <= -3.7e-51) tmp = j * (i * ((x * y1) - (t * y5))); elseif (y3 <= 4.4e-240) tmp = i * (y1 * ((x * j) - (z * k))); elseif (y3 <= 1.6e-33) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 7.8e+48) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y3 <= 2.55e+184) tmp = j * (y0 * ((y3 * y5) - (x * b))); else tmp = j * ((y3 * y4) * -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[y3, -1.15e+138], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.7e-51], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.4e-240], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.6e-33], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.8e+48], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.55e+184], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(y3 * y4), $MachinePrecision] * (-y1)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.15 \cdot 10^{+138}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -3.7 \cdot 10^{-51}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 4.4 \cdot 10^{-240}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y3 \leq 1.6 \cdot 10^{-33}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 7.8 \cdot 10^{+48}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 2.55 \cdot 10^{+184}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(\left(y3 \cdot y4\right) \cdot \left(-y1\right)\right)\\
\end{array}
\end{array}
if y3 < -1.15000000000000004e138Initial program 13.1%
Taylor expanded in y1 around 0 9.8%
Taylor expanded in y around inf 36.0%
Taylor expanded in y3 around inf 56.0%
if -1.15000000000000004e138 < y3 < -3.69999999999999973e-51Initial program 37.3%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in i around -inf 43.1%
mul-1-neg43.1%
*-commutative43.1%
Simplified43.1%
if -3.69999999999999973e-51 < y3 < 4.3999999999999999e-240Initial program 33.6%
Taylor expanded in y1 around inf 46.7%
associate--l+46.7%
mul-1-neg46.7%
distribute-rgt-neg-in46.7%
*-commutative46.7%
*-commutative46.7%
fma-neg48.3%
fma-neg48.3%
*-commutative48.3%
distribute-rgt-neg-in48.3%
mul-1-neg48.3%
remove-double-neg48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in i around inf 43.9%
if 4.3999999999999999e-240 < y3 < 1.59999999999999988e-33Initial program 28.8%
Taylor expanded in j around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
*-commutative38.3%
Simplified38.3%
Taylor expanded in b around inf 49.2%
if 1.59999999999999988e-33 < y3 < 7.8000000000000002e48Initial program 37.3%
Taylor expanded in y1 around inf 53.3%
associate--l+53.3%
mul-1-neg53.3%
distribute-rgt-neg-in53.3%
*-commutative53.3%
*-commutative53.3%
fma-neg58.5%
fma-neg58.5%
*-commutative58.5%
distribute-rgt-neg-in58.5%
mul-1-neg58.5%
remove-double-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in y4 around inf 46.7%
mul-1-neg46.7%
+-commutative46.7%
sub-neg46.7%
*-commutative46.7%
*-commutative46.7%
Simplified46.7%
if 7.8000000000000002e48 < y3 < 2.5500000000000001e184Initial program 27.6%
Taylor expanded in j around inf 45.0%
+-commutative45.0%
mul-1-neg45.0%
unsub-neg45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y0 around -inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
sub-neg52.3%
*-commutative52.3%
Simplified52.3%
if 2.5500000000000001e184 < y3 Initial program 8.0%
Taylor expanded in j around inf 36.3%
+-commutative36.3%
mul-1-neg36.3%
unsub-neg36.3%
*-commutative36.3%
Simplified36.3%
Taylor expanded in y4 around inf 52.7%
*-commutative52.7%
Simplified52.7%
Taylor expanded in t around 0 52.8%
mul-1-neg52.8%
*-commutative52.8%
distribute-rgt-neg-in52.8%
*-commutative52.8%
Simplified52.8%
Final simplification48.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.6e+139)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y3 -5.8e-52)
(* j (* i (- (* x y1) (* t y5))))
(if (<= y3 1.52e-239)
(* i (* y1 (- (* x j) (* z k))))
(if (<= y3 5.8e-80)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 2.8e+58)
(* y (* k (- (* i y5) (* b y4))))
(if (<= y3 2.65e+172)
(* y (* x (- (* a b) (* c i))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.6e+139) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y3 <= -5.8e-52) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= 1.52e-239) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 5.8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 2.8e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 2.65e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.6d+139)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y3 <= (-5.8d-52)) then
tmp = j * (i * ((x * y1) - (t * y5)))
else if (y3 <= 1.52d-239) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (y3 <= 5.8d-80) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 2.8d+58) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (y3 <= 2.65d+172) then
tmp = y * (x * ((a * b) - (c * i)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.6e+139) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y3 <= -5.8e-52) {
tmp = j * (i * ((x * y1) - (t * y5)));
} else if (y3 <= 1.52e-239) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 5.8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 2.8e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 2.65e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.6e+139: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y3 <= -5.8e-52: tmp = j * (i * ((x * y1) - (t * y5))) elif y3 <= 1.52e-239: tmp = i * (y1 * ((x * j) - (z * k))) elif y3 <= 5.8e-80: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 2.8e+58: tmp = y * (k * ((i * y5) - (b * y4))) elif y3 <= 2.65e+172: tmp = y * (x * ((a * b) - (c * i))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.6e+139) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y3 <= -5.8e-52) tmp = Float64(j * Float64(i * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y3 <= 1.52e-239) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (y3 <= 5.8e-80) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 2.8e+58) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 2.65e+172) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.6e+139) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y3 <= -5.8e-52) tmp = j * (i * ((x * y1) - (t * y5))); elseif (y3 <= 1.52e-239) tmp = i * (y1 * ((x * j) - (z * k))); elseif (y3 <= 5.8e-80) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 2.8e+58) tmp = y * (k * ((i * y5) - (b * y4))); elseif (y3 <= 2.65e+172) tmp = y * (x * ((a * b) - (c * i))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.6e+139], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -5.8e-52], N[(j * N[(i * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.52e-239], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.8e-80], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.8e+58], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.65e+172], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.6 \cdot 10^{+139}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq -5.8 \cdot 10^{-52}:\\
\;\;\;\;j \cdot \left(i \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 1.52 \cdot 10^{-239}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y3 \leq 5.8 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 2.8 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.65 \cdot 10^{+172}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.6000000000000001e139Initial program 13.1%
Taylor expanded in y1 around 0 9.8%
Taylor expanded in y around inf 36.0%
Taylor expanded in y3 around inf 56.0%
if -1.6000000000000001e139 < y3 < -5.8000000000000003e-52Initial program 37.3%
Taylor expanded in j around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
*-commutative42.7%
Simplified42.7%
Taylor expanded in i around -inf 43.1%
mul-1-neg43.1%
*-commutative43.1%
Simplified43.1%
if -5.8000000000000003e-52 < y3 < 1.51999999999999995e-239Initial program 33.6%
Taylor expanded in y1 around inf 46.7%
associate--l+46.7%
mul-1-neg46.7%
distribute-rgt-neg-in46.7%
*-commutative46.7%
*-commutative46.7%
fma-neg48.3%
fma-neg48.3%
*-commutative48.3%
distribute-rgt-neg-in48.3%
mul-1-neg48.3%
remove-double-neg48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in i around inf 43.9%
if 1.51999999999999995e-239 < y3 < 5.79999999999999996e-80Initial program 28.9%
Taylor expanded in j around inf 37.2%
+-commutative37.2%
mul-1-neg37.2%
unsub-neg37.2%
*-commutative37.2%
Simplified37.2%
Taylor expanded in b around inf 52.4%
if 5.79999999999999996e-80 < y3 < 2.7999999999999998e58Initial program 36.0%
Taylor expanded in y1 around 0 22.0%
Taylor expanded in y around inf 43.3%
Taylor expanded in k around inf 43.9%
mul-1-neg43.9%
cancel-sign-sub-inv43.9%
fma-udef43.9%
distribute-rgt-neg-in43.9%
fma-udef43.9%
cancel-sign-sub-inv43.9%
Simplified43.9%
if 2.7999999999999998e58 < y3 < 2.65e172Initial program 24.0%
Taylor expanded in y1 around 0 20.2%
Taylor expanded in y around inf 48.9%
Taylor expanded in x around inf 52.9%
if 2.65e172 < y3 Initial program 11.1%
Taylor expanded in j around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in y4 around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification48.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.7e+199)
(* j (* y4 (* y1 (- y3))))
(if (<= y3 -3.4e-28)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y3 6.8e-241)
(* i (* y1 (- (* x j) (* z k))))
(if (<= y3 8e-80)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 4.1e+58)
(* y (* k (- (* i y5) (* b y4))))
(if (<= y3 1.05e+172)
(* y (* x (- (* a b) (* c i))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e+199) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -3.4e-28) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= 6.8e-241) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 4.1e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1.05e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.7d+199)) then
tmp = j * (y4 * (y1 * -y3))
else if (y3 <= (-3.4d-28)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y3 <= 6.8d-241) then
tmp = i * (y1 * ((x * j) - (z * k)))
else if (y3 <= 8d-80) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 4.1d+58) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (y3 <= 1.05d+172) then
tmp = y * (x * ((a * b) - (c * i)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.7e+199) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -3.4e-28) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= 6.8e-241) {
tmp = i * (y1 * ((x * j) - (z * k)));
} else if (y3 <= 8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 4.1e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1.05e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.7e+199: tmp = j * (y4 * (y1 * -y3)) elif y3 <= -3.4e-28: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y3 <= 6.8e-241: tmp = i * (y1 * ((x * j) - (z * k))) elif y3 <= 8e-80: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 4.1e+58: tmp = y * (k * ((i * y5) - (b * y4))) elif y3 <= 1.05e+172: tmp = y * (x * ((a * b) - (c * i))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.7e+199) tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); elseif (y3 <= -3.4e-28) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y3 <= 6.8e-241) tmp = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))); elseif (y3 <= 8e-80) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 4.1e+58) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 1.05e+172) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.7e+199) tmp = j * (y4 * (y1 * -y3)); elseif (y3 <= -3.4e-28) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y3 <= 6.8e-241) tmp = i * (y1 * ((x * j) - (z * k))); elseif (y3 <= 8e-80) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 4.1e+58) tmp = y * (k * ((i * y5) - (b * y4))); elseif (y3 <= 1.05e+172) tmp = y * (x * ((a * b) - (c * i))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.7e+199], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.4e-28], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 6.8e-241], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8e-80], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.1e+58], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.05e+172], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.7 \cdot 10^{+199}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y3 \leq -3.4 \cdot 10^{-28}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq 6.8 \cdot 10^{-241}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{elif}\;y3 \leq 8 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 4.1 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 1.05 \cdot 10^{+172}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.7e199Initial program 10.8%
Taylor expanded in j around inf 37.6%
+-commutative37.6%
mul-1-neg37.6%
unsub-neg37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in y4 around inf 59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in t around 0 59.4%
mul-1-neg59.4%
distribute-lft-neg-out59.4%
*-commutative59.4%
Simplified59.4%
if -1.7e199 < y3 < -3.4000000000000001e-28Initial program 34.7%
Taylor expanded in j around inf 42.9%
+-commutative42.9%
mul-1-neg42.9%
unsub-neg42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in y5 around -inf 47.1%
associate-*r*47.1%
neg-mul-147.1%
*-commutative47.1%
Simplified47.1%
if -3.4000000000000001e-28 < y3 < 6.7999999999999998e-241Initial program 32.1%
Taylor expanded in y1 around inf 46.1%
associate--l+46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
*-commutative46.1%
fma-neg49.1%
fma-neg49.1%
*-commutative49.1%
distribute-rgt-neg-in49.1%
mul-1-neg49.1%
remove-double-neg49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in i around inf 43.5%
if 6.7999999999999998e-241 < y3 < 7.99999999999999969e-80Initial program 28.9%
Taylor expanded in j around inf 37.2%
+-commutative37.2%
mul-1-neg37.2%
unsub-neg37.2%
*-commutative37.2%
Simplified37.2%
Taylor expanded in b around inf 52.4%
if 7.99999999999999969e-80 < y3 < 4.1e58Initial program 36.0%
Taylor expanded in y1 around 0 22.0%
Taylor expanded in y around inf 43.3%
Taylor expanded in k around inf 43.9%
mul-1-neg43.9%
cancel-sign-sub-inv43.9%
fma-udef43.9%
distribute-rgt-neg-in43.9%
fma-udef43.9%
cancel-sign-sub-inv43.9%
Simplified43.9%
if 4.1e58 < y3 < 1.0500000000000001e172Initial program 24.0%
Taylor expanded in y1 around 0 20.2%
Taylor expanded in y around inf 48.9%
Taylor expanded in x around inf 52.9%
if 1.0500000000000001e172 < y3 Initial program 11.1%
Taylor expanded in j around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in y4 around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification48.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.46e+199)
(* j (* y4 (* y1 (- y3))))
(if (<= y3 -3.2e-13)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y3 -1.7e-293)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= y3 2.9e-80)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 4.8e+58)
(* y (* k (- (* i y5) (* b y4))))
(if (<= y3 1.55e+175)
(* y (* x (- (* a b) (* c i))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.46e+199) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -3.2e-13) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -1.7e-293) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 2.9e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 4.8e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1.55e+175) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.46d+199)) then
tmp = j * (y4 * (y1 * -y3))
else if (y3 <= (-3.2d-13)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y3 <= (-1.7d-293)) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (y3 <= 2.9d-80) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 4.8d+58) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (y3 <= 1.55d+175) then
tmp = y * (x * ((a * b) - (c * i)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.46e+199) {
tmp = j * (y4 * (y1 * -y3));
} else if (y3 <= -3.2e-13) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -1.7e-293) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 2.9e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 4.8e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 1.55e+175) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.46e+199: tmp = j * (y4 * (y1 * -y3)) elif y3 <= -3.2e-13: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y3 <= -1.7e-293: tmp = x * (y1 * ((i * j) - (a * y2))) elif y3 <= 2.9e-80: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 4.8e+58: tmp = y * (k * ((i * y5) - (b * y4))) elif y3 <= 1.55e+175: tmp = y * (x * ((a * b) - (c * i))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.46e+199) tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); elseif (y3 <= -3.2e-13) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y3 <= -1.7e-293) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (y3 <= 2.9e-80) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 4.8e+58) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 1.55e+175) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.46e+199) tmp = j * (y4 * (y1 * -y3)); elseif (y3 <= -3.2e-13) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y3 <= -1.7e-293) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (y3 <= 2.9e-80) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 4.8e+58) tmp = y * (k * ((i * y5) - (b * y4))); elseif (y3 <= 1.55e+175) tmp = y * (x * ((a * b) - (c * i))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.46e+199], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.2e-13], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.7e-293], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.9e-80], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+58], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.55e+175], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.46 \cdot 10^{+199}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y3 \leq -3.2 \cdot 10^{-13}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq -1.7 \cdot 10^{-293}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 2.9 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 1.55 \cdot 10^{+175}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.46e199Initial program 10.8%
Taylor expanded in j around inf 37.6%
+-commutative37.6%
mul-1-neg37.6%
unsub-neg37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in y4 around inf 59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in t around 0 59.4%
mul-1-neg59.4%
distribute-lft-neg-out59.4%
*-commutative59.4%
Simplified59.4%
if -1.46e199 < y3 < -3.2e-13Initial program 29.3%
Taylor expanded in j around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y5 around -inf 50.8%
associate-*r*50.8%
neg-mul-150.8%
*-commutative50.8%
Simplified50.8%
if -3.2e-13 < y3 < -1.7e-293Initial program 37.4%
Taylor expanded in y1 around inf 48.9%
associate--l+48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
*-commutative48.9%
*-commutative48.9%
fma-neg50.7%
fma-neg50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
mul-1-neg50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in x around inf 47.3%
if -1.7e-293 < y3 < 2.89999999999999998e-80Initial program 29.5%
Taylor expanded in j around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in b around inf 49.5%
if 2.89999999999999998e-80 < y3 < 4.8e58Initial program 36.0%
Taylor expanded in y1 around 0 22.0%
Taylor expanded in y around inf 43.3%
Taylor expanded in k around inf 43.9%
mul-1-neg43.9%
cancel-sign-sub-inv43.9%
fma-udef43.9%
distribute-rgt-neg-in43.9%
fma-udef43.9%
cancel-sign-sub-inv43.9%
Simplified43.9%
if 4.8e58 < y3 < 1.54999999999999992e175Initial program 24.0%
Taylor expanded in y1 around 0 20.2%
Taylor expanded in y around inf 48.9%
Taylor expanded in x around inf 52.9%
if 1.54999999999999992e175 < y3 Initial program 11.1%
Taylor expanded in j around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in y4 around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification50.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.25e+82)
(* y1 (* y3 (- (* z a) (* j y4))))
(if (<= y3 -7.2e-13)
(* j (* y5 (- (* y0 y3) (* t i))))
(if (<= y3 -2.5e-295)
(* x (* y1 (- (* i j) (* a y2))))
(if (<= y3 9.8e-80)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 2.6e+58)
(* y (* k (- (* i y5) (* b y4))))
(if (<= y3 3.1e+172)
(* y (* x (- (* a b) (* c i))))
(* j (* y4 (- (* t b) (* y1 y3)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.25e+82) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -7.2e-13) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -2.5e-295) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 9.8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 2.6e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 3.1e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.25d+82)) then
tmp = y1 * (y3 * ((z * a) - (j * y4)))
else if (y3 <= (-7.2d-13)) then
tmp = j * (y5 * ((y0 * y3) - (t * i)))
else if (y3 <= (-2.5d-295)) then
tmp = x * (y1 * ((i * j) - (a * y2)))
else if (y3 <= 9.8d-80) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y3 <= 2.6d+58) then
tmp = y * (k * ((i * y5) - (b * y4)))
else if (y3 <= 3.1d+172) then
tmp = y * (x * ((a * b) - (c * i)))
else
tmp = j * (y4 * ((t * b) - (y1 * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.25e+82) {
tmp = y1 * (y3 * ((z * a) - (j * y4)));
} else if (y3 <= -7.2e-13) {
tmp = j * (y5 * ((y0 * y3) - (t * i)));
} else if (y3 <= -2.5e-295) {
tmp = x * (y1 * ((i * j) - (a * y2)));
} else if (y3 <= 9.8e-80) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 2.6e+58) {
tmp = y * (k * ((i * y5) - (b * y4)));
} else if (y3 <= 3.1e+172) {
tmp = y * (x * ((a * b) - (c * i)));
} else {
tmp = j * (y4 * ((t * b) - (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.25e+82: tmp = y1 * (y3 * ((z * a) - (j * y4))) elif y3 <= -7.2e-13: tmp = j * (y5 * ((y0 * y3) - (t * i))) elif y3 <= -2.5e-295: tmp = x * (y1 * ((i * j) - (a * y2))) elif y3 <= 9.8e-80: tmp = b * (j * ((t * y4) - (x * y0))) elif y3 <= 2.6e+58: tmp = y * (k * ((i * y5) - (b * y4))) elif y3 <= 3.1e+172: tmp = y * (x * ((a * b) - (c * i))) else: tmp = j * (y4 * ((t * b) - (y1 * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.25e+82) tmp = Float64(y1 * Float64(y3 * Float64(Float64(z * a) - Float64(j * y4)))); elseif (y3 <= -7.2e-13) tmp = Float64(j * Float64(y5 * Float64(Float64(y0 * y3) - Float64(t * i)))); elseif (y3 <= -2.5e-295) tmp = Float64(x * Float64(y1 * Float64(Float64(i * j) - Float64(a * y2)))); elseif (y3 <= 9.8e-80) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 2.6e+58) tmp = Float64(y * Float64(k * Float64(Float64(i * y5) - Float64(b * y4)))); elseif (y3 <= 3.1e+172) tmp = Float64(y * Float64(x * Float64(Float64(a * b) - Float64(c * i)))); else tmp = Float64(j * Float64(y4 * Float64(Float64(t * b) - Float64(y1 * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.25e+82) tmp = y1 * (y3 * ((z * a) - (j * y4))); elseif (y3 <= -7.2e-13) tmp = j * (y5 * ((y0 * y3) - (t * i))); elseif (y3 <= -2.5e-295) tmp = x * (y1 * ((i * j) - (a * y2))); elseif (y3 <= 9.8e-80) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y3 <= 2.6e+58) tmp = y * (k * ((i * y5) - (b * y4))); elseif (y3 <= 3.1e+172) tmp = y * (x * ((a * b) - (c * i))); else tmp = j * (y4 * ((t * b) - (y1 * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.25e+82], N[(y1 * N[(y3 * N[(N[(z * a), $MachinePrecision] - N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -7.2e-13], N[(j * N[(y5 * N[(N[(y0 * y3), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -2.5e-295], N[(x * N[(y1 * N[(N[(i * j), $MachinePrecision] - N[(a * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9.8e-80], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.6e+58], N[(y * N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.1e+172], N[(y * N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(N[(t * b), $MachinePrecision] - N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.25 \cdot 10^{+82}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \left(z \cdot a - j \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq -7.2 \cdot 10^{-13}:\\
\;\;\;\;j \cdot \left(y5 \cdot \left(y0 \cdot y3 - t \cdot i\right)\right)\\
\mathbf{elif}\;y3 \leq -2.5 \cdot 10^{-295}:\\
\;\;\;\;x \cdot \left(y1 \cdot \left(i \cdot j - a \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 9.8 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 2.6 \cdot 10^{+58}:\\
\;\;\;\;y \cdot \left(k \cdot \left(i \cdot y5 - b \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 3.1 \cdot 10^{+172}:\\
\;\;\;\;y \cdot \left(x \cdot \left(a \cdot b - c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b - y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y3 < -1.25000000000000004e82Initial program 16.0%
Taylor expanded in y1 around inf 44.0%
associate--l+44.0%
mul-1-neg44.0%
distribute-rgt-neg-in44.0%
*-commutative44.0%
*-commutative44.0%
fma-neg46.3%
fma-neg46.3%
*-commutative46.3%
distribute-rgt-neg-in46.3%
mul-1-neg46.3%
remove-double-neg46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in y3 around inf 53.8%
if -1.25000000000000004e82 < y3 < -7.1999999999999996e-13Initial program 39.4%
Taylor expanded in j around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in y5 around -inf 53.3%
associate-*r*53.3%
neg-mul-153.3%
*-commutative53.3%
Simplified53.3%
if -7.1999999999999996e-13 < y3 < -2.50000000000000004e-295Initial program 37.4%
Taylor expanded in y1 around inf 48.9%
associate--l+48.9%
mul-1-neg48.9%
distribute-rgt-neg-in48.9%
*-commutative48.9%
*-commutative48.9%
fma-neg50.7%
fma-neg50.7%
*-commutative50.7%
distribute-rgt-neg-in50.7%
mul-1-neg50.7%
remove-double-neg50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in x around inf 47.3%
if -2.50000000000000004e-295 < y3 < 9.79999999999999981e-80Initial program 29.5%
Taylor expanded in j around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
*-commutative42.5%
Simplified42.5%
Taylor expanded in b around inf 49.5%
if 9.79999999999999981e-80 < y3 < 2.59999999999999988e58Initial program 36.0%
Taylor expanded in y1 around 0 22.0%
Taylor expanded in y around inf 43.3%
Taylor expanded in k around inf 43.9%
mul-1-neg43.9%
cancel-sign-sub-inv43.9%
fma-udef43.9%
distribute-rgt-neg-in43.9%
fma-udef43.9%
cancel-sign-sub-inv43.9%
Simplified43.9%
if 2.59999999999999988e58 < y3 < 3.09999999999999988e172Initial program 24.0%
Taylor expanded in y1 around 0 20.2%
Taylor expanded in y around inf 48.9%
Taylor expanded in x around inf 52.9%
if 3.09999999999999988e172 < y3 Initial program 11.1%
Taylor expanded in j around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in y4 around inf 52.5%
*-commutative52.5%
Simplified52.5%
Final simplification50.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y (* x b)))))
(if (<= b -1.55e+202)
(* (- a) (* b (* z t)))
(if (<= b -8.5e+56)
t_1
(if (<= b -5.2e-294)
(* a (* y1 (* z y3)))
(if (<= b 2.1e-215)
(* c (* z (* t i)))
(if (<= b 2.4e-10)
(* a (* y1 (* x (- y2))))
(if (<= b 5.8e+114)
t_1
(if (<= b 5e+247)
(* a (* x (- (* y1 y2))))
(* b (* y (* x a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double tmp;
if (b <= -1.55e+202) {
tmp = -a * (b * (z * t));
} else if (b <= -8.5e+56) {
tmp = t_1;
} else if (b <= -5.2e-294) {
tmp = a * (y1 * (z * y3));
} else if (b <= 2.1e-215) {
tmp = c * (z * (t * i));
} else if (b <= 2.4e-10) {
tmp = a * (y1 * (x * -y2));
} else if (b <= 5.8e+114) {
tmp = t_1;
} else if (b <= 5e+247) {
tmp = a * (x * -(y1 * y2));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y * (x * b))
if (b <= (-1.55d+202)) then
tmp = -a * (b * (z * t))
else if (b <= (-8.5d+56)) then
tmp = t_1
else if (b <= (-5.2d-294)) then
tmp = a * (y1 * (z * y3))
else if (b <= 2.1d-215) then
tmp = c * (z * (t * i))
else if (b <= 2.4d-10) then
tmp = a * (y1 * (x * -y2))
else if (b <= 5.8d+114) then
tmp = t_1
else if (b <= 5d+247) then
tmp = a * (x * -(y1 * y2))
else
tmp = b * (y * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double tmp;
if (b <= -1.55e+202) {
tmp = -a * (b * (z * t));
} else if (b <= -8.5e+56) {
tmp = t_1;
} else if (b <= -5.2e-294) {
tmp = a * (y1 * (z * y3));
} else if (b <= 2.1e-215) {
tmp = c * (z * (t * i));
} else if (b <= 2.4e-10) {
tmp = a * (y1 * (x * -y2));
} else if (b <= 5.8e+114) {
tmp = t_1;
} else if (b <= 5e+247) {
tmp = a * (x * -(y1 * y2));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y * (x * b)) tmp = 0 if b <= -1.55e+202: tmp = -a * (b * (z * t)) elif b <= -8.5e+56: tmp = t_1 elif b <= -5.2e-294: tmp = a * (y1 * (z * y3)) elif b <= 2.1e-215: tmp = c * (z * (t * i)) elif b <= 2.4e-10: tmp = a * (y1 * (x * -y2)) elif b <= 5.8e+114: tmp = t_1 elif b <= 5e+247: tmp = a * (x * -(y1 * y2)) else: tmp = b * (y * (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (b <= -1.55e+202) tmp = Float64(Float64(-a) * Float64(b * Float64(z * t))); elseif (b <= -8.5e+56) tmp = t_1; elseif (b <= -5.2e-294) tmp = Float64(a * Float64(y1 * Float64(z * y3))); elseif (b <= 2.1e-215) tmp = Float64(c * Float64(z * Float64(t * i))); elseif (b <= 2.4e-10) tmp = Float64(a * Float64(y1 * Float64(x * Float64(-y2)))); elseif (b <= 5.8e+114) tmp = t_1; elseif (b <= 5e+247) tmp = Float64(a * Float64(x * Float64(-Float64(y1 * y2)))); else tmp = Float64(b * Float64(y * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y * (x * b)); tmp = 0.0; if (b <= -1.55e+202) tmp = -a * (b * (z * t)); elseif (b <= -8.5e+56) tmp = t_1; elseif (b <= -5.2e-294) tmp = a * (y1 * (z * y3)); elseif (b <= 2.1e-215) tmp = c * (z * (t * i)); elseif (b <= 2.4e-10) tmp = a * (y1 * (x * -y2)); elseif (b <= 5.8e+114) tmp = t_1; elseif (b <= 5e+247) tmp = a * (x * -(y1 * y2)); else tmp = b * (y * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e+202], N[((-a) * N[(b * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e+56], t$95$1, If[LessEqual[b, -5.2e-294], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-215], N[(c * N[(z * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-10], N[(a * N[(y1 * N[(x * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.8e+114], t$95$1, If[LessEqual[b, 5e+247], N[(a * N[(x * (-N[(y1 * y2), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{+202}:\\
\;\;\;\;\left(-a\right) \cdot \left(b \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.2 \cdot 10^{-294}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-215}:\\
\;\;\;\;c \cdot \left(z \cdot \left(t \cdot i\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(x \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;b \leq 5.8 \cdot 10^{+114}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{+247}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-y1 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if b < -1.54999999999999996e202Initial program 16.7%
Taylor expanded in y1 around 0 11.1%
Taylor expanded in a around inf 77.8%
*-commutative77.8%
mul-1-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in z around inf 56.7%
mul-1-neg56.7%
distribute-rgt-neg-in56.7%
distribute-rgt-neg-in56.7%
distribute-rgt-neg-in56.7%
Simplified56.7%
if -1.54999999999999996e202 < b < -8.4999999999999998e56 or 2.4e-10 < b < 5.8000000000000001e114Initial program 19.0%
Taylor expanded in y1 around 0 19.0%
Taylor expanded in a around inf 34.9%
*-commutative34.9%
mul-1-neg34.9%
*-commutative34.9%
*-commutative34.9%
Simplified34.9%
Taylor expanded in x around inf 30.5%
associate-*r*37.1%
*-commutative37.1%
Simplified37.1%
if -8.4999999999999998e56 < b < -5.1999999999999999e-294Initial program 28.2%
Taylor expanded in y1 around inf 33.2%
associate--l+33.2%
mul-1-neg33.2%
distribute-rgt-neg-in33.2%
*-commutative33.2%
*-commutative33.2%
fma-neg33.2%
fma-neg33.2%
*-commutative33.2%
distribute-rgt-neg-in33.2%
mul-1-neg33.2%
remove-double-neg33.2%
*-commutative33.2%
Simplified33.2%
Taylor expanded in a around inf 29.4%
Taylor expanded in y3 around inf 22.9%
if -5.1999999999999999e-294 < b < 2.1e-215Initial program 59.4%
Taylor expanded in c around inf 51.8%
+-commutative51.8%
mul-1-neg51.8%
unsub-neg51.8%
*-commutative51.8%
*-commutative51.8%
*-commutative51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in i around inf 35.8%
Taylor expanded in t around inf 27.3%
associate-*r*35.2%
Simplified35.2%
if 2.1e-215 < b < 2.4e-10Initial program 35.8%
Taylor expanded in y1 around inf 46.1%
associate--l+46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
*-commutative46.1%
fma-neg50.9%
fma-neg50.9%
*-commutative50.9%
distribute-rgt-neg-in50.9%
mul-1-neg50.9%
remove-double-neg50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in a around inf 34.6%
Taylor expanded in y3 around 0 29.9%
mul-1-neg29.9%
distribute-lft-neg-out29.9%
*-commutative29.9%
Simplified29.9%
if 5.8000000000000001e114 < b < 5.00000000000000023e247Initial program 22.2%
Taylor expanded in y1 around inf 51.9%
associate--l+51.9%
mul-1-neg51.9%
distribute-rgt-neg-in51.9%
*-commutative51.9%
*-commutative51.9%
fma-neg51.9%
fma-neg51.9%
*-commutative51.9%
distribute-rgt-neg-in51.9%
mul-1-neg51.9%
remove-double-neg51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in a around inf 34.2%
Taylor expanded in y3 around 0 38.7%
mul-1-neg38.7%
*-commutative38.7%
distribute-rgt-neg-in38.7%
Simplified38.7%
if 5.00000000000000023e247 < b Initial program 14.0%
Taylor expanded in y1 around 0 26.7%
Taylor expanded in a around inf 33.6%
*-commutative33.6%
mul-1-neg33.6%
*-commutative33.6%
*-commutative33.6%
Simplified33.6%
Taylor expanded in x around inf 47.9%
expm1-log1p-u27.9%
expm1-udef28.0%
associate-*r*27.9%
*-commutative27.9%
*-commutative27.9%
Applied egg-rr27.9%
expm1-def27.8%
expm1-log1p47.8%
*-commutative47.8%
*-commutative47.8%
associate-*r*48.0%
associate-*r*48.1%
Simplified48.1%
Final simplification34.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y1 (- (* z y3) (* x y2))))))
(if (<= i -5.4e+154)
(* c (* z (* t i)))
(if (<= i 9.5e-187)
t_1
(if (<= i 1.32e-110)
(* y0 (* z (* c (- y3))))
(if (<= i 3400000000000.0)
t_1
(if (or (<= i 1.5e+82) (not (<= i 5.6e+198)))
(* c (* y (* i (- x))))
(* j (* y4 (* y1 (- 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 = a * (y1 * ((z * y3) - (x * y2)));
double tmp;
if (i <= -5.4e+154) {
tmp = c * (z * (t * i));
} else if (i <= 9.5e-187) {
tmp = t_1;
} else if (i <= 1.32e-110) {
tmp = y0 * (z * (c * -y3));
} else if (i <= 3400000000000.0) {
tmp = t_1;
} else if ((i <= 1.5e+82) || !(i <= 5.6e+198)) {
tmp = c * (y * (i * -x));
} else {
tmp = j * (y4 * (y1 * -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 = a * (y1 * ((z * y3) - (x * y2)))
if (i <= (-5.4d+154)) then
tmp = c * (z * (t * i))
else if (i <= 9.5d-187) then
tmp = t_1
else if (i <= 1.32d-110) then
tmp = y0 * (z * (c * -y3))
else if (i <= 3400000000000.0d0) then
tmp = t_1
else if ((i <= 1.5d+82) .or. (.not. (i <= 5.6d+198))) then
tmp = c * (y * (i * -x))
else
tmp = j * (y4 * (y1 * -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 = a * (y1 * ((z * y3) - (x * y2)));
double tmp;
if (i <= -5.4e+154) {
tmp = c * (z * (t * i));
} else if (i <= 9.5e-187) {
tmp = t_1;
} else if (i <= 1.32e-110) {
tmp = y0 * (z * (c * -y3));
} else if (i <= 3400000000000.0) {
tmp = t_1;
} else if ((i <= 1.5e+82) || !(i <= 5.6e+198)) {
tmp = c * (y * (i * -x));
} else {
tmp = j * (y4 * (y1 * -y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y1 * ((z * y3) - (x * y2))) tmp = 0 if i <= -5.4e+154: tmp = c * (z * (t * i)) elif i <= 9.5e-187: tmp = t_1 elif i <= 1.32e-110: tmp = y0 * (z * (c * -y3)) elif i <= 3400000000000.0: tmp = t_1 elif (i <= 1.5e+82) or not (i <= 5.6e+198): tmp = c * (y * (i * -x)) else: tmp = j * (y4 * (y1 * -y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))) tmp = 0.0 if (i <= -5.4e+154) tmp = Float64(c * Float64(z * Float64(t * i))); elseif (i <= 9.5e-187) tmp = t_1; elseif (i <= 1.32e-110) tmp = Float64(y0 * Float64(z * Float64(c * Float64(-y3)))); elseif (i <= 3400000000000.0) tmp = t_1; elseif ((i <= 1.5e+82) || !(i <= 5.6e+198)) tmp = Float64(c * Float64(y * Float64(i * Float64(-x)))); else tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y1 * ((z * y3) - (x * y2))); tmp = 0.0; if (i <= -5.4e+154) tmp = c * (z * (t * i)); elseif (i <= 9.5e-187) tmp = t_1; elseif (i <= 1.32e-110) tmp = y0 * (z * (c * -y3)); elseif (i <= 3400000000000.0) tmp = t_1; elseif ((i <= 1.5e+82) || ~((i <= 5.6e+198))) tmp = c * (y * (i * -x)); else tmp = j * (y4 * (y1 * -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[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.4e+154], N[(c * N[(z * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.5e-187], t$95$1, If[LessEqual[i, 1.32e-110], N[(y0 * N[(z * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3400000000000.0], t$95$1, If[Or[LessEqual[i, 1.5e+82], N[Not[LessEqual[i, 5.6e+198]], $MachinePrecision]], N[(c * N[(y * N[(i * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\mathbf{if}\;i \leq -5.4 \cdot 10^{+154}:\\
\;\;\;\;c \cdot \left(z \cdot \left(t \cdot i\right)\right)\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{-187}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.32 \cdot 10^{-110}:\\
\;\;\;\;y0 \cdot \left(z \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;i \leq 3400000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{+82} \lor \neg \left(i \leq 5.6 \cdot 10^{+198}\right):\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(-x\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\end{array}
\end{array}
if i < -5.40000000000000011e154Initial program 31.0%
Taylor expanded in c around inf 38.1%
+-commutative38.1%
mul-1-neg38.1%
unsub-neg38.1%
*-commutative38.1%
*-commutative38.1%
*-commutative38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in i around inf 48.7%
Taylor expanded in t around inf 42.2%
associate-*r*52.2%
Simplified52.2%
if -5.40000000000000011e154 < i < 9.49999999999999936e-187 or 1.32e-110 < i < 3.4e12Initial program 33.6%
Taylor expanded in y1 around inf 46.1%
associate--l+46.1%
mul-1-neg46.1%
distribute-rgt-neg-in46.1%
*-commutative46.1%
*-commutative46.1%
fma-neg48.1%
fma-neg48.1%
*-commutative48.1%
distribute-rgt-neg-in48.1%
mul-1-neg48.1%
remove-double-neg48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in a around inf 35.9%
if 9.49999999999999936e-187 < i < 1.32e-110Initial program 26.7%
Taylor expanded in y0 around inf 47.2%
Taylor expanded in z around -inf 55.1%
mul-1-neg55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in y3 around inf 47.5%
*-commutative47.5%
Simplified47.5%
if 3.4e12 < i < 1.49999999999999995e82 or 5.59999999999999999e198 < i Initial program 15.4%
Taylor expanded in c around inf 20.7%
+-commutative20.7%
mul-1-neg20.7%
unsub-neg20.7%
*-commutative20.7%
*-commutative20.7%
*-commutative20.7%
*-commutative20.7%
Simplified20.7%
Taylor expanded in i around inf 53.4%
Taylor expanded in t around 0 44.0%
mul-1-neg44.0%
distribute-rgt-neg-in44.0%
associate-*r*46.4%
*-commutative46.4%
Simplified46.4%
if 1.49999999999999995e82 < i < 5.59999999999999999e198Initial program 9.8%
Taylor expanded in j around inf 37.6%
+-commutative37.6%
mul-1-neg37.6%
unsub-neg37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in y4 around inf 37.4%
*-commutative37.4%
Simplified37.4%
Taylor expanded in t around 0 46.4%
mul-1-neg46.4%
distribute-lft-neg-out46.4%
*-commutative46.4%
Simplified46.4%
Final simplification41.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* z (* t i)))))
(if (<= t -3e+87)
t_1
(if (<= t 5.7e-268)
(* a (* y1 (* x (- y2))))
(if (<= t 5.9e-130)
(* b (* k (* z y0)))
(if (<= t 9e-73)
(* a (* (* x y) b))
(if (<= t 280000000000.0)
(* a (* y1 (* z y3)))
(if (<= t 7.5e+102) (* j (* b (* t y4))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (z * (t * i));
double tmp;
if (t <= -3e+87) {
tmp = t_1;
} else if (t <= 5.7e-268) {
tmp = a * (y1 * (x * -y2));
} else if (t <= 5.9e-130) {
tmp = b * (k * (z * y0));
} else if (t <= 9e-73) {
tmp = a * ((x * y) * b);
} else if (t <= 280000000000.0) {
tmp = a * (y1 * (z * y3));
} else if (t <= 7.5e+102) {
tmp = j * (b * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * (t * i))
if (t <= (-3d+87)) then
tmp = t_1
else if (t <= 5.7d-268) then
tmp = a * (y1 * (x * -y2))
else if (t <= 5.9d-130) then
tmp = b * (k * (z * y0))
else if (t <= 9d-73) then
tmp = a * ((x * y) * b)
else if (t <= 280000000000.0d0) then
tmp = a * (y1 * (z * y3))
else if (t <= 7.5d+102) then
tmp = j * (b * (t * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (z * (t * i));
double tmp;
if (t <= -3e+87) {
tmp = t_1;
} else if (t <= 5.7e-268) {
tmp = a * (y1 * (x * -y2));
} else if (t <= 5.9e-130) {
tmp = b * (k * (z * y0));
} else if (t <= 9e-73) {
tmp = a * ((x * y) * b);
} else if (t <= 280000000000.0) {
tmp = a * (y1 * (z * y3));
} else if (t <= 7.5e+102) {
tmp = j * (b * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (z * (t * i)) tmp = 0 if t <= -3e+87: tmp = t_1 elif t <= 5.7e-268: tmp = a * (y1 * (x * -y2)) elif t <= 5.9e-130: tmp = b * (k * (z * y0)) elif t <= 9e-73: tmp = a * ((x * y) * b) elif t <= 280000000000.0: tmp = a * (y1 * (z * y3)) elif t <= 7.5e+102: tmp = j * (b * (t * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(z * Float64(t * i))) tmp = 0.0 if (t <= -3e+87) tmp = t_1; elseif (t <= 5.7e-268) tmp = Float64(a * Float64(y1 * Float64(x * Float64(-y2)))); elseif (t <= 5.9e-130) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (t <= 9e-73) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (t <= 280000000000.0) tmp = Float64(a * Float64(y1 * Float64(z * y3))); elseif (t <= 7.5e+102) tmp = Float64(j * Float64(b * Float64(t * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (z * (t * i)); tmp = 0.0; if (t <= -3e+87) tmp = t_1; elseif (t <= 5.7e-268) tmp = a * (y1 * (x * -y2)); elseif (t <= 5.9e-130) tmp = b * (k * (z * y0)); elseif (t <= 9e-73) tmp = a * ((x * y) * b); elseif (t <= 280000000000.0) tmp = a * (y1 * (z * y3)); elseif (t <= 7.5e+102) tmp = j * (b * (t * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(z * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e+87], t$95$1, If[LessEqual[t, 5.7e-268], N[(a * N[(y1 * N[(x * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.9e-130], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-73], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 280000000000.0], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e+102], N[(j * N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(t \cdot i\right)\right)\\
\mathbf{if}\;t \leq -3 \cdot 10^{+87}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{-268}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(x \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;t \leq 5.9 \cdot 10^{-130}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-73}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;t \leq 280000000000:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(b \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.9999999999999999e87 or 7.5e102 < t Initial program 24.8%
Taylor expanded in c around inf 29.3%
+-commutative29.3%
mul-1-neg29.3%
unsub-neg29.3%
*-commutative29.3%
*-commutative29.3%
*-commutative29.3%
*-commutative29.3%
Simplified29.3%
Taylor expanded in i around inf 33.9%
Taylor expanded in t around inf 34.2%
associate-*r*39.1%
Simplified39.1%
if -2.9999999999999999e87 < t < 5.6999999999999998e-268Initial program 31.0%
Taylor expanded in y1 around inf 44.3%
associate--l+44.3%
mul-1-neg44.3%
distribute-rgt-neg-in44.3%
*-commutative44.3%
*-commutative44.3%
fma-neg48.7%
fma-neg48.7%
*-commutative48.7%
distribute-rgt-neg-in48.7%
mul-1-neg48.7%
remove-double-neg48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in a around inf 30.6%
Taylor expanded in y3 around 0 22.3%
mul-1-neg22.3%
distribute-lft-neg-out22.3%
*-commutative22.3%
Simplified22.3%
if 5.6999999999999998e-268 < t < 5.9000000000000003e-130Initial program 50.0%
Taylor expanded in y0 around inf 46.1%
Taylor expanded in z around -inf 37.6%
mul-1-neg37.6%
*-commutative37.6%
*-commutative37.6%
Simplified37.6%
Taylor expanded in y3 around 0 38.0%
if 5.9000000000000003e-130 < t < 9e-73Initial program 16.1%
Taylor expanded in y1 around 0 16.1%
Taylor expanded in a around inf 40.3%
*-commutative40.3%
mul-1-neg40.3%
*-commutative40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in x around inf 33.1%
if 9e-73 < t < 2.8e11Initial program 22.1%
Taylor expanded in y1 around inf 45.1%
associate--l+45.1%
mul-1-neg45.1%
distribute-rgt-neg-in45.1%
*-commutative45.1%
*-commutative45.1%
fma-neg45.1%
fma-neg45.1%
*-commutative45.1%
distribute-rgt-neg-in45.1%
mul-1-neg45.1%
remove-double-neg45.1%
*-commutative45.1%
Simplified45.1%
Taylor expanded in a around inf 39.8%
Taylor expanded in y3 around inf 34.9%
if 2.8e11 < t < 7.5e102Initial program 14.3%
Taylor expanded in j around inf 57.4%
+-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in y4 around inf 65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in t around inf 44.7%
*-commutative44.7%
Simplified44.7%
Final simplification32.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.9e+30)
(* c (* y (* i (- x))))
(if (<= y -2.4e-198)
(* a (* y1 (* z y3)))
(if (<= y -1.45e-306)
(* b (* j (* t y4)))
(if (<= y 6.2e-142)
(* a (* y1 (* x (- y2))))
(if (<= y 2.8e+64)
(* c (* i (* z t)))
(if (<= y 2.9e+194) (* j (* y4 (* t b))) (* b (* y (* x a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2.9e+30) {
tmp = c * (y * (i * -x));
} else if (y <= -2.4e-198) {
tmp = a * (y1 * (z * y3));
} else if (y <= -1.45e-306) {
tmp = b * (j * (t * y4));
} else if (y <= 6.2e-142) {
tmp = a * (y1 * (x * -y2));
} else if (y <= 2.8e+64) {
tmp = c * (i * (z * t));
} else if (y <= 2.9e+194) {
tmp = j * (y4 * (t * b));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-2.9d+30)) then
tmp = c * (y * (i * -x))
else if (y <= (-2.4d-198)) then
tmp = a * (y1 * (z * y3))
else if (y <= (-1.45d-306)) then
tmp = b * (j * (t * y4))
else if (y <= 6.2d-142) then
tmp = a * (y1 * (x * -y2))
else if (y <= 2.8d+64) then
tmp = c * (i * (z * t))
else if (y <= 2.9d+194) then
tmp = j * (y4 * (t * b))
else
tmp = b * (y * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2.9e+30) {
tmp = c * (y * (i * -x));
} else if (y <= -2.4e-198) {
tmp = a * (y1 * (z * y3));
} else if (y <= -1.45e-306) {
tmp = b * (j * (t * y4));
} else if (y <= 6.2e-142) {
tmp = a * (y1 * (x * -y2));
} else if (y <= 2.8e+64) {
tmp = c * (i * (z * t));
} else if (y <= 2.9e+194) {
tmp = j * (y4 * (t * b));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -2.9e+30: tmp = c * (y * (i * -x)) elif y <= -2.4e-198: tmp = a * (y1 * (z * y3)) elif y <= -1.45e-306: tmp = b * (j * (t * y4)) elif y <= 6.2e-142: tmp = a * (y1 * (x * -y2)) elif y <= 2.8e+64: tmp = c * (i * (z * t)) elif y <= 2.9e+194: tmp = j * (y4 * (t * b)) else: tmp = b * (y * (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -2.9e+30) tmp = Float64(c * Float64(y * Float64(i * Float64(-x)))); elseif (y <= -2.4e-198) tmp = Float64(a * Float64(y1 * Float64(z * y3))); elseif (y <= -1.45e-306) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (y <= 6.2e-142) tmp = Float64(a * Float64(y1 * Float64(x * Float64(-y2)))); elseif (y <= 2.8e+64) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (y <= 2.9e+194) tmp = Float64(j * Float64(y4 * Float64(t * b))); else tmp = Float64(b * Float64(y * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -2.9e+30) tmp = c * (y * (i * -x)); elseif (y <= -2.4e-198) tmp = a * (y1 * (z * y3)); elseif (y <= -1.45e-306) tmp = b * (j * (t * y4)); elseif (y <= 6.2e-142) tmp = a * (y1 * (x * -y2)); elseif (y <= 2.8e+64) tmp = c * (i * (z * t)); elseif (y <= 2.9e+194) tmp = j * (y4 * (t * b)); else tmp = b * (y * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -2.9e+30], N[(c * N[(y * N[(i * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.4e-198], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.45e-306], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-142], N[(a * N[(y1 * N[(x * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.8e+64], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e+194], N[(j * N[(y4 * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+30}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(-x\right)\right)\right)\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-198}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-306}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-142}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(x \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+64}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+194}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if y < -2.8999999999999998e30Initial program 25.3%
Taylor expanded in c around inf 31.8%
+-commutative31.8%
mul-1-neg31.8%
unsub-neg31.8%
*-commutative31.8%
*-commutative31.8%
*-commutative31.8%
*-commutative31.8%
Simplified31.8%
Taylor expanded in i around inf 40.9%
Taylor expanded in t around 0 36.1%
mul-1-neg36.1%
distribute-rgt-neg-in36.1%
associate-*r*36.1%
*-commutative36.1%
Simplified36.1%
if -2.8999999999999998e30 < y < -2.39999999999999986e-198Initial program 26.7%
Taylor expanded in y1 around inf 47.0%
associate--l+47.0%
mul-1-neg47.0%
distribute-rgt-neg-in47.0%
*-commutative47.0%
*-commutative47.0%
fma-neg49.2%
fma-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
mul-1-neg49.2%
remove-double-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in a around inf 32.8%
Taylor expanded in y3 around inf 26.3%
if -2.39999999999999986e-198 < y < -1.4499999999999999e-306Initial program 29.8%
Taylor expanded in j around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in y4 around inf 42.0%
*-commutative42.0%
Simplified42.0%
Taylor expanded in t around inf 31.7%
*-commutative31.7%
Simplified31.7%
if -1.4499999999999999e-306 < y < 6.2e-142Initial program 38.2%
Taylor expanded in y1 around inf 53.4%
associate--l+53.4%
mul-1-neg53.4%
distribute-rgt-neg-in53.4%
*-commutative53.4%
*-commutative53.4%
fma-neg53.4%
fma-neg53.4%
*-commutative53.4%
distribute-rgt-neg-in53.4%
mul-1-neg53.4%
remove-double-neg53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in a around inf 34.5%
Taylor expanded in y3 around 0 27.6%
mul-1-neg27.6%
distribute-lft-neg-out27.6%
*-commutative27.6%
Simplified27.6%
if 6.2e-142 < y < 2.80000000000000024e64Initial program 30.5%
Taylor expanded in c around inf 41.7%
+-commutative41.7%
mul-1-neg41.7%
unsub-neg41.7%
*-commutative41.7%
*-commutative41.7%
*-commutative41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in i around inf 27.6%
Taylor expanded in t around inf 23.5%
if 2.80000000000000024e64 < y < 2.9000000000000001e194Initial program 24.9%
Taylor expanded in j around inf 41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in y4 around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in t around inf 45.3%
*-commutative45.3%
Simplified45.3%
if 2.9000000000000001e194 < y Initial program 14.3%
Taylor expanded in y1 around 0 14.3%
Taylor expanded in a around inf 42.9%
*-commutative42.9%
mul-1-neg42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in x around inf 52.7%
expm1-log1p-u43.1%
expm1-udef43.1%
associate-*r*43.1%
*-commutative43.1%
*-commutative43.1%
Applied egg-rr43.1%
expm1-def43.1%
expm1-log1p52.7%
*-commutative52.7%
*-commutative52.7%
associate-*r*52.7%
associate-*r*52.7%
Simplified52.7%
Final simplification32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y (* x b)))) (t_2 (* a (* y1 (* z y3)))))
(if (<= x -2.7e+53)
t_1
(if (<= x -1.45e-280)
t_2
(if (<= x 1.8e-124)
(* b (* j (* t y4)))
(if (<= x 3.5e+96)
(* b (* k (* z y0)))
(if (<= x 5.5e+116) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double t_2 = a * (y1 * (z * y3));
double tmp;
if (x <= -2.7e+53) {
tmp = t_1;
} else if (x <= -1.45e-280) {
tmp = t_2;
} else if (x <= 1.8e-124) {
tmp = b * (j * (t * y4));
} else if (x <= 3.5e+96) {
tmp = b * (k * (z * y0));
} else if (x <= 5.5e+116) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (y * (x * b))
t_2 = a * (y1 * (z * y3))
if (x <= (-2.7d+53)) then
tmp = t_1
else if (x <= (-1.45d-280)) then
tmp = t_2
else if (x <= 1.8d-124) then
tmp = b * (j * (t * y4))
else if (x <= 3.5d+96) then
tmp = b * (k * (z * y0))
else if (x <= 5.5d+116) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double t_2 = a * (y1 * (z * y3));
double tmp;
if (x <= -2.7e+53) {
tmp = t_1;
} else if (x <= -1.45e-280) {
tmp = t_2;
} else if (x <= 1.8e-124) {
tmp = b * (j * (t * y4));
} else if (x <= 3.5e+96) {
tmp = b * (k * (z * y0));
} else if (x <= 5.5e+116) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y * (x * b)) t_2 = a * (y1 * (z * y3)) tmp = 0 if x <= -2.7e+53: tmp = t_1 elif x <= -1.45e-280: tmp = t_2 elif x <= 1.8e-124: tmp = b * (j * (t * y4)) elif x <= 3.5e+96: tmp = b * (k * (z * y0)) elif x <= 5.5e+116: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y * Float64(x * b))) t_2 = Float64(a * Float64(y1 * Float64(z * y3))) tmp = 0.0 if (x <= -2.7e+53) tmp = t_1; elseif (x <= -1.45e-280) tmp = t_2; elseif (x <= 1.8e-124) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (x <= 3.5e+96) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (x <= 5.5e+116) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y * (x * b)); t_2 = a * (y1 * (z * y3)); tmp = 0.0; if (x <= -2.7e+53) tmp = t_1; elseif (x <= -1.45e-280) tmp = t_2; elseif (x <= 1.8e-124) tmp = b * (j * (t * y4)); elseif (x <= 3.5e+96) tmp = b * (k * (z * y0)); elseif (x <= 5.5e+116) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e+53], t$95$1, If[LessEqual[x, -1.45e-280], t$95$2, If[LessEqual[x, 1.8e-124], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e+96], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e+116], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
t_2 := a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{-280}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+96}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+116}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -2.70000000000000019e53 or 5.50000000000000035e116 < x Initial program 19.5%
Taylor expanded in y1 around 0 15.6%
Taylor expanded in a around inf 30.5%
*-commutative30.5%
mul-1-neg30.5%
*-commutative30.5%
*-commutative30.5%
Simplified30.5%
Taylor expanded in x around inf 32.7%
associate-*r*34.7%
*-commutative34.7%
Simplified34.7%
if -2.70000000000000019e53 < x < -1.45e-280 or 3.4999999999999999e96 < x < 5.50000000000000035e116Initial program 36.0%
Taylor expanded in y1 around inf 42.6%
associate--l+42.6%
mul-1-neg42.6%
distribute-rgt-neg-in42.6%
*-commutative42.6%
*-commutative42.6%
fma-neg42.6%
fma-neg42.6%
*-commutative42.6%
distribute-rgt-neg-in42.6%
mul-1-neg42.6%
remove-double-neg42.6%
*-commutative42.6%
Simplified42.6%
Taylor expanded in a around inf 29.9%
Taylor expanded in y3 around inf 26.9%
if -1.45e-280 < x < 1.80000000000000005e-124Initial program 29.7%
Taylor expanded in j around inf 44.7%
+-commutative44.7%
mul-1-neg44.7%
unsub-neg44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in y4 around inf 35.3%
*-commutative35.3%
Simplified35.3%
Taylor expanded in t around inf 28.5%
*-commutative28.5%
Simplified28.5%
if 1.80000000000000005e-124 < x < 3.4999999999999999e96Initial program 33.2%
Taylor expanded in y0 around inf 38.8%
Taylor expanded in z around -inf 29.6%
mul-1-neg29.6%
*-commutative29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in y3 around 0 24.3%
Final simplification29.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -7.5e+110)
(* c (* y (* i (- x))))
(if (<= y -2.6e-227)
(* c (* z (* y0 (- y3))))
(if (<= y 4.6e-141)
(* a (* y1 (* x (- y2))))
(if (<= y 1.65e+62)
(* c (* i (* z t)))
(if (<= y 5.8e+193) (* j (* y4 (* t b))) (* b (* y (* x a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -7.5e+110) {
tmp = c * (y * (i * -x));
} else if (y <= -2.6e-227) {
tmp = c * (z * (y0 * -y3));
} else if (y <= 4.6e-141) {
tmp = a * (y1 * (x * -y2));
} else if (y <= 1.65e+62) {
tmp = c * (i * (z * t));
} else if (y <= 5.8e+193) {
tmp = j * (y4 * (t * b));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-7.5d+110)) then
tmp = c * (y * (i * -x))
else if (y <= (-2.6d-227)) then
tmp = c * (z * (y0 * -y3))
else if (y <= 4.6d-141) then
tmp = a * (y1 * (x * -y2))
else if (y <= 1.65d+62) then
tmp = c * (i * (z * t))
else if (y <= 5.8d+193) then
tmp = j * (y4 * (t * b))
else
tmp = b * (y * (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -7.5e+110) {
tmp = c * (y * (i * -x));
} else if (y <= -2.6e-227) {
tmp = c * (z * (y0 * -y3));
} else if (y <= 4.6e-141) {
tmp = a * (y1 * (x * -y2));
} else if (y <= 1.65e+62) {
tmp = c * (i * (z * t));
} else if (y <= 5.8e+193) {
tmp = j * (y4 * (t * b));
} else {
tmp = b * (y * (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -7.5e+110: tmp = c * (y * (i * -x)) elif y <= -2.6e-227: tmp = c * (z * (y0 * -y3)) elif y <= 4.6e-141: tmp = a * (y1 * (x * -y2)) elif y <= 1.65e+62: tmp = c * (i * (z * t)) elif y <= 5.8e+193: tmp = j * (y4 * (t * b)) else: tmp = b * (y * (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -7.5e+110) tmp = Float64(c * Float64(y * Float64(i * Float64(-x)))); elseif (y <= -2.6e-227) tmp = Float64(c * Float64(z * Float64(y0 * Float64(-y3)))); elseif (y <= 4.6e-141) tmp = Float64(a * Float64(y1 * Float64(x * Float64(-y2)))); elseif (y <= 1.65e+62) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (y <= 5.8e+193) tmp = Float64(j * Float64(y4 * Float64(t * b))); else tmp = Float64(b * Float64(y * Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -7.5e+110) tmp = c * (y * (i * -x)); elseif (y <= -2.6e-227) tmp = c * (z * (y0 * -y3)); elseif (y <= 4.6e-141) tmp = a * (y1 * (x * -y2)); elseif (y <= 1.65e+62) tmp = c * (i * (z * t)); elseif (y <= 5.8e+193) tmp = j * (y4 * (t * b)); else tmp = b * (y * (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -7.5e+110], N[(c * N[(y * N[(i * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.6e-227], N[(c * N[(z * N[(y0 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-141], N[(a * N[(y1 * N[(x * (-y2)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+62], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e+193], N[(j * N[(y4 * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+110}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(-x\right)\right)\right)\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-227}:\\
\;\;\;\;c \cdot \left(z \cdot \left(y0 \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-141}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(x \cdot \left(-y2\right)\right)\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+62}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+193}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(t \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a\right)\right)\\
\end{array}
\end{array}
if y < -7.5e110Initial program 19.5%
Taylor expanded in c around inf 24.0%
+-commutative24.0%
mul-1-neg24.0%
unsub-neg24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in i around inf 48.5%
Taylor expanded in t around 0 46.4%
mul-1-neg46.4%
distribute-rgt-neg-in46.4%
associate-*r*46.4%
*-commutative46.4%
Simplified46.4%
if -7.5e110 < y < -2.60000000000000011e-227Initial program 32.3%
Taylor expanded in y0 around inf 40.4%
Taylor expanded in z around -inf 32.6%
mul-1-neg32.6%
*-commutative32.6%
*-commutative32.6%
Simplified32.6%
Taylor expanded in y3 around inf 26.6%
mul-1-neg26.6%
distribute-rgt-neg-in26.6%
associate-*r*26.6%
Simplified26.6%
if -2.60000000000000011e-227 < y < 4.5999999999999999e-141Initial program 33.5%
Taylor expanded in y1 around inf 45.3%
associate--l+45.3%
mul-1-neg45.3%
distribute-rgt-neg-in45.3%
*-commutative45.3%
*-commutative45.3%
fma-neg47.1%
fma-neg47.1%
*-commutative47.1%
distribute-rgt-neg-in47.1%
mul-1-neg47.1%
remove-double-neg47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in a around inf 32.7%
Taylor expanded in y3 around 0 27.3%
mul-1-neg27.3%
distribute-lft-neg-out27.3%
*-commutative27.3%
Simplified27.3%
if 4.5999999999999999e-141 < y < 1.65e62Initial program 30.5%
Taylor expanded in c around inf 41.7%
+-commutative41.7%
mul-1-neg41.7%
unsub-neg41.7%
*-commutative41.7%
*-commutative41.7%
*-commutative41.7%
*-commutative41.7%
Simplified41.7%
Taylor expanded in i around inf 27.6%
Taylor expanded in t around inf 23.5%
if 1.65e62 < y < 5.80000000000000026e193Initial program 24.9%
Taylor expanded in j around inf 41.1%
+-commutative41.1%
mul-1-neg41.1%
unsub-neg41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in y4 around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in t around inf 45.3%
*-commutative45.3%
Simplified45.3%
if 5.80000000000000026e193 < y Initial program 14.3%
Taylor expanded in y1 around 0 14.3%
Taylor expanded in a around inf 42.9%
*-commutative42.9%
mul-1-neg42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in x around inf 52.7%
expm1-log1p-u43.1%
expm1-udef43.1%
associate-*r*43.1%
*-commutative43.1%
*-commutative43.1%
Applied egg-rr43.1%
expm1-def43.1%
expm1-log1p52.7%
*-commutative52.7%
*-commutative52.7%
associate-*r*52.7%
associate-*r*52.7%
Simplified52.7%
Final simplification33.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (- (* t y4) (* x y0))))))
(if (<= c -9.8e-110)
t_1
(if (<= c 2.5e-23)
(* a (* y1 (- (* z y3) (* x y2))))
(if (<= c 9.5e+128) t_1 (* y0 (* z (* c (- y3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (c <= -9.8e-110) {
tmp = t_1;
} else if (c <= 2.5e-23) {
tmp = a * (y1 * ((z * y3) - (x * y2)));
} else if (c <= 9.5e+128) {
tmp = t_1;
} else {
tmp = y0 * (z * (c * -y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (j * ((t * y4) - (x * y0)))
if (c <= (-9.8d-110)) then
tmp = t_1
else if (c <= 2.5d-23) then
tmp = a * (y1 * ((z * y3) - (x * y2)))
else if (c <= 9.5d+128) then
tmp = t_1
else
tmp = y0 * (z * (c * -y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (c <= -9.8e-110) {
tmp = t_1;
} else if (c <= 2.5e-23) {
tmp = a * (y1 * ((z * y3) - (x * y2)));
} else if (c <= 9.5e+128) {
tmp = t_1;
} else {
tmp = y0 * (z * (c * -y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (j * ((t * y4) - (x * y0))) tmp = 0 if c <= -9.8e-110: tmp = t_1 elif c <= 2.5e-23: tmp = a * (y1 * ((z * y3) - (x * y2))) elif c <= 9.5e+128: tmp = t_1 else: tmp = y0 * (z * (c * -y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) tmp = 0.0 if (c <= -9.8e-110) tmp = t_1; elseif (c <= 2.5e-23) tmp = Float64(a * Float64(y1 * Float64(Float64(z * y3) - Float64(x * y2)))); elseif (c <= 9.5e+128) tmp = t_1; else tmp = Float64(y0 * Float64(z * Float64(c * Float64(-y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (j * ((t * y4) - (x * y0))); tmp = 0.0; if (c <= -9.8e-110) tmp = t_1; elseif (c <= 2.5e-23) tmp = a * (y1 * ((z * y3) - (x * y2))); elseif (c <= 9.5e+128) tmp = t_1; else tmp = y0 * (z * (c * -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[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9.8e-110], t$95$1, If[LessEqual[c, 2.5e-23], N[(a * N[(y1 * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e+128], t$95$1, N[(y0 * N[(z * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{if}\;c \leq -9.8 \cdot 10^{-110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-23}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3 - x \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{+128}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y0 \cdot \left(z \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\end{array}
\end{array}
if c < -9.7999999999999995e-110 or 2.5000000000000001e-23 < c < 9.50000000000000014e128Initial program 26.9%
Taylor expanded in j around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
*-commutative42.2%
Simplified42.2%
Taylor expanded in b around inf 33.9%
if -9.7999999999999995e-110 < c < 2.5000000000000001e-23Initial program 34.3%
Taylor expanded in y1 around inf 50.7%
associate--l+50.7%
mul-1-neg50.7%
distribute-rgt-neg-in50.7%
*-commutative50.7%
*-commutative50.7%
fma-neg53.0%
fma-neg53.0%
*-commutative53.0%
distribute-rgt-neg-in53.0%
mul-1-neg53.0%
remove-double-neg53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in a around inf 40.8%
if 9.50000000000000014e128 < c Initial program 16.7%
Taylor expanded in y0 around inf 39.3%
Taylor expanded in z around -inf 53.7%
mul-1-neg53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in y3 around inf 48.3%
*-commutative48.3%
Simplified48.3%
Final simplification38.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* i (* z t)))))
(if (<= i -1.6e+99)
t_1
(if (<= i 1.12e-246)
(* b (* j (* t y4)))
(if (<= i 1.05e-128)
(* b (* k (* z y0)))
(if (<= i 4.2e+73) (* a (* (* x y) b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double tmp;
if (i <= -1.6e+99) {
tmp = t_1;
} else if (i <= 1.12e-246) {
tmp = b * (j * (t * y4));
} else if (i <= 1.05e-128) {
tmp = b * (k * (z * y0));
} else if (i <= 4.2e+73) {
tmp = a * ((x * y) * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (i * (z * t))
if (i <= (-1.6d+99)) then
tmp = t_1
else if (i <= 1.12d-246) then
tmp = b * (j * (t * y4))
else if (i <= 1.05d-128) then
tmp = b * (k * (z * y0))
else if (i <= 4.2d+73) then
tmp = a * ((x * y) * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (i * (z * t));
double tmp;
if (i <= -1.6e+99) {
tmp = t_1;
} else if (i <= 1.12e-246) {
tmp = b * (j * (t * y4));
} else if (i <= 1.05e-128) {
tmp = b * (k * (z * y0));
} else if (i <= 4.2e+73) {
tmp = a * ((x * y) * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (i * (z * t)) tmp = 0 if i <= -1.6e+99: tmp = t_1 elif i <= 1.12e-246: tmp = b * (j * (t * y4)) elif i <= 1.05e-128: tmp = b * (k * (z * y0)) elif i <= 4.2e+73: tmp = a * ((x * y) * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(i * Float64(z * t))) tmp = 0.0 if (i <= -1.6e+99) tmp = t_1; elseif (i <= 1.12e-246) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (i <= 1.05e-128) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (i <= 4.2e+73) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (i * (z * t)); tmp = 0.0; if (i <= -1.6e+99) tmp = t_1; elseif (i <= 1.12e-246) tmp = b * (j * (t * y4)); elseif (i <= 1.05e-128) tmp = b * (k * (z * y0)); elseif (i <= 4.2e+73) tmp = a * ((x * y) * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.6e+99], t$95$1, If[LessEqual[i, 1.12e-246], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e-128], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e+73], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{if}\;i \leq -1.6 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.12 \cdot 10^{-246}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-128}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{+73}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.6e99 or 4.2000000000000003e73 < i Initial program 17.4%
Taylor expanded in c around inf 29.2%
+-commutative29.2%
mul-1-neg29.2%
unsub-neg29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in i around inf 46.6%
Taylor expanded in t around inf 35.4%
if -1.6e99 < i < 1.11999999999999995e-246Initial program 34.3%
Taylor expanded in j around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in y4 around inf 32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in t around inf 23.5%
*-commutative23.5%
Simplified23.5%
if 1.11999999999999995e-246 < i < 1.0500000000000001e-128Initial program 40.5%
Taylor expanded in y0 around inf 56.5%
Taylor expanded in z around -inf 45.5%
mul-1-neg45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y3 around 0 30.3%
if 1.0500000000000001e-128 < i < 4.2000000000000003e73Initial program 28.3%
Taylor expanded in y1 around 0 24.3%
Taylor expanded in a around inf 50.8%
*-commutative50.8%
mul-1-neg50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in x around inf 27.4%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* z (* t i)))))
(if (<= i -1.75e+99)
t_1
(if (<= i 5e-252)
(* b (* j (* t y4)))
(if (<= i 3.4e-126)
(* b (* k (* z y0)))
(if (<= i 1.4e+74) (* a (* (* x y) b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (z * (t * i));
double tmp;
if (i <= -1.75e+99) {
tmp = t_1;
} else if (i <= 5e-252) {
tmp = b * (j * (t * y4));
} else if (i <= 3.4e-126) {
tmp = b * (k * (z * y0));
} else if (i <= 1.4e+74) {
tmp = a * ((x * y) * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * (t * i))
if (i <= (-1.75d+99)) then
tmp = t_1
else if (i <= 5d-252) then
tmp = b * (j * (t * y4))
else if (i <= 3.4d-126) then
tmp = b * (k * (z * y0))
else if (i <= 1.4d+74) then
tmp = a * ((x * y) * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (z * (t * i));
double tmp;
if (i <= -1.75e+99) {
tmp = t_1;
} else if (i <= 5e-252) {
tmp = b * (j * (t * y4));
} else if (i <= 3.4e-126) {
tmp = b * (k * (z * y0));
} else if (i <= 1.4e+74) {
tmp = a * ((x * y) * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (z * (t * i)) tmp = 0 if i <= -1.75e+99: tmp = t_1 elif i <= 5e-252: tmp = b * (j * (t * y4)) elif i <= 3.4e-126: tmp = b * (k * (z * y0)) elif i <= 1.4e+74: tmp = a * ((x * y) * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(z * Float64(t * i))) tmp = 0.0 if (i <= -1.75e+99) tmp = t_1; elseif (i <= 5e-252) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (i <= 3.4e-126) tmp = Float64(b * Float64(k * Float64(z * y0))); elseif (i <= 1.4e+74) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (z * (t * i)); tmp = 0.0; if (i <= -1.75e+99) tmp = t_1; elseif (i <= 5e-252) tmp = b * (j * (t * y4)); elseif (i <= 3.4e-126) tmp = b * (k * (z * y0)); elseif (i <= 1.4e+74) tmp = a * ((x * y) * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(z * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.75e+99], t$95$1, If[LessEqual[i, 5e-252], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.4e-126], N[(b * N[(k * N[(z * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+74], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(t \cdot i\right)\right)\\
\mathbf{if}\;i \leq -1.75 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5 \cdot 10^{-252}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-126}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+74}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.7499999999999999e99 or 1.40000000000000001e74 < i Initial program 17.4%
Taylor expanded in c around inf 29.2%
+-commutative29.2%
mul-1-neg29.2%
unsub-neg29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in i around inf 46.6%
Taylor expanded in t around inf 35.4%
associate-*r*38.7%
Simplified38.7%
if -1.7499999999999999e99 < i < 5.00000000000000008e-252Initial program 34.3%
Taylor expanded in j around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
*-commutative39.4%
Simplified39.4%
Taylor expanded in y4 around inf 32.7%
*-commutative32.7%
Simplified32.7%
Taylor expanded in t around inf 23.5%
*-commutative23.5%
Simplified23.5%
if 5.00000000000000008e-252 < i < 3.4e-126Initial program 40.5%
Taylor expanded in y0 around inf 56.5%
Taylor expanded in z around -inf 45.5%
mul-1-neg45.5%
*-commutative45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in y3 around 0 30.3%
if 3.4e-126 < i < 1.40000000000000001e74Initial program 28.3%
Taylor expanded in y1 around 0 24.3%
Taylor expanded in a around inf 50.8%
*-commutative50.8%
mul-1-neg50.8%
*-commutative50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in x around inf 27.4%
Final simplification30.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -1.75e+111)
(* c (* y (* i (- x))))
(if (<= y -1.5e-181)
(* c (* z (* y0 (- y3))))
(if (<= y 8.5e+102) (* j (* y4 (* y1 (- y3)))) (* a (* y (* x b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.75e+111) {
tmp = c * (y * (i * -x));
} else if (y <= -1.5e-181) {
tmp = c * (z * (y0 * -y3));
} else if (y <= 8.5e+102) {
tmp = j * (y4 * (y1 * -y3));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-1.75d+111)) then
tmp = c * (y * (i * -x))
else if (y <= (-1.5d-181)) then
tmp = c * (z * (y0 * -y3))
else if (y <= 8.5d+102) then
tmp = j * (y4 * (y1 * -y3))
else
tmp = a * (y * (x * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.75e+111) {
tmp = c * (y * (i * -x));
} else if (y <= -1.5e-181) {
tmp = c * (z * (y0 * -y3));
} else if (y <= 8.5e+102) {
tmp = j * (y4 * (y1 * -y3));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.75e+111: tmp = c * (y * (i * -x)) elif y <= -1.5e-181: tmp = c * (z * (y0 * -y3)) elif y <= 8.5e+102: tmp = j * (y4 * (y1 * -y3)) else: tmp = a * (y * (x * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.75e+111) tmp = Float64(c * Float64(y * Float64(i * Float64(-x)))); elseif (y <= -1.5e-181) tmp = Float64(c * Float64(z * Float64(y0 * Float64(-y3)))); elseif (y <= 8.5e+102) tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); else tmp = Float64(a * Float64(y * Float64(x * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -1.75e+111) tmp = c * (y * (i * -x)); elseif (y <= -1.5e-181) tmp = c * (z * (y0 * -y3)); elseif (y <= 8.5e+102) tmp = j * (y4 * (y1 * -y3)); else tmp = a * (y * (x * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.75e+111], N[(c * N[(y * N[(i * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.5e-181], N[(c * N[(z * N[(y0 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+102], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+111}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(-x\right)\right)\right)\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{-181}:\\
\;\;\;\;c \cdot \left(z \cdot \left(y0 \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -1.7500000000000001e111Initial program 19.5%
Taylor expanded in c around inf 24.0%
+-commutative24.0%
mul-1-neg24.0%
unsub-neg24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in i around inf 48.5%
Taylor expanded in t around 0 46.4%
mul-1-neg46.4%
distribute-rgt-neg-in46.4%
associate-*r*46.4%
*-commutative46.4%
Simplified46.4%
if -1.7500000000000001e111 < y < -1.49999999999999987e-181Initial program 30.0%
Taylor expanded in y0 around inf 39.0%
Taylor expanded in z around -inf 33.4%
mul-1-neg33.4%
*-commutative33.4%
*-commutative33.4%
Simplified33.4%
Taylor expanded in y3 around inf 26.6%
mul-1-neg26.6%
distribute-rgt-neg-in26.6%
associate-*r*26.6%
Simplified26.6%
if -1.49999999999999987e-181 < y < 8.4999999999999996e102Initial program 33.7%
Taylor expanded in j around inf 43.2%
+-commutative43.2%
mul-1-neg43.2%
unsub-neg43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y4 around inf 27.7%
*-commutative27.7%
Simplified27.7%
Taylor expanded in t around 0 24.4%
mul-1-neg24.4%
distribute-lft-neg-out24.4%
*-commutative24.4%
Simplified24.4%
if 8.4999999999999996e102 < y Initial program 14.7%
Taylor expanded in y1 around 0 17.6%
Taylor expanded in a around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in x around inf 50.4%
associate-*r*50.4%
*-commutative50.4%
Simplified50.4%
Final simplification32.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -9.8e+110)
(* c (* y (* i (- x))))
(if (<= y -9.5e-184)
(* y0 (* z (* c (- y3))))
(if (<= y 6.5e+102) (* j (* y4 (* y1 (- y3)))) (* a (* y (* x b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9.8e+110) {
tmp = c * (y * (i * -x));
} else if (y <= -9.5e-184) {
tmp = y0 * (z * (c * -y3));
} else if (y <= 6.5e+102) {
tmp = j * (y4 * (y1 * -y3));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-9.8d+110)) then
tmp = c * (y * (i * -x))
else if (y <= (-9.5d-184)) then
tmp = y0 * (z * (c * -y3))
else if (y <= 6.5d+102) then
tmp = j * (y4 * (y1 * -y3))
else
tmp = a * (y * (x * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -9.8e+110) {
tmp = c * (y * (i * -x));
} else if (y <= -9.5e-184) {
tmp = y0 * (z * (c * -y3));
} else if (y <= 6.5e+102) {
tmp = j * (y4 * (y1 * -y3));
} else {
tmp = a * (y * (x * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -9.8e+110: tmp = c * (y * (i * -x)) elif y <= -9.5e-184: tmp = y0 * (z * (c * -y3)) elif y <= 6.5e+102: tmp = j * (y4 * (y1 * -y3)) else: tmp = a * (y * (x * b)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -9.8e+110) tmp = Float64(c * Float64(y * Float64(i * Float64(-x)))); elseif (y <= -9.5e-184) tmp = Float64(y0 * Float64(z * Float64(c * Float64(-y3)))); elseif (y <= 6.5e+102) tmp = Float64(j * Float64(y4 * Float64(y1 * Float64(-y3)))); else tmp = Float64(a * Float64(y * Float64(x * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -9.8e+110) tmp = c * (y * (i * -x)); elseif (y <= -9.5e-184) tmp = y0 * (z * (c * -y3)); elseif (y <= 6.5e+102) tmp = j * (y4 * (y1 * -y3)); else tmp = a * (y * (x * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -9.8e+110], N[(c * N[(y * N[(i * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.5e-184], N[(y0 * N[(z * N[(c * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+102], N[(j * N[(y4 * N[(y1 * (-y3)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.8 \cdot 10^{+110}:\\
\;\;\;\;c \cdot \left(y \cdot \left(i \cdot \left(-x\right)\right)\right)\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-184}:\\
\;\;\;\;y0 \cdot \left(z \cdot \left(c \cdot \left(-y3\right)\right)\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+102}:\\
\;\;\;\;j \cdot \left(y4 \cdot \left(y1 \cdot \left(-y3\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\end{array}
\end{array}
if y < -9.80000000000000003e110Initial program 19.5%
Taylor expanded in c around inf 24.0%
+-commutative24.0%
mul-1-neg24.0%
unsub-neg24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in i around inf 48.5%
Taylor expanded in t around 0 46.4%
mul-1-neg46.4%
distribute-rgt-neg-in46.4%
associate-*r*46.4%
*-commutative46.4%
Simplified46.4%
if -9.80000000000000003e110 < y < -9.4999999999999991e-184Initial program 30.0%
Taylor expanded in y0 around inf 39.0%
Taylor expanded in z around -inf 33.4%
mul-1-neg33.4%
*-commutative33.4%
*-commutative33.4%
Simplified33.4%
Taylor expanded in y3 around inf 31.6%
*-commutative31.6%
Simplified31.6%
if -9.4999999999999991e-184 < y < 6.5000000000000004e102Initial program 33.7%
Taylor expanded in j around inf 43.2%
+-commutative43.2%
mul-1-neg43.2%
unsub-neg43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in y4 around inf 27.7%
*-commutative27.7%
Simplified27.7%
Taylor expanded in t around 0 24.4%
mul-1-neg24.4%
distribute-lft-neg-out24.4%
*-commutative24.4%
Simplified24.4%
if 6.5000000000000004e102 < y Initial program 14.7%
Taylor expanded in y1 around 0 17.6%
Taylor expanded in a around inf 38.4%
*-commutative38.4%
mul-1-neg38.4%
*-commutative38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in x around inf 50.4%
associate-*r*50.4%
*-commutative50.4%
Simplified50.4%
Final simplification33.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y (* x b)))))
(if (<= x -1.85e+53)
t_1
(if (<= x -3.1e-282)
(* a (* y1 (* z y3)))
(if (<= x 8.2e+28) (* b (* j (* t y4))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double tmp;
if (x <= -1.85e+53) {
tmp = t_1;
} else if (x <= -3.1e-282) {
tmp = a * (y1 * (z * y3));
} else if (x <= 8.2e+28) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y * (x * b))
if (x <= (-1.85d+53)) then
tmp = t_1
else if (x <= (-3.1d-282)) then
tmp = a * (y1 * (z * y3))
else if (x <= 8.2d+28) then
tmp = b * (j * (t * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y * (x * b));
double tmp;
if (x <= -1.85e+53) {
tmp = t_1;
} else if (x <= -3.1e-282) {
tmp = a * (y1 * (z * y3));
} else if (x <= 8.2e+28) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y * (x * b)) tmp = 0 if x <= -1.85e+53: tmp = t_1 elif x <= -3.1e-282: tmp = a * (y1 * (z * y3)) elif x <= 8.2e+28: tmp = b * (j * (t * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y * Float64(x * b))) tmp = 0.0 if (x <= -1.85e+53) tmp = t_1; elseif (x <= -3.1e-282) tmp = Float64(a * Float64(y1 * Float64(z * y3))); elseif (x <= 8.2e+28) tmp = Float64(b * Float64(j * Float64(t * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y * (x * b)); tmp = 0.0; if (x <= -1.85e+53) tmp = t_1; elseif (x <= -3.1e-282) tmp = a * (y1 * (z * y3)); elseif (x <= 8.2e+28) tmp = b * (j * (t * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.85e+53], t$95$1, If[LessEqual[x, -3.1e-282], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e+28], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{if}\;x \leq -1.85 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-282}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+28}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.85e53 or 8.19999999999999961e28 < x Initial program 20.6%
Taylor expanded in y1 around 0 18.1%
Taylor expanded in a around inf 30.1%
*-commutative30.1%
mul-1-neg30.1%
*-commutative30.1%
*-commutative30.1%
Simplified30.1%
Taylor expanded in x around inf 30.6%
associate-*r*32.3%
*-commutative32.3%
Simplified32.3%
if -1.85e53 < x < -3.10000000000000013e-282Initial program 37.7%
Taylor expanded in y1 around inf 45.1%
associate--l+45.1%
mul-1-neg45.1%
distribute-rgt-neg-in45.1%
*-commutative45.1%
*-commutative45.1%
fma-neg45.1%
fma-neg45.1%
*-commutative45.1%
distribute-rgt-neg-in45.1%
mul-1-neg45.1%
remove-double-neg45.1%
*-commutative45.1%
Simplified45.1%
Taylor expanded in a around inf 29.5%
Taylor expanded in y3 around inf 26.1%
if -3.10000000000000013e-282 < x < 8.19999999999999961e28Initial program 31.0%
Taylor expanded in j around inf 44.6%
+-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in y4 around inf 30.0%
*-commutative30.0%
Simplified30.0%
Taylor expanded in t around inf 23.4%
*-commutative23.4%
Simplified23.4%
Final simplification28.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -2.1e+53) (not (<= x 6.5e+69))) (* a (* (* x y) b)) (* a (* y1 (* z y3)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.1e+53) || !(x <= 6.5e+69)) {
tmp = a * ((x * y) * b);
} else {
tmp = a * (y1 * (z * y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-2.1d+53)) .or. (.not. (x <= 6.5d+69))) then
tmp = a * ((x * y) * b)
else
tmp = a * (y1 * (z * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.1e+53) || !(x <= 6.5e+69)) {
tmp = a * ((x * y) * b);
} else {
tmp = a * (y1 * (z * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -2.1e+53) or not (x <= 6.5e+69): tmp = a * ((x * y) * b) else: tmp = a * (y1 * (z * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -2.1e+53) || !(x <= 6.5e+69)) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(a * Float64(y1 * Float64(z * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -2.1e+53) || ~((x <= 6.5e+69))) tmp = a * ((x * y) * b); else tmp = a * (y1 * (z * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[x, -2.1e+53], N[Not[LessEqual[x, 6.5e+69]], $MachinePrecision]], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+53} \lor \neg \left(x \leq 6.5 \cdot 10^{+69}\right):\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\end{array}
\end{array}
if x < -2.1000000000000002e53 or 6.5000000000000001e69 < x Initial program 20.4%
Taylor expanded in y1 around 0 17.8%
Taylor expanded in a around inf 31.2%
*-commutative31.2%
mul-1-neg31.2%
*-commutative31.2%
*-commutative31.2%
Simplified31.2%
Taylor expanded in x around inf 31.6%
if -2.1000000000000002e53 < x < 6.5000000000000001e69Initial program 33.6%
Taylor expanded in y1 around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
distribute-rgt-neg-in43.0%
*-commutative43.0%
*-commutative43.0%
fma-neg43.0%
fma-neg43.0%
*-commutative43.0%
distribute-rgt-neg-in43.0%
mul-1-neg43.0%
remove-double-neg43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in a around inf 22.1%
Taylor expanded in y3 around inf 20.0%
Final simplification24.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -2.7e+53) (not (<= x 1.42e+81))) (* a (* y (* x b))) (* a (* y1 (* z y3)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.7e+53) || !(x <= 1.42e+81)) {
tmp = a * (y * (x * b));
} else {
tmp = a * (y1 * (z * y3));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-2.7d+53)) .or. (.not. (x <= 1.42d+81))) then
tmp = a * (y * (x * b))
else
tmp = a * (y1 * (z * y3))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -2.7e+53) || !(x <= 1.42e+81)) {
tmp = a * (y * (x * b));
} else {
tmp = a * (y1 * (z * y3));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -2.7e+53) or not (x <= 1.42e+81): tmp = a * (y * (x * b)) else: tmp = a * (y1 * (z * y3)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -2.7e+53) || !(x <= 1.42e+81)) tmp = Float64(a * Float64(y * Float64(x * b))); else tmp = Float64(a * Float64(y1 * Float64(z * y3))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -2.7e+53) || ~((x <= 1.42e+81))) tmp = a * (y * (x * b)); else tmp = a * (y1 * (z * y3)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[x, -2.7e+53], N[Not[LessEqual[x, 1.42e+81]], $MachinePrecision]], N[(a * N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+53} \lor \neg \left(x \leq 1.42 \cdot 10^{+81}\right):\\
\;\;\;\;a \cdot \left(y \cdot \left(x \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(z \cdot y3\right)\right)\\
\end{array}
\end{array}
if x < -2.70000000000000019e53 or 1.41999999999999998e81 < x Initial program 20.4%
Taylor expanded in y1 around 0 17.8%
Taylor expanded in a around inf 31.2%
*-commutative31.2%
mul-1-neg31.2%
*-commutative31.2%
*-commutative31.2%
Simplified31.2%
Taylor expanded in x around inf 31.6%
associate-*r*33.4%
*-commutative33.4%
Simplified33.4%
if -2.70000000000000019e53 < x < 1.41999999999999998e81Initial program 33.6%
Taylor expanded in y1 around inf 43.0%
associate--l+43.0%
mul-1-neg43.0%
distribute-rgt-neg-in43.0%
*-commutative43.0%
*-commutative43.0%
fma-neg43.0%
fma-neg43.0%
*-commutative43.0%
distribute-rgt-neg-in43.0%
mul-1-neg43.0%
remove-double-neg43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in a around inf 22.1%
Taylor expanded in y3 around inf 20.0%
Final simplification25.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 28.0%
Taylor expanded in y1 around 0 24.3%
Taylor expanded in a around inf 34.2%
*-commutative34.2%
mul-1-neg34.2%
*-commutative34.2%
*-commutative34.2%
Simplified34.2%
Taylor expanded in x around inf 18.4%
Final simplification18.4%
(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 2023310
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))