
(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 46 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 (* z (- (* c i) (* a b))))
(t_2 (* j (* y1 y3)))
(t_3 (- (* t j) (* y k)))
(t_4 (- (* z t) (* x y)))
(t_5 (* b t_3)))
(if (<= c -2.45e+71)
(*
c
(+
(+ (* i t_4) (* y0 (- (* x y2) (* z y3))))
(* y4 (- (* y y3) (* t y2)))))
(if (<= c -8500.0)
(* y1 (* j (- (* x i) (* y3 y4))))
(if (<= c -1.3e-206)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(- (* y0 (- (* j y3) (* k y2))) (* i t_3))))
(if (<= c -1.2e-261)
(* y4 (- (+ t_5 (* k (* y1 y2))) t_2))
(if (<= c -1.3e-278)
(* b (* k (- (* z y0) (* y y4))))
(if (<= c -1.08e-300)
(* i (+ (* y1 (- (* x j) (* z k))) (- (* c t_4) (* y5 t_3))))
(if (<= c 2.8e-198)
(* y4 (+ (- t_5 t_2) (* c (* y y3))))
(if (<= c 1.05e-90)
(*
x
(-
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))
(if (<= c 1.7e-48)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= c 9.8e+93)
(* t (- (+ t_1 (* b (* j y4))) (* c (* y2 y4))))
(if (<= c 8.5e+138)
(* b (* y (- (* x a) (* k y4))))
(*
t
(+ t_1 (* y2 (- (* a y5) (* c y4))))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = z * ((c * i) - (a * b));
double t_2 = j * (y1 * y3);
double t_3 = (t * j) - (y * k);
double t_4 = (z * t) - (x * y);
double t_5 = b * t_3;
double tmp;
if (c <= -2.45e+71) {
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (c <= -8500.0) {
tmp = y1 * (j * ((x * i) - (y3 * y4)));
} else if (c <= -1.3e-206) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)));
} else if (c <= -1.2e-261) {
tmp = y4 * ((t_5 + (k * (y1 * y2))) - t_2);
} else if (c <= -1.3e-278) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (c <= -1.08e-300) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * t_4) - (y5 * t_3)));
} else if (c <= 2.8e-198) {
tmp = y4 * ((t_5 - t_2) + (c * (y * y3)));
} else if (c <= 1.05e-90) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (c <= 1.7e-48) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (c <= 9.8e+93) {
tmp = t * ((t_1 + (b * (j * y4))) - (c * (y2 * y4)));
} else if (c <= 8.5e+138) {
tmp = b * (y * ((x * a) - (k * y4)));
} else {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = z * ((c * i) - (a * b))
t_2 = j * (y1 * y3)
t_3 = (t * j) - (y * k)
t_4 = (z * t) - (x * y)
t_5 = b * t_3
if (c <= (-2.45d+71)) then
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))))
else if (c <= (-8500.0d0)) then
tmp = y1 * (j * ((x * i) - (y3 * y4)))
else if (c <= (-1.3d-206)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)))
else if (c <= (-1.2d-261)) then
tmp = y4 * ((t_5 + (k * (y1 * y2))) - t_2)
else if (c <= (-1.3d-278)) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (c <= (-1.08d-300)) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * t_4) - (y5 * t_3)))
else if (c <= 2.8d-198) then
tmp = y4 * ((t_5 - t_2) + (c * (y * y3)))
else if (c <= 1.05d-90) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))))
else if (c <= 1.7d-48) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (c <= 9.8d+93) then
tmp = t * ((t_1 + (b * (j * y4))) - (c * (y2 * y4)))
else if (c <= 8.5d+138) then
tmp = b * (y * ((x * a) - (k * y4)))
else
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = z * ((c * i) - (a * b));
double t_2 = j * (y1 * y3);
double t_3 = (t * j) - (y * k);
double t_4 = (z * t) - (x * y);
double t_5 = b * t_3;
double tmp;
if (c <= -2.45e+71) {
tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2))));
} else if (c <= -8500.0) {
tmp = y1 * (j * ((x * i) - (y3 * y4)));
} else if (c <= -1.3e-206) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)));
} else if (c <= -1.2e-261) {
tmp = y4 * ((t_5 + (k * (y1 * y2))) - t_2);
} else if (c <= -1.3e-278) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (c <= -1.08e-300) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * t_4) - (y5 * t_3)));
} else if (c <= 2.8e-198) {
tmp = y4 * ((t_5 - t_2) + (c * (y * y3)));
} else if (c <= 1.05e-90) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (c <= 1.7e-48) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (c <= 9.8e+93) {
tmp = t * ((t_1 + (b * (j * y4))) - (c * (y2 * y4)));
} else if (c <= 8.5e+138) {
tmp = b * (y * ((x * a) - (k * y4)));
} else {
tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = z * ((c * i) - (a * b)) t_2 = j * (y1 * y3) t_3 = (t * j) - (y * k) t_4 = (z * t) - (x * y) t_5 = b * t_3 tmp = 0 if c <= -2.45e+71: tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))) elif c <= -8500.0: tmp = y1 * (j * ((x * i) - (y3 * y4))) elif c <= -1.3e-206: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3))) elif c <= -1.2e-261: tmp = y4 * ((t_5 + (k * (y1 * y2))) - t_2) elif c <= -1.3e-278: tmp = b * (k * ((z * y0) - (y * y4))) elif c <= -1.08e-300: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * t_4) - (y5 * t_3))) elif c <= 2.8e-198: tmp = y4 * ((t_5 - t_2) + (c * (y * y3))) elif c <= 1.05e-90: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))) elif c <= 1.7e-48: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif c <= 9.8e+93: tmp = t * ((t_1 + (b * (j * y4))) - (c * (y2 * y4))) elif c <= 8.5e+138: tmp = b * (y * ((x * a) - (k * y4))) else: tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(z * Float64(Float64(c * i) - Float64(a * b))) t_2 = Float64(j * Float64(y1 * y3)) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(Float64(z * t) - Float64(x * y)) t_5 = Float64(b * t_3) tmp = 0.0 if (c <= -2.45e+71) tmp = Float64(c * Float64(Float64(Float64(i * t_4) + Float64(y0 * Float64(Float64(x * y2) - Float64(z * y3)))) + Float64(y4 * Float64(Float64(y * y3) - Float64(t * y2))))); elseif (c <= -8500.0) tmp = Float64(y1 * Float64(j * Float64(Float64(x * i) - Float64(y3 * y4)))); elseif (c <= -1.3e-206) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * t_3)))); elseif (c <= -1.2e-261) tmp = Float64(y4 * Float64(Float64(t_5 + Float64(k * Float64(y1 * y2))) - t_2)); elseif (c <= -1.3e-278) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (c <= -1.08e-300) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * t_4) - Float64(y5 * t_3)))); elseif (c <= 2.8e-198) tmp = Float64(y4 * Float64(Float64(t_5 - t_2) + Float64(c * Float64(y * y3)))); elseif (c <= 1.05e-90) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (c <= 1.7e-48) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (c <= 9.8e+93) tmp = Float64(t * Float64(Float64(t_1 + Float64(b * Float64(j * y4))) - Float64(c * Float64(y2 * y4)))); elseif (c <= 8.5e+138) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); else tmp = Float64(t * Float64(t_1 + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = z * ((c * i) - (a * b)); t_2 = j * (y1 * y3); t_3 = (t * j) - (y * k); t_4 = (z * t) - (x * y); t_5 = b * t_3; tmp = 0.0; if (c <= -2.45e+71) tmp = c * (((i * t_4) + (y0 * ((x * y2) - (z * y3)))) + (y4 * ((y * y3) - (t * y2)))); elseif (c <= -8500.0) tmp = y1 * (j * ((x * i) - (y3 * y4))); elseif (c <= -1.3e-206) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3))); elseif (c <= -1.2e-261) tmp = y4 * ((t_5 + (k * (y1 * y2))) - t_2); elseif (c <= -1.3e-278) tmp = b * (k * ((z * y0) - (y * y4))); elseif (c <= -1.08e-300) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * t_4) - (y5 * t_3))); elseif (c <= 2.8e-198) tmp = y4 * ((t_5 - t_2) + (c * (y * y3))); elseif (c <= 1.05e-90) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))); elseif (c <= 1.7e-48) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (c <= 9.8e+93) tmp = t * ((t_1 + (b * (j * y4))) - (c * (y2 * y4))); elseif (c <= 8.5e+138) tmp = b * (y * ((x * a) - (k * y4))); else tmp = t * (t_1 + (y2 * ((a * y5) - (c * y4)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * t$95$3), $MachinePrecision]}, If[LessEqual[c, -2.45e+71], N[(c * N[(N[(N[(i * t$95$4), $MachinePrecision] + N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8500.0], N[(y1 * N[(j * N[(N[(x * i), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.3e-206], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.2e-261], N[(y4 * N[(N[(t$95$5 + N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.3e-278], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.08e-300], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * t$95$4), $MachinePrecision] - N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e-198], N[(y4 * N[(N[(t$95$5 - t$95$2), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e-90], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.7e-48], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.8e+93], N[(t * N[(N[(t$95$1 + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.5e+138], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(t$95$1 + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(c \cdot i - a \cdot b\right)\\
t_2 := j \cdot \left(y1 \cdot y3\right)\\
t_3 := t \cdot j - y \cdot k\\
t_4 := z \cdot t - x \cdot y\\
t_5 := b \cdot t\_3\\
\mathbf{if}\;c \leq -2.45 \cdot 10^{+71}:\\
\;\;\;\;c \cdot \left(\left(i \cdot t\_4 + y0 \cdot \left(x \cdot y2 - z \cdot y3\right)\right) + y4 \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{elif}\;c \leq -8500:\\
\;\;\;\;y1 \cdot \left(j \cdot \left(x \cdot i - y3 \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-206}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot t\_3\right)\right)\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-261}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + k \cdot \left(y1 \cdot y2\right)\right) - t\_2\right)\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-278}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq -1.08 \cdot 10^{-300}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot t\_4 - y5 \cdot t\_3\right)\right)\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{-198}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 - t\_2\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-90}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;c \leq 1.7 \cdot 10^{-48}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;c \leq 9.8 \cdot 10^{+93}:\\
\;\;\;\;t \cdot \left(\left(t\_1 + b \cdot \left(j \cdot y4\right)\right) - c \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{+138}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(t\_1 + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if c < -2.4499999999999998e71Initial program 20.6%
Taylor expanded in c around inf 59.4%
if -2.4499999999999998e71 < c < -8500Initial program 38.9%
Taylor expanded in y1 around inf 69.0%
Taylor expanded in j around -inf 66.6%
mul-1-neg66.6%
Simplified66.6%
if -8500 < c < -1.3e-206Initial program 25.6%
Taylor expanded in y5 around -inf 55.2%
if -1.3e-206 < c < -1.20000000000000007e-261Initial program 41.3%
Taylor expanded in y4 around inf 66.8%
Taylor expanded in k around 0 66.9%
+-commutative66.9%
mul-1-neg66.9%
unsub-neg66.9%
Simplified66.9%
Taylor expanded in c around 0 75.2%
if -1.20000000000000007e-261 < c < -1.2999999999999999e-278Initial program 60.0%
Taylor expanded in b around inf 60.1%
Taylor expanded in k around -inf 80.4%
mul-1-neg80.4%
Simplified80.4%
if -1.2999999999999999e-278 < c < -1.08e-300Initial program 50.0%
Taylor expanded in i around -inf 84.7%
if -1.08e-300 < c < 2.7999999999999999e-198Initial program 27.1%
Taylor expanded in y4 around inf 50.4%
Taylor expanded in y2 around 0 59.7%
if 2.7999999999999999e-198 < c < 1.05e-90Initial program 50.0%
Taylor expanded in x around inf 67.6%
if 1.05e-90 < c < 1.70000000000000014e-48Initial program 23.1%
Taylor expanded in y1 around inf 46.5%
Taylor expanded in y2 around inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
Simplified69.5%
if 1.70000000000000014e-48 < c < 9.79999999999999938e93Initial program 20.0%
Taylor expanded in t around inf 65.6%
Taylor expanded in y5 around 0 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
if 9.79999999999999938e93 < c < 8.5000000000000006e138Initial program 41.7%
Taylor expanded in b around inf 58.9%
Taylor expanded in y around inf 67.4%
+-commutative67.4%
mul-1-neg67.4%
unsub-neg67.4%
Simplified67.4%
if 8.5000000000000006e138 < c Initial program 22.2%
Taylor expanded in t around inf 39.2%
Taylor expanded in j around 0 58.5%
mul-1-neg58.5%
Simplified58.5%
Final simplification63.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k)))
(t_2
(+
(+
(+
(+
(+
(* (- (* a b) (* c i)) (- (* x y) (* z t)))
(* (- (* b y0) (* i y1)) (- (* z k) (* x j))))
(* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))))
(* t_1 (- (* b y4) (* i y5))))
(* (- (* t y2) (* y y3)) (- (* a y5) (* c y4))))
(* (- (* k y2) (* j y3)) (- (* y1 y4) (* y0 y5))))))
(if (<= t_2 INFINITY)
t_2
(*
y4
(+
(+ (* b t_1) (- (* k (* y1 y2)) (* j (* y1 y3))))
(* c (- (* y y3) (* t y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y4 * (((b * t_1) + ((k * (y1 * y2)) - (j * (y1 * y3)))) + (c * ((y * y3) - (t * y2))));
}
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 = (t * j) - (y * k);
double t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y4 * (((b * t_1) + ((k * (y1 * y2)) - (j * (y1 * y3)))) + (c * ((y * y3) - (t * y2))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = y4 * (((b * t_1) + ((k * (y1 * y2)) - (j * (y1 * y3)))) + (c * ((y * y3) - (t * 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(t * j) - Float64(y * k)) 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(t_1 * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(a * y5) - Float64(c * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) + Float64(Float64(k * Float64(y1 * y2)) - Float64(j * Float64(y1 * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); t_2 = (((((((a * b) - (c * i)) * ((x * y) - (z * t))) + (((b * y0) - (i * y1)) * ((z * k) - (x * j)))) + (((x * y2) - (z * y3)) * ((c * y0) - (a * y1)))) + (t_1 * ((b * y4) - (i * y5)))) + (((t * y2) - (y * y3)) * ((a * y5) - (c * y4)))) + (((k * y2) - (j * y3)) * ((y1 * y4) - (y0 * y5))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = y4 * (((b * t_1) + ((k * (y1 * y2)) - (j * (y1 * y3)))) + (c * ((y * y3) - (t * 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[(N[(t * j), $MachinePrecision] - N[(y * k), $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[(t$95$1 * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] + N[(N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
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) + t\_1 \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + \left(t \cdot y2 - y \cdot y3\right) \cdot \left(a \cdot y5 - c \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 + \left(k \cdot \left(y1 \cdot y2\right) - j \cdot \left(y1 \cdot y3\right)\right)\right) + c \cdot \left(y \cdot y3 - t \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 92.7%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y4 around inf 39.2%
Taylor expanded in k around 0 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
Simplified41.0%
Final simplification57.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a y1) (* c y0)))
(t_2 (- (* c i) (* a b)))
(t_3 (- (* c y0) (* a y1)))
(t_4 (- (* y1 y4) (* y0 y5)))
(t_5 (- (* a b) (* c i)))
(t_6 (* c (- (* y y3) (* t y2))))
(t_7 (- (* t j) (* y k)))
(t_8 (- (* c y4) (* a y5)))
(t_9 (* y3 (+ (* y t_8) (- (* z t_1) (* j t_4)))))
(t_10 (* b t_7))
(t_11 (- (* b y0) (* i y1))))
(if (<= y3 -3.5e+188)
t_9
(if (<= y3 -1.5e+82)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(- (* y0 (- (* j y3) (* k y2))) (* i t_7))))
(if (<= y3 -3.7e+42)
(* y4 (+ (+ t_10 (* y1 (- (* k y2) (* j y3)))) t_6))
(if (<= y3 -1.5e-249)
(* y (+ (+ (* k (- (* i y5) (* b y4))) (* x t_5)) (* y3 t_8)))
(if (<= y3 1e-263)
(* x (- (+ (* y t_5) (* y2 t_3)) (* j t_11)))
(if (<= y3 5.4e-220)
(* t (* y4 (- (* b j) (* c y2))))
(if (<= y3 1.25e-206)
(* y2 (+ (+ (* k t_4) (* x t_3)) (* t (- (* a y5) (* c y4)))))
(if (<= y3 4.6e-127)
(* z (+ (* k t_11) (+ (* t t_2) (* y3 t_1))))
(if (<= y3 2.95e-55)
(* t (- (+ (* z t_2) (* b (* j y4))) (* c (* y2 y4))))
(if (<= y3 2.4e+168)
(*
y4
(+ (+ t_10 (- (* k (* y1 y2)) (* j (* y1 y3)))) t_6))
t_9))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y1) - (c * y0);
double t_2 = (c * i) - (a * b);
double t_3 = (c * y0) - (a * y1);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = (a * b) - (c * i);
double t_6 = c * ((y * y3) - (t * y2));
double t_7 = (t * j) - (y * k);
double t_8 = (c * y4) - (a * y5);
double t_9 = y3 * ((y * t_8) + ((z * t_1) - (j * t_4)));
double t_10 = b * t_7;
double t_11 = (b * y0) - (i * y1);
double tmp;
if (y3 <= -3.5e+188) {
tmp = t_9;
} else if (y3 <= -1.5e+82) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_7)));
} else if (y3 <= -3.7e+42) {
tmp = y4 * ((t_10 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y3 <= -1.5e-249) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * t_8));
} else if (y3 <= 1e-263) {
tmp = x * (((y * t_5) + (y2 * t_3)) - (j * t_11));
} else if (y3 <= 5.4e-220) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y3 <= 1.25e-206) {
tmp = y2 * (((k * t_4) + (x * t_3)) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= 4.6e-127) {
tmp = z * ((k * t_11) + ((t * t_2) + (y3 * t_1)));
} else if (y3 <= 2.95e-55) {
tmp = t * (((z * t_2) + (b * (j * y4))) - (c * (y2 * y4)));
} else if (y3 <= 2.4e+168) {
tmp = y4 * ((t_10 + ((k * (y1 * y2)) - (j * (y1 * y3)))) + t_6);
} else {
tmp = t_9;
}
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_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 = (a * y1) - (c * y0)
t_2 = (c * i) - (a * b)
t_3 = (c * y0) - (a * y1)
t_4 = (y1 * y4) - (y0 * y5)
t_5 = (a * b) - (c * i)
t_6 = c * ((y * y3) - (t * y2))
t_7 = (t * j) - (y * k)
t_8 = (c * y4) - (a * y5)
t_9 = y3 * ((y * t_8) + ((z * t_1) - (j * t_4)))
t_10 = b * t_7
t_11 = (b * y0) - (i * y1)
if (y3 <= (-3.5d+188)) then
tmp = t_9
else if (y3 <= (-1.5d+82)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_7)))
else if (y3 <= (-3.7d+42)) then
tmp = y4 * ((t_10 + (y1 * ((k * y2) - (j * y3)))) + t_6)
else if (y3 <= (-1.5d-249)) then
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * t_8))
else if (y3 <= 1d-263) then
tmp = x * (((y * t_5) + (y2 * t_3)) - (j * t_11))
else if (y3 <= 5.4d-220) then
tmp = t * (y4 * ((b * j) - (c * y2)))
else if (y3 <= 1.25d-206) then
tmp = y2 * (((k * t_4) + (x * t_3)) + (t * ((a * y5) - (c * y4))))
else if (y3 <= 4.6d-127) then
tmp = z * ((k * t_11) + ((t * t_2) + (y3 * t_1)))
else if (y3 <= 2.95d-55) then
tmp = t * (((z * t_2) + (b * (j * y4))) - (c * (y2 * y4)))
else if (y3 <= 2.4d+168) then
tmp = y4 * ((t_10 + ((k * (y1 * y2)) - (j * (y1 * y3)))) + t_6)
else
tmp = t_9
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * y1) - (c * y0);
double t_2 = (c * i) - (a * b);
double t_3 = (c * y0) - (a * y1);
double t_4 = (y1 * y4) - (y0 * y5);
double t_5 = (a * b) - (c * i);
double t_6 = c * ((y * y3) - (t * y2));
double t_7 = (t * j) - (y * k);
double t_8 = (c * y4) - (a * y5);
double t_9 = y3 * ((y * t_8) + ((z * t_1) - (j * t_4)));
double t_10 = b * t_7;
double t_11 = (b * y0) - (i * y1);
double tmp;
if (y3 <= -3.5e+188) {
tmp = t_9;
} else if (y3 <= -1.5e+82) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_7)));
} else if (y3 <= -3.7e+42) {
tmp = y4 * ((t_10 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y3 <= -1.5e-249) {
tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * t_8));
} else if (y3 <= 1e-263) {
tmp = x * (((y * t_5) + (y2 * t_3)) - (j * t_11));
} else if (y3 <= 5.4e-220) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y3 <= 1.25e-206) {
tmp = y2 * (((k * t_4) + (x * t_3)) + (t * ((a * y5) - (c * y4))));
} else if (y3 <= 4.6e-127) {
tmp = z * ((k * t_11) + ((t * t_2) + (y3 * t_1)));
} else if (y3 <= 2.95e-55) {
tmp = t * (((z * t_2) + (b * (j * y4))) - (c * (y2 * y4)));
} else if (y3 <= 2.4e+168) {
tmp = y4 * ((t_10 + ((k * (y1 * y2)) - (j * (y1 * y3)))) + t_6);
} else {
tmp = t_9;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * y1) - (c * y0) t_2 = (c * i) - (a * b) t_3 = (c * y0) - (a * y1) t_4 = (y1 * y4) - (y0 * y5) t_5 = (a * b) - (c * i) t_6 = c * ((y * y3) - (t * y2)) t_7 = (t * j) - (y * k) t_8 = (c * y4) - (a * y5) t_9 = y3 * ((y * t_8) + ((z * t_1) - (j * t_4))) t_10 = b * t_7 t_11 = (b * y0) - (i * y1) tmp = 0 if y3 <= -3.5e+188: tmp = t_9 elif y3 <= -1.5e+82: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_7))) elif y3 <= -3.7e+42: tmp = y4 * ((t_10 + (y1 * ((k * y2) - (j * y3)))) + t_6) elif y3 <= -1.5e-249: tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * t_8)) elif y3 <= 1e-263: tmp = x * (((y * t_5) + (y2 * t_3)) - (j * t_11)) elif y3 <= 5.4e-220: tmp = t * (y4 * ((b * j) - (c * y2))) elif y3 <= 1.25e-206: tmp = y2 * (((k * t_4) + (x * t_3)) + (t * ((a * y5) - (c * y4)))) elif y3 <= 4.6e-127: tmp = z * ((k * t_11) + ((t * t_2) + (y3 * t_1))) elif y3 <= 2.95e-55: tmp = t * (((z * t_2) + (b * (j * y4))) - (c * (y2 * y4))) elif y3 <= 2.4e+168: tmp = y4 * ((t_10 + ((k * (y1 * y2)) - (j * (y1 * y3)))) + t_6) else: tmp = t_9 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * y1) - Float64(c * y0)) t_2 = Float64(Float64(c * i) - Float64(a * b)) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) t_4 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_5 = Float64(Float64(a * b) - Float64(c * i)) t_6 = Float64(c * Float64(Float64(y * y3) - Float64(t * y2))) t_7 = Float64(Float64(t * j) - Float64(y * k)) t_8 = Float64(Float64(c * y4) - Float64(a * y5)) t_9 = Float64(y3 * Float64(Float64(y * t_8) + Float64(Float64(z * t_1) - Float64(j * t_4)))) t_10 = Float64(b * t_7) t_11 = Float64(Float64(b * y0) - Float64(i * y1)) tmp = 0.0 if (y3 <= -3.5e+188) tmp = t_9; elseif (y3 <= -1.5e+82) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * t_7)))); elseif (y3 <= -3.7e+42) tmp = Float64(y4 * Float64(Float64(t_10 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + t_6)); elseif (y3 <= -1.5e-249) tmp = Float64(y * Float64(Float64(Float64(k * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(x * t_5)) + Float64(y3 * t_8))); elseif (y3 <= 1e-263) tmp = Float64(x * Float64(Float64(Float64(y * t_5) + Float64(y2 * t_3)) - Float64(j * t_11))); elseif (y3 <= 5.4e-220) tmp = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y3 <= 1.25e-206) tmp = Float64(y2 * Float64(Float64(Float64(k * t_4) + Float64(x * t_3)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y3 <= 4.6e-127) tmp = Float64(z * Float64(Float64(k * t_11) + Float64(Float64(t * t_2) + Float64(y3 * t_1)))); elseif (y3 <= 2.95e-55) tmp = Float64(t * Float64(Float64(Float64(z * t_2) + Float64(b * Float64(j * y4))) - Float64(c * Float64(y2 * y4)))); elseif (y3 <= 2.4e+168) tmp = Float64(y4 * Float64(Float64(t_10 + Float64(Float64(k * Float64(y1 * y2)) - Float64(j * Float64(y1 * y3)))) + t_6)); else tmp = t_9; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * y1) - (c * y0); t_2 = (c * i) - (a * b); t_3 = (c * y0) - (a * y1); t_4 = (y1 * y4) - (y0 * y5); t_5 = (a * b) - (c * i); t_6 = c * ((y * y3) - (t * y2)); t_7 = (t * j) - (y * k); t_8 = (c * y4) - (a * y5); t_9 = y3 * ((y * t_8) + ((z * t_1) - (j * t_4))); t_10 = b * t_7; t_11 = (b * y0) - (i * y1); tmp = 0.0; if (y3 <= -3.5e+188) tmp = t_9; elseif (y3 <= -1.5e+82) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_7))); elseif (y3 <= -3.7e+42) tmp = y4 * ((t_10 + (y1 * ((k * y2) - (j * y3)))) + t_6); elseif (y3 <= -1.5e-249) tmp = y * (((k * ((i * y5) - (b * y4))) + (x * t_5)) + (y3 * t_8)); elseif (y3 <= 1e-263) tmp = x * (((y * t_5) + (y2 * t_3)) - (j * t_11)); elseif (y3 <= 5.4e-220) tmp = t * (y4 * ((b * j) - (c * y2))); elseif (y3 <= 1.25e-206) tmp = y2 * (((k * t_4) + (x * t_3)) + (t * ((a * y5) - (c * y4)))); elseif (y3 <= 4.6e-127) tmp = z * ((k * t_11) + ((t * t_2) + (y3 * t_1))); elseif (y3 <= 2.95e-55) tmp = t * (((z * t_2) + (b * (j * y4))) - (c * (y2 * y4))); elseif (y3 <= 2.4e+168) tmp = y4 * ((t_10 + ((k * (y1 * y2)) - (j * (y1 * y3)))) + t_6); else tmp = t_9; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(y3 * N[(N[(y * t$95$8), $MachinePrecision] + N[(N[(z * t$95$1), $MachinePrecision] - N[(j * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(b * t$95$7), $MachinePrecision]}, Block[{t$95$11 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -3.5e+188], t$95$9, If[LessEqual[y3, -1.5e+82], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -3.7e+42], N[(y4 * N[(N[(t$95$10 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, -1.5e-249], N[(y * N[(N[(N[(k * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$8), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1e-263], N[(x * N[(N[(N[(y * t$95$5), $MachinePrecision] + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$11), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 5.4e-220], N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.25e-206], N[(y2 * N[(N[(N[(k * t$95$4), $MachinePrecision] + N[(x * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.6e-127], N[(z * N[(N[(k * t$95$11), $MachinePrecision] + N[(N[(t * t$95$2), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.95e-55], N[(t * N[(N[(N[(z * t$95$2), $MachinePrecision] + N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.4e+168], N[(y4 * N[(N[(t$95$10 + N[(N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision], t$95$9]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot y1 - c \cdot y0\\
t_2 := c \cdot i - a \cdot b\\
t_3 := c \cdot y0 - a \cdot y1\\
t_4 := y1 \cdot y4 - y0 \cdot y5\\
t_5 := a \cdot b - c \cdot i\\
t_6 := c \cdot \left(y \cdot y3 - t \cdot y2\right)\\
t_7 := t \cdot j - y \cdot k\\
t_8 := c \cdot y4 - a \cdot y5\\
t_9 := y3 \cdot \left(y \cdot t\_8 + \left(z \cdot t\_1 - j \cdot t\_4\right)\right)\\
t_10 := b \cdot t\_7\\
t_11 := b \cdot y0 - i \cdot y1\\
\mathbf{if}\;y3 \leq -3.5 \cdot 10^{+188}:\\
\;\;\;\;t\_9\\
\mathbf{elif}\;y3 \leq -1.5 \cdot 10^{+82}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot t\_7\right)\right)\\
\mathbf{elif}\;y3 \leq -3.7 \cdot 10^{+42}:\\
\;\;\;\;y4 \cdot \left(\left(t\_10 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + t\_6\right)\\
\mathbf{elif}\;y3 \leq -1.5 \cdot 10^{-249}:\\
\;\;\;\;y \cdot \left(\left(k \cdot \left(i \cdot y5 - b \cdot y4\right) + x \cdot t\_5\right) + y3 \cdot t\_8\right)\\
\mathbf{elif}\;y3 \leq 10^{-263}:\\
\;\;\;\;x \cdot \left(\left(y \cdot t\_5 + y2 \cdot t\_3\right) - j \cdot t\_11\right)\\
\mathbf{elif}\;y3 \leq 5.4 \cdot 10^{-220}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y3 \leq 1.25 \cdot 10^{-206}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot t\_4 + x \cdot t\_3\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 4.6 \cdot 10^{-127}:\\
\;\;\;\;z \cdot \left(k \cdot t\_11 + \left(t \cdot t\_2 + y3 \cdot t\_1\right)\right)\\
\mathbf{elif}\;y3 \leq 2.95 \cdot 10^{-55}:\\
\;\;\;\;t \cdot \left(\left(z \cdot t\_2 + b \cdot \left(j \cdot y4\right)\right) - c \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 2.4 \cdot 10^{+168}:\\
\;\;\;\;y4 \cdot \left(\left(t\_10 + \left(k \cdot \left(y1 \cdot y2\right) - j \cdot \left(y1 \cdot y3\right)\right)\right) + t\_6\right)\\
\mathbf{else}:\\
\;\;\;\;t\_9\\
\end{array}
\end{array}
if y3 < -3.50000000000000008e188 or 2.40000000000000009e168 < y3 Initial program 11.3%
Taylor expanded in y3 around -inf 62.7%
if -3.50000000000000008e188 < y3 < -1.49999999999999995e82Initial program 31.5%
Taylor expanded in y5 around -inf 72.1%
if -1.49999999999999995e82 < y3 < -3.69999999999999996e42Initial program 0.0%
Taylor expanded in y4 around inf 86.4%
if -3.69999999999999996e42 < y3 < -1.50000000000000002e-249Initial program 34.4%
Taylor expanded in y around inf 58.2%
if -1.50000000000000002e-249 < y3 < 1e-263Initial program 56.2%
Taylor expanded in x around inf 60.5%
if 1e-263 < y3 < 5.4e-220Initial program 19.5%
Taylor expanded in t around inf 45.5%
Taylor expanded in y4 around inf 55.5%
if 5.4e-220 < y3 < 1.25e-206Initial program 40.0%
Taylor expanded in y2 around inf 80.6%
if 1.25e-206 < y3 < 4.60000000000000038e-127Initial program 38.0%
Taylor expanded in z around -inf 57.7%
if 4.60000000000000038e-127 < y3 < 2.9499999999999999e-55Initial program 24.9%
Taylor expanded in t around inf 55.6%
Taylor expanded in y5 around 0 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
if 2.9499999999999999e-55 < y3 < 2.40000000000000009e168Initial program 28.3%
Taylor expanded in y4 around inf 61.2%
Taylor expanded in k around 0 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
Simplified67.7%
Final simplification63.2%
(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 (* b (* y (- (* x a) (* k y4)))))
(t_3 (- (* t j) (* y k)))
(t_4 (* b t_3))
(t_5
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* c (- (* z t) (* x y))) (* y5 t_3))))))
(if (<= y4 -2.2e+182)
t_2
(if (<= y4 -2.5e+116)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -4.6e+20)
(*
y5
(+
(* a (- (* t y2) (* y y3)))
(- (* y0 (- (* j y3) (* k y2))) (* i t_3))))
(if (<= y4 -390000.0)
t_2
(if (<= y4 -4.8e-42)
(* y4 (+ t_4 (* y1 (- (* k y2) (* j y3)))))
(if (<= y4 -6.2e-162)
(*
y2
(+
(+ (* k t_1) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 -7e-243)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 1.76e-96)
t_5
(if (<= y4 3.9e-22)
(*
y3
(+
(* y (- (* c y4) (* a y5)))
(- (* z (- (* a y1) (* c y0))) (* j t_1))))
(if (<= y4 2.6e+99)
t_5
(*
y4
(+ (- t_4 (* j (* y1 y3))) (* c (* y y3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = (t * j) - (y * k);
double t_4 = b * t_3;
double t_5 = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)));
double tmp;
if (y4 <= -2.2e+182) {
tmp = t_2;
} else if (y4 <= -2.5e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -4.6e+20) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)));
} else if (y4 <= -390000.0) {
tmp = t_2;
} else if (y4 <= -4.8e-42) {
tmp = y4 * (t_4 + (y1 * ((k * y2) - (j * y3))));
} else if (y4 <= -6.2e-162) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -7e-243) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1.76e-96) {
tmp = t_5;
} else if (y4 <= 3.9e-22) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)));
} else if (y4 <= 2.6e+99) {
tmp = t_5;
} else {
tmp = y4 * ((t_4 - (j * (y1 * y3))) + (c * (y * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: 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 = b * (y * ((x * a) - (k * y4)))
t_3 = (t * j) - (y * k)
t_4 = b * t_3
t_5 = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)))
if (y4 <= (-2.2d+182)) then
tmp = t_2
else if (y4 <= (-2.5d+116)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-4.6d+20)) then
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)))
else if (y4 <= (-390000.0d0)) then
tmp = t_2
else if (y4 <= (-4.8d-42)) then
tmp = y4 * (t_4 + (y1 * ((k * y2) - (j * y3))))
else if (y4 <= (-6.2d-162)) then
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= (-7d-243)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 1.76d-96) then
tmp = t_5
else if (y4 <= 3.9d-22) then
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)))
else if (y4 <= 2.6d+99) then
tmp = t_5
else
tmp = y4 * ((t_4 - (j * (y1 * y3))) + (c * (y * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y4) - (y0 * y5);
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = (t * j) - (y * k);
double t_4 = b * t_3;
double t_5 = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)));
double tmp;
if (y4 <= -2.2e+182) {
tmp = t_2;
} else if (y4 <= -2.5e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -4.6e+20) {
tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3)));
} else if (y4 <= -390000.0) {
tmp = t_2;
} else if (y4 <= -4.8e-42) {
tmp = y4 * (t_4 + (y1 * ((k * y2) - (j * y3))));
} else if (y4 <= -6.2e-162) {
tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -7e-243) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1.76e-96) {
tmp = t_5;
} else if (y4 <= 3.9e-22) {
tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1)));
} else if (y4 <= 2.6e+99) {
tmp = t_5;
} else {
tmp = y4 * ((t_4 - (j * (y1 * y3))) + (c * (y * y3)));
}
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 = b * (y * ((x * a) - (k * y4))) t_3 = (t * j) - (y * k) t_4 = b * t_3 t_5 = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3))) tmp = 0 if y4 <= -2.2e+182: tmp = t_2 elif y4 <= -2.5e+116: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -4.6e+20: tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3))) elif y4 <= -390000.0: tmp = t_2 elif y4 <= -4.8e-42: tmp = y4 * (t_4 + (y1 * ((k * y2) - (j * y3)))) elif y4 <= -6.2e-162: tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= -7e-243: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 1.76e-96: tmp = t_5 elif y4 <= 3.9e-22: tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1))) elif y4 <= 2.6e+99: tmp = t_5 else: tmp = y4 * ((t_4 - (j * (y1 * y3))) + (c * (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_2 = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(b * t_3) t_5 = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_3)))) tmp = 0.0 if (y4 <= -2.2e+182) tmp = t_2; elseif (y4 <= -2.5e+116) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -4.6e+20) tmp = Float64(y5 * Float64(Float64(a * Float64(Float64(t * y2) - Float64(y * y3))) + Float64(Float64(y0 * Float64(Float64(j * y3) - Float64(k * y2))) - Float64(i * t_3)))); elseif (y4 <= -390000.0) tmp = t_2; elseif (y4 <= -4.8e-42) tmp = Float64(y4 * Float64(t_4 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))))); elseif (y4 <= -6.2e-162) tmp = 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))))); elseif (y4 <= -7e-243) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 1.76e-96) tmp = t_5; elseif (y4 <= 3.9e-22) tmp = Float64(y3 * Float64(Float64(y * Float64(Float64(c * y4) - Float64(a * y5))) + Float64(Float64(z * Float64(Float64(a * y1) - Float64(c * y0))) - Float64(j * t_1)))); elseif (y4 <= 2.6e+99) tmp = t_5; else tmp = Float64(y4 * Float64(Float64(t_4 - Float64(j * Float64(y1 * y3))) + Float64(c * Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y1 * y4) - (y0 * y5); t_2 = b * (y * ((x * a) - (k * y4))); t_3 = (t * j) - (y * k); t_4 = b * t_3; t_5 = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3))); tmp = 0.0; if (y4 <= -2.2e+182) tmp = t_2; elseif (y4 <= -2.5e+116) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -4.6e+20) tmp = y5 * ((a * ((t * y2) - (y * y3))) + ((y0 * ((j * y3) - (k * y2))) - (i * t_3))); elseif (y4 <= -390000.0) tmp = t_2; elseif (y4 <= -4.8e-42) tmp = y4 * (t_4 + (y1 * ((k * y2) - (j * y3)))); elseif (y4 <= -6.2e-162) tmp = y2 * (((k * t_1) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= -7e-243) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 1.76e-96) tmp = t_5; elseif (y4 <= 3.9e-22) tmp = y3 * ((y * ((c * y4) - (a * y5))) + ((z * ((a * y1) - (c * y0))) - (j * t_1))); elseif (y4 <= 2.6e+99) tmp = t_5; else tmp = y4 * ((t_4 - (j * (y1 * y3))) + (c * (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * t$95$3), $MachinePrecision]}, Block[{t$95$5 = N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.2e+182], t$95$2, If[LessEqual[y4, -2.5e+116], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -4.6e+20], N[(y5 * N[(N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -390000.0], t$95$2, If[LessEqual[y4, -4.8e-42], N[(y4 * N[(t$95$4 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.2e-162], 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], If[LessEqual[y4, -7e-243], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.76e-96], t$95$5, If[LessEqual[y4, 3.9e-22], N[(y3 * N[(N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(N[(a * y1), $MachinePrecision] - N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.6e+99], t$95$5, N[(y4 * N[(N[(t$95$4 - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot y4 - y0 \cdot y5\\
t_2 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
t_3 := t \cdot j - y \cdot k\\
t_4 := b \cdot t\_3\\
t_5 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_3\right)\right)\\
\mathbf{if}\;y4 \leq -2.2 \cdot 10^{+182}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq -2.5 \cdot 10^{+116}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -4.6 \cdot 10^{+20}:\\
\;\;\;\;y5 \cdot \left(a \cdot \left(t \cdot y2 - y \cdot y3\right) + \left(y0 \cdot \left(j \cdot y3 - k \cdot y2\right) - i \cdot t\_3\right)\right)\\
\mathbf{elif}\;y4 \leq -390000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq -4.8 \cdot 10^{-42}:\\
\;\;\;\;y4 \cdot \left(t\_4 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq -6.2 \cdot 10^{-162}:\\
\;\;\;\;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)\\
\mathbf{elif}\;y4 \leq -7 \cdot 10^{-243}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 1.76 \cdot 10^{-96}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y4 \leq 3.9 \cdot 10^{-22}:\\
\;\;\;\;y3 \cdot \left(y \cdot \left(c \cdot y4 - a \cdot y5\right) + \left(z \cdot \left(a \cdot y1 - c \cdot y0\right) - j \cdot t\_1\right)\right)\\
\mathbf{elif}\;y4 \leq 2.6 \cdot 10^{+99}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(t\_4 - j \cdot \left(y1 \cdot y3\right)\right) + c \cdot \left(y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -2.19999999999999997e182 or -4.6e20 < y4 < -3.9e5Initial program 26.7%
Taylor expanded in b around inf 44.4%
Taylor expanded in y around inf 64.1%
+-commutative64.1%
mul-1-neg64.1%
unsub-neg64.1%
Simplified64.1%
if -2.19999999999999997e182 < y4 < -2.50000000000000013e116Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -2.50000000000000013e116 < y4 < -4.6e20Initial program 33.4%
Taylor expanded in y5 around -inf 53.1%
if -3.9e5 < y4 < -4.80000000000000005e-42Initial program 49.7%
Taylor expanded in y4 around inf 59.7%
Taylor expanded in c around 0 59.7%
if -4.80000000000000005e-42 < y4 < -6.1999999999999997e-162Initial program 19.5%
Taylor expanded in y2 around inf 52.5%
if -6.1999999999999997e-162 < y4 < -6.99999999999999958e-243Initial program 29.9%
Taylor expanded in b around inf 40.8%
Taylor expanded in a around inf 60.4%
if -6.99999999999999958e-243 < y4 < 1.7599999999999999e-96 or 3.89999999999999998e-22 < y4 < 2.6e99Initial program 40.8%
Taylor expanded in i around -inf 58.2%
if 1.7599999999999999e-96 < y4 < 3.89999999999999998e-22Initial program 21.4%
Taylor expanded in y3 around -inf 57.8%
if 2.6e99 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in y2 around 0 70.9%
Final simplification60.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t j) (* y k))))
(if (<= y4 -8.6e+181)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -7.5e+113)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -5.2e-72)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -8.2e-123)
(* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))
(if (<= y4 -3.8e-147)
(* y1 (* k (- (* y2 y4) (* z i))))
(if (<= y4 -7.8e-173)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= y4 -4.8e-175)
(* (- t) (* y4 (* c y2)))
(if (<= y4 -2.8e-201)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 -1.75e-234)
(*
x
(-
(+
(* y (- (* a b) (* c i)))
(* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))
(if (<= y4 2.55e+98)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* c (- (* z t) (* x y))) (* y5 t_1))))
(*
y4
(+
(- (* b t_1) (* j (* y1 y3)))
(* c (* y y3))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (y4 <= -8.6e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -7.5e+113) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -5.2e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -8.2e-123) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -3.8e-147) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -7.8e-173) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -4.8e-175) {
tmp = -t * (y4 * (c * y2));
} else if (y4 <= -2.8e-201) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= -1.75e-234) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (y4 <= 2.55e+98) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_1)));
} else {
tmp = y4 * (((b * t_1) - (j * (y1 * y3))) + (c * (y * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (t * j) - (y * k)
if (y4 <= (-8.6d+181)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-7.5d+113)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-5.2d-72)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-8.2d-123)) then
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
else if (y4 <= (-3.8d-147)) then
tmp = y1 * (k * ((y2 * y4) - (z * i)))
else if (y4 <= (-7.8d-173)) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (y4 <= (-4.8d-175)) then
tmp = -t * (y4 * (c * y2))
else if (y4 <= (-2.8d-201)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= (-1.75d-234)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))))
else if (y4 <= 2.55d+98) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_1)))
else
tmp = y4 * (((b * t_1) - (j * (y1 * y3))) + (c * (y * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (t * j) - (y * k);
double tmp;
if (y4 <= -8.6e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -7.5e+113) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -5.2e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -8.2e-123) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -3.8e-147) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -7.8e-173) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -4.8e-175) {
tmp = -t * (y4 * (c * y2));
} else if (y4 <= -2.8e-201) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= -1.75e-234) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else if (y4 <= 2.55e+98) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_1)));
} else {
tmp = y4 * (((b * t_1) - (j * (y1 * y3))) + (c * (y * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (t * j) - (y * k) tmp = 0 if y4 <= -8.6e+181: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -7.5e+113: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -5.2e-72: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -8.2e-123: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) elif y4 <= -3.8e-147: tmp = y1 * (k * ((y2 * y4) - (z * i))) elif y4 <= -7.8e-173: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif y4 <= -4.8e-175: tmp = -t * (y4 * (c * y2)) elif y4 <= -2.8e-201: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= -1.75e-234: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))) elif y4 <= 2.55e+98: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_1))) else: tmp = y4 * (((b * t_1) - (j * (y1 * y3))) + (c * (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (y4 <= -8.6e+181) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -7.5e+113) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -5.2e-72) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -8.2e-123) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -3.8e-147) tmp = Float64(y1 * Float64(k * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y4 <= -7.8e-173) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y4 <= -4.8e-175) tmp = Float64(Float64(-t) * Float64(y4 * Float64(c * y2))); elseif (y4 <= -2.8e-201) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= -1.75e-234) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y4 <= 2.55e+98) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_1)))); else tmp = Float64(y4 * Float64(Float64(Float64(b * t_1) - Float64(j * Float64(y1 * y3))) + Float64(c * Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (t * j) - (y * k); tmp = 0.0; if (y4 <= -8.6e+181) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -7.5e+113) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -5.2e-72) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -8.2e-123) tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); elseif (y4 <= -3.8e-147) tmp = y1 * (k * ((y2 * y4) - (z * i))); elseif (y4 <= -7.8e-173) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (y4 <= -4.8e-175) tmp = -t * (y4 * (c * y2)); elseif (y4 <= -2.8e-201) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= -1.75e-234) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))); elseif (y4 <= 2.55e+98) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_1))); else tmp = y4 * (((b * t_1) - (j * (y1 * y3))) + (c * (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -8.6e+181], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -7.5e+113], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.2e-72], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.2e-123], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.8e-147], N[(y1 * N[(k * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -7.8e-173], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -4.8e-175], N[((-t) * N[(y4 * N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.8e-201], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.75e-234], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.55e+98], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(N[(b * t$95$1), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot j - y \cdot k\\
\mathbf{if}\;y4 \leq -8.6 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -7.5 \cdot 10^{+113}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -5.2 \cdot 10^{-72}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -8.2 \cdot 10^{-123}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -3.8 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y4 \leq -7.8 \cdot 10^{-173}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -4.8 \cdot 10^{-175}:\\
\;\;\;\;\left(-t\right) \cdot \left(y4 \cdot \left(c \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -2.8 \cdot 10^{-201}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq -1.75 \cdot 10^{-234}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq 2.55 \cdot 10^{+98}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot t\_1 - j \cdot \left(y1 \cdot y3\right)\right) + c \cdot \left(y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -8.59999999999999943e181Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -8.59999999999999943e181 < y4 < -7.5000000000000001e113Initial program 14.6%
Taylor expanded in y4 around inf 47.8%
Taylor expanded in k around -inf 62.2%
mul-1-neg62.2%
*-commutative62.2%
distribute-rgt-neg-in62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if -7.5000000000000001e113 < y4 < -5.19999999999999992e-72Initial program 29.7%
Taylor expanded in y1 around inf 34.4%
Taylor expanded in z around inf 46.9%
if -5.19999999999999992e-72 < y4 < -8.2000000000000001e-123Initial program 20.8%
Taylor expanded in t around inf 80.4%
Taylor expanded in j around 0 80.4%
mul-1-neg80.4%
Simplified80.4%
if -8.2000000000000001e-123 < y4 < -3.80000000000000028e-147Initial program 49.6%
Taylor expanded in y1 around inf 75.4%
Taylor expanded in k around inf 75.4%
if -3.80000000000000028e-147 < y4 < -7.79999999999999974e-173Initial program 14.3%
Taylor expanded in y5 around -inf 57.1%
Taylor expanded in y0 around inf 71.8%
if -7.79999999999999974e-173 < y4 < -4.8e-175Initial program 0.0%
Taylor expanded in t around inf 50.0%
Taylor expanded in y4 around inf 100.0%
Taylor expanded in b around 0 100.0%
mul-1-neg100.0%
distribute-lft-neg-out100.0%
*-commutative100.0%
Simplified100.0%
if -4.8e-175 < y4 < -2.7999999999999999e-201Initial program 40.0%
Taylor expanded in b around inf 60.0%
Taylor expanded in a around inf 100.0%
if -2.7999999999999999e-201 < y4 < -1.7500000000000001e-234Initial program 57.0%
Taylor expanded in x around inf 71.7%
if -1.7500000000000001e-234 < y4 < 2.54999999999999994e98Initial program 36.6%
Taylor expanded in i around -inf 53.0%
if 2.54999999999999994e98 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in y2 around 0 70.9%
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 (- (* x y) (* z t)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (- (* t j) (* y k)))
(t_4 (* b t_3))
(t_5 (* c (- (* y y3) (* t y2))))
(t_6 (* k (* y1 y2)))
(t_7 (* j (* y1 y3))))
(if (<= y4 -8.5e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -8.6e+158)
(* y4 (- (+ t_4 t_6) t_7))
(if (<= y4 -1e+148)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -1.7e+24)
(* b (+ (+ (* a t_1) (* y4 t_3)) (* y0 (- (* z k) (* x j)))))
(if (<= y4 -2.15e-72)
(+ (* (- (* k y2) (* j y3)) t_2) (* y4 (+ t_4 t_5)))
(if (<= y4 -5.5e-122)
(* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))
(if (<= y4 -1.7e-162)
(*
k
(+
(+ (* y (- (* i y5) (* b y4))) (* y2 t_2))
(* z (- (* b y0) (* i y1)))))
(if (<= y4 -5e-243)
(* a (* b t_1))
(if (<= y4 6.8e+96)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* c (- (* z t) (* x y))) (* y5 t_3))))
(* y4 (+ (+ t_4 (- t_6 t_7)) t_5)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (t * j) - (y * k);
double t_4 = b * t_3;
double t_5 = c * ((y * y3) - (t * y2));
double t_6 = k * (y1 * y2);
double t_7 = j * (y1 * y3);
double tmp;
if (y4 <= -8.5e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.6e+158) {
tmp = y4 * ((t_4 + t_6) - t_7);
} else if (y4 <= -1e+148) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.7e+24) {
tmp = b * (((a * t_1) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.15e-72) {
tmp = (((k * y2) - (j * y3)) * t_2) + (y4 * (t_4 + t_5));
} else if (y4 <= -5.5e-122) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -1.7e-162) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -5e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 6.8e+96) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)));
} else {
tmp = y4 * ((t_4 + (t_6 - t_7)) + t_5);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = (y1 * y4) - (y0 * y5)
t_3 = (t * j) - (y * k)
t_4 = b * t_3
t_5 = c * ((y * y3) - (t * y2))
t_6 = k * (y1 * y2)
t_7 = j * (y1 * y3)
if (y4 <= (-8.5d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-8.6d+158)) then
tmp = y4 * ((t_4 + t_6) - t_7)
else if (y4 <= (-1d+148)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-1.7d+24)) then
tmp = b * (((a * t_1) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= (-2.15d-72)) then
tmp = (((k * y2) - (j * y3)) * t_2) + (y4 * (t_4 + t_5))
else if (y4 <= (-5.5d-122)) then
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
else if (y4 <= (-1.7d-162)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_2)) + (z * ((b * y0) - (i * y1))))
else if (y4 <= (-5d-243)) then
tmp = a * (b * t_1)
else if (y4 <= 6.8d+96) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)))
else
tmp = y4 * ((t_4 + (t_6 - t_7)) + t_5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (t * j) - (y * k);
double t_4 = b * t_3;
double t_5 = c * ((y * y3) - (t * y2));
double t_6 = k * (y1 * y2);
double t_7 = j * (y1 * y3);
double tmp;
if (y4 <= -8.5e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.6e+158) {
tmp = y4 * ((t_4 + t_6) - t_7);
} else if (y4 <= -1e+148) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.7e+24) {
tmp = b * (((a * t_1) + (y4 * t_3)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.15e-72) {
tmp = (((k * y2) - (j * y3)) * t_2) + (y4 * (t_4 + t_5));
} else if (y4 <= -5.5e-122) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -1.7e-162) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_2)) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -5e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 6.8e+96) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3)));
} else {
tmp = y4 * ((t_4 + (t_6 - t_7)) + t_5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (x * y) - (z * t) t_2 = (y1 * y4) - (y0 * y5) t_3 = (t * j) - (y * k) t_4 = b * t_3 t_5 = c * ((y * y3) - (t * y2)) t_6 = k * (y1 * y2) t_7 = j * (y1 * y3) tmp = 0 if y4 <= -8.5e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -8.6e+158: tmp = y4 * ((t_4 + t_6) - t_7) elif y4 <= -1e+148: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -1.7e+24: tmp = b * (((a * t_1) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))) elif y4 <= -2.15e-72: tmp = (((k * y2) - (j * y3)) * t_2) + (y4 * (t_4 + t_5)) elif y4 <= -5.5e-122: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) elif y4 <= -1.7e-162: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_2)) + (z * ((b * y0) - (i * y1)))) elif y4 <= -5e-243: tmp = a * (b * t_1) elif y4 <= 6.8e+96: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3))) else: tmp = y4 * ((t_4 + (t_6 - t_7)) + t_5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y) - Float64(z * t)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(t * j) - Float64(y * k)) t_4 = Float64(b * t_3) t_5 = Float64(c * Float64(Float64(y * y3) - Float64(t * y2))) t_6 = Float64(k * Float64(y1 * y2)) t_7 = Float64(j * Float64(y1 * y3)) tmp = 0.0 if (y4 <= -8.5e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -8.6e+158) tmp = Float64(y4 * Float64(Float64(t_4 + t_6) - t_7)); elseif (y4 <= -1e+148) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -1.7e+24) tmp = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * t_3)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= -2.15e-72) tmp = Float64(Float64(Float64(Float64(k * y2) - Float64(j * y3)) * t_2) + Float64(y4 * Float64(t_4 + t_5))); elseif (y4 <= -5.5e-122) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -1.7e-162) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * t_2)) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y4 <= -5e-243) tmp = Float64(a * Float64(b * t_1)); elseif (y4 <= 6.8e+96) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_3)))); else tmp = Float64(y4 * Float64(Float64(t_4 + Float64(t_6 - t_7)) + t_5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = (y1 * y4) - (y0 * y5); t_3 = (t * j) - (y * k); t_4 = b * t_3; t_5 = c * ((y * y3) - (t * y2)); t_6 = k * (y1 * y2); t_7 = j * (y1 * y3); tmp = 0.0; if (y4 <= -8.5e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -8.6e+158) tmp = y4 * ((t_4 + t_6) - t_7); elseif (y4 <= -1e+148) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -1.7e+24) tmp = b * (((a * t_1) + (y4 * t_3)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= -2.15e-72) tmp = (((k * y2) - (j * y3)) * t_2) + (y4 * (t_4 + t_5)); elseif (y4 <= -5.5e-122) tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); elseif (y4 <= -1.7e-162) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * t_2)) + (z * ((b * y0) - (i * y1)))); elseif (y4 <= -5e-243) tmp = a * (b * t_1); elseif (y4 <= 6.8e+96) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_3))); else tmp = y4 * ((t_4 + (t_6 - t_7)) + t_5); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * t$95$3), $MachinePrecision]}, Block[{t$95$5 = N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -8.5e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.6e+158], N[(y4 * N[(N[(t$95$4 + t$95$6), $MachinePrecision] - t$95$7), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1e+148], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.7e+24], N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.15e-72], N[(N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] + N[(y4 * N[(t$95$4 + t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e-122], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.7e-162], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5e-243], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.8e+96], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(t$95$4 + N[(t$95$6 - t$95$7), $MachinePrecision]), $MachinePrecision] + t$95$5), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := t \cdot j - y \cdot k\\
t_4 := b \cdot t\_3\\
t_5 := c \cdot \left(y \cdot y3 - t \cdot y2\right)\\
t_6 := k \cdot \left(y1 \cdot y2\right)\\
t_7 := j \cdot \left(y1 \cdot y3\right)\\
\mathbf{if}\;y4 \leq -8.5 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -8.6 \cdot 10^{+158}:\\
\;\;\;\;y4 \cdot \left(\left(t\_4 + t\_6\right) - t\_7\right)\\
\mathbf{elif}\;y4 \leq -1 \cdot 10^{+148}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -1.7 \cdot 10^{+24}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_1 + y4 \cdot t\_3\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq -2.15 \cdot 10^{-72}:\\
\;\;\;\;\left(k \cdot y2 - j \cdot y3\right) \cdot t\_2 + y4 \cdot \left(t\_4 + t\_5\right)\\
\mathbf{elif}\;y4 \leq -5.5 \cdot 10^{-122}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.7 \cdot 10^{-162}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot t\_2\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -5 \cdot 10^{-243}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 6.8 \cdot 10^{+96}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(t\_4 + \left(t\_6 - t\_7\right)\right) + t\_5\right)\\
\end{array}
\end{array}
if y4 < -8.5e182Initial program 29.6%
Taylor expanded in b around inf 45.2%
Taylor expanded in y around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -8.5e182 < y4 < -8.6e158Initial program 17.3%
Taylor expanded in y4 around inf 41.9%
Taylor expanded in k around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in c around 0 75.0%
if -8.6e158 < y4 < -1e148Initial program 0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 100.0%
if -1e148 < y4 < -1.7e24Initial program 22.7%
Taylor expanded in b around inf 59.8%
if -1.7e24 < y4 < -2.1499999999999999e-72Initial program 34.6%
Taylor expanded in y4 around inf 54.9%
if -2.1499999999999999e-72 < y4 < -5.50000000000000053e-122Initial program 12.0%
Taylor expanded in t around inf 88.9%
Taylor expanded in j around 0 88.9%
mul-1-neg88.9%
Simplified88.9%
if -5.50000000000000053e-122 < y4 < -1.7e-162Initial program 37.3%
Taylor expanded in k around inf 87.3%
if -1.7e-162 < y4 < -5e-243Initial program 29.9%
Taylor expanded in b around inf 40.8%
Taylor expanded in a around inf 60.4%
if -5e-243 < y4 < 6.8000000000000002e96Initial program 37.8%
Taylor expanded in i around -inf 53.7%
if 6.8000000000000002e96 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in k around 0 71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
Simplified71.8%
Final simplification62.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (- (* t j) (* y k)))
(t_3 (* b t_2))
(t_4 (* k (* y1 y2)))
(t_5 (- (* x j) (* z k)))
(t_6 (* j (* y1 y3))))
(if (<= y4 -6.5e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -8.5e+158)
(* y4 (- (+ t_3 t_4) t_6))
(if (<= y4 -1.9e+151)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -3e+24)
(* b (+ (+ (* a t_1) (* y4 t_2)) (* y0 (- (* z k) (* x j)))))
(if (<= y4 -2.9e-30)
(*
y1
(+
(+ (* a (- (* z y3) (* x y2))) (* y4 (- (* k y2) (* j y3))))
(* i t_5)))
(if (<= y4 -5.5e-121)
(*
t
(+
(+ (* z (- (* c i) (* a b))) (* j (- (* b y4) (* i y5))))
(* y2 (- (* a y5) (* c y4)))))
(if (<= y4 -9.5e-164)
(*
k
(+
(+
(* y (- (* i y5) (* b y4)))
(* y2 (- (* y1 y4) (* y0 y5))))
(* z (- (* b y0) (* i y1)))))
(if (<= y4 -7e-243)
(* a (* b t_1))
(if (<= y4 6.3e+97)
(*
i
(+ (* y1 t_5) (- (* c (- (* z t) (* x y))) (* y5 t_2))))
(*
y4
(+
(+ t_3 (- t_4 t_6))
(* c (- (* y y3) (* t y2))))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (t * j) - (y * k);
double t_3 = b * t_2;
double t_4 = k * (y1 * y2);
double t_5 = (x * j) - (z * k);
double t_6 = j * (y1 * y3);
double tmp;
if (y4 <= -6.5e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.5e+158) {
tmp = y4 * ((t_3 + t_4) - t_6);
} else if (y4 <= -1.9e+151) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3e+24) {
tmp = b * (((a * t_1) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.9e-30) {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * ((k * y2) - (j * y3)))) + (i * t_5));
} else if (y4 <= -5.5e-121) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -9.5e-164) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -7e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 6.3e+97) {
tmp = i * ((y1 * t_5) + ((c * ((z * t) - (x * y))) - (y5 * t_2)));
} else {
tmp = y4 * ((t_3 + (t_4 - t_6)) + (c * ((y * y3) - (t * y2))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = (t * j) - (y * k)
t_3 = b * t_2
t_4 = k * (y1 * y2)
t_5 = (x * j) - (z * k)
t_6 = j * (y1 * y3)
if (y4 <= (-6.5d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-8.5d+158)) then
tmp = y4 * ((t_3 + t_4) - t_6)
else if (y4 <= (-1.9d+151)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-3d+24)) then
tmp = b * (((a * t_1) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= (-2.9d-30)) then
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * ((k * y2) - (j * y3)))) + (i * t_5))
else if (y4 <= (-5.5d-121)) then
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))))
else if (y4 <= (-9.5d-164)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))))
else if (y4 <= (-7d-243)) then
tmp = a * (b * t_1)
else if (y4 <= 6.3d+97) then
tmp = i * ((y1 * t_5) + ((c * ((z * t) - (x * y))) - (y5 * t_2)))
else
tmp = y4 * ((t_3 + (t_4 - t_6)) + (c * ((y * y3) - (t * y2))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (z * t);
double t_2 = (t * j) - (y * k);
double t_3 = b * t_2;
double t_4 = k * (y1 * y2);
double t_5 = (x * j) - (z * k);
double t_6 = j * (y1 * y3);
double tmp;
if (y4 <= -6.5e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.5e+158) {
tmp = y4 * ((t_3 + t_4) - t_6);
} else if (y4 <= -1.9e+151) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -3e+24) {
tmp = b * (((a * t_1) + (y4 * t_2)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.9e-30) {
tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * ((k * y2) - (j * y3)))) + (i * t_5));
} else if (y4 <= -5.5e-121) {
tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -9.5e-164) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -7e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 6.3e+97) {
tmp = i * ((y1 * t_5) + ((c * ((z * t) - (x * y))) - (y5 * t_2)));
} else {
tmp = y4 * ((t_3 + (t_4 - t_6)) + (c * ((y * y3) - (t * y2))));
}
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 = (t * j) - (y * k) t_3 = b * t_2 t_4 = k * (y1 * y2) t_5 = (x * j) - (z * k) t_6 = j * (y1 * y3) tmp = 0 if y4 <= -6.5e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -8.5e+158: tmp = y4 * ((t_3 + t_4) - t_6) elif y4 <= -1.9e+151: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -3e+24: tmp = b * (((a * t_1) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))) elif y4 <= -2.9e-30: tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * ((k * y2) - (j * y3)))) + (i * t_5)) elif y4 <= -5.5e-121: tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))) elif y4 <= -9.5e-164: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1)))) elif y4 <= -7e-243: tmp = a * (b * t_1) elif y4 <= 6.3e+97: tmp = i * ((y1 * t_5) + ((c * ((z * t) - (x * y))) - (y5 * t_2))) else: tmp = y4 * ((t_3 + (t_4 - t_6)) + (c * ((y * y3) - (t * 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(x * y) - Float64(z * t)) t_2 = Float64(Float64(t * j) - Float64(y * k)) t_3 = Float64(b * t_2) t_4 = Float64(k * Float64(y1 * y2)) t_5 = Float64(Float64(x * j) - Float64(z * k)) t_6 = Float64(j * Float64(y1 * y3)) tmp = 0.0 if (y4 <= -6.5e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -8.5e+158) tmp = Float64(y4 * Float64(Float64(t_3 + t_4) - t_6)); elseif (y4 <= -1.9e+151) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -3e+24) tmp = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * t_2)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= -2.9e-30) tmp = Float64(y1 * Float64(Float64(Float64(a * Float64(Float64(z * y3) - Float64(x * y2))) + Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(i * t_5))); elseif (y4 <= -5.5e-121) tmp = Float64(t * Float64(Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -9.5e-164) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y4 <= -7e-243) tmp = Float64(a * Float64(b * t_1)); elseif (y4 <= 6.3e+97) tmp = Float64(i * Float64(Float64(y1 * t_5) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_2)))); else tmp = Float64(y4 * Float64(Float64(t_3 + Float64(t_4 - t_6)) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (x * y) - (z * t); t_2 = (t * j) - (y * k); t_3 = b * t_2; t_4 = k * (y1 * y2); t_5 = (x * j) - (z * k); t_6 = j * (y1 * y3); tmp = 0.0; if (y4 <= -6.5e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -8.5e+158) tmp = y4 * ((t_3 + t_4) - t_6); elseif (y4 <= -1.9e+151) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -3e+24) tmp = b * (((a * t_1) + (y4 * t_2)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= -2.9e-30) tmp = y1 * (((a * ((z * y3) - (x * y2))) + (y4 * ((k * y2) - (j * y3)))) + (i * t_5)); elseif (y4 <= -5.5e-121) tmp = t * (((z * ((c * i) - (a * b))) + (j * ((b * y4) - (i * y5)))) + (y2 * ((a * y5) - (c * y4)))); elseif (y4 <= -9.5e-164) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1)))); elseif (y4 <= -7e-243) tmp = a * (b * t_1); elseif (y4 <= 6.3e+97) tmp = i * ((y1 * t_5) + ((c * ((z * t) - (x * y))) - (y5 * t_2))); else tmp = y4 * ((t_3 + (t_4 - t_6)) + (c * ((y * y3) - (t * 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[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -6.5e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.5e+158], N[(y4 * N[(N[(t$95$3 + t$95$4), $MachinePrecision] - t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.9e+151], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3e+24], N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-30], N[(y1 * N[(N[(N[(a * N[(N[(z * y3), $MachinePrecision] - N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e-121], N[(t * N[(N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9.5e-164], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -7e-243], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.3e+97], N[(i * N[(N[(y1 * t$95$5), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(t$95$3 + N[(t$95$4 - t$95$6), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := t \cdot j - y \cdot k\\
t_3 := b \cdot t\_2\\
t_4 := k \cdot \left(y1 \cdot y2\right)\\
t_5 := x \cdot j - z \cdot k\\
t_6 := j \cdot \left(y1 \cdot y3\right)\\
\mathbf{if}\;y4 \leq -6.5 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -8.5 \cdot 10^{+158}:\\
\;\;\;\;y4 \cdot \left(\left(t\_3 + t\_4\right) - t\_6\right)\\
\mathbf{elif}\;y4 \leq -1.9 \cdot 10^{+151}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -3 \cdot 10^{+24}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_1 + y4 \cdot t\_2\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-30}:\\
\;\;\;\;y1 \cdot \left(\left(a \cdot \left(z \cdot y3 - x \cdot y2\right) + y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + i \cdot t\_5\right)\\
\mathbf{elif}\;y4 \leq -5.5 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(\left(z \cdot \left(c \cdot i - a \cdot b\right) + j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -9.5 \cdot 10^{-164}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -7 \cdot 10^{-243}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 6.3 \cdot 10^{+97}:\\
\;\;\;\;i \cdot \left(y1 \cdot t\_5 + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(t\_3 + \left(t\_4 - t\_6\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\end{array}
\end{array}
if y4 < -6.4999999999999998e182Initial program 29.6%
Taylor expanded in b around inf 45.2%
Taylor expanded in y around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -6.4999999999999998e182 < y4 < -8.49999999999999978e158Initial program 17.3%
Taylor expanded in y4 around inf 41.9%
Taylor expanded in k around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in c around 0 75.0%
if -8.49999999999999978e158 < y4 < -1.9e151Initial program 0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 100.0%
if -1.9e151 < y4 < -2.99999999999999995e24Initial program 23.8%
Taylor expanded in b around inf 62.4%
if -2.99999999999999995e24 < y4 < -2.89999999999999989e-30Initial program 46.0%
Taylor expanded in y1 around inf 65.2%
if -2.89999999999999989e-30 < y4 < -5.50000000000000031e-121Initial program 15.3%
Taylor expanded in t around inf 60.2%
if -5.50000000000000031e-121 < y4 < -9.5000000000000001e-164Initial program 37.3%
Taylor expanded in k around inf 87.3%
if -9.5000000000000001e-164 < y4 < -6.99999999999999958e-243Initial program 29.9%
Taylor expanded in b around inf 40.8%
Taylor expanded in a around inf 60.4%
if -6.99999999999999958e-243 < y4 < 6.29999999999999997e97Initial program 37.8%
Taylor expanded in i around -inf 53.7%
if 6.29999999999999997e97 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in k around 0 71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
Simplified71.8%
Final simplification62.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (* k (* y1 y2)))
(t_3 (* j (* y1 y3)))
(t_4 (- (* t j) (* y k)))
(t_5 (* b t_4))
(t_6 (* c (- (* y y3) (* t y2)))))
(if (<= y4 -9e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -8.5e+158)
(* y4 (- (+ t_5 t_2) t_3))
(if (<= y4 -9e+148)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -1.3e+24)
(* b (+ (+ (* a t_1) (* y4 t_4)) (* y0 (- (* z k) (* x j)))))
(if (<= y4 -1.3e-44)
(* y4 (+ (+ t_5 (* y1 (- (* k y2) (* j y3)))) t_6))
(if (<= y4 -1.8e-121)
(* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))
(if (<= y4 -2.9e-163)
(*
k
(+
(+
(* y (- (* i y5) (* b y4)))
(* y2 (- (* y1 y4) (* y0 y5))))
(* z (- (* b y0) (* i y1)))))
(if (<= y4 -5.8e-243)
(* a (* b t_1))
(if (<= y4 9.5e+95)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* c (- (* z t) (* x y))) (* y5 t_4))))
(* y4 (+ (+ t_5 (- t_2 t_3)) t_6)))))))))))))
double code(double x, double y, double z, double t, double 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 = k * (y1 * y2);
double t_3 = j * (y1 * y3);
double t_4 = (t * j) - (y * k);
double t_5 = b * t_4;
double t_6 = c * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -9e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.5e+158) {
tmp = y4 * ((t_5 + t_2) - t_3);
} else if (y4 <= -9e+148) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.3e+24) {
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -1.3e-44) {
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y4 <= -1.8e-121) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -2.9e-163) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -5.8e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 9.5e+95) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)));
} else {
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = k * (y1 * y2)
t_3 = j * (y1 * y3)
t_4 = (t * j) - (y * k)
t_5 = b * t_4
t_6 = c * ((y * y3) - (t * y2))
if (y4 <= (-9d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-8.5d+158)) then
tmp = y4 * ((t_5 + t_2) - t_3)
else if (y4 <= (-9d+148)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-1.3d+24)) then
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= (-1.3d-44)) then
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6)
else if (y4 <= (-1.8d-121)) then
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
else if (y4 <= (-2.9d-163)) then
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))))
else if (y4 <= (-5.8d-243)) then
tmp = a * (b * t_1)
else if (y4 <= 9.5d+95) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)))
else
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6)
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 = k * (y1 * y2);
double t_3 = j * (y1 * y3);
double t_4 = (t * j) - (y * k);
double t_5 = b * t_4;
double t_6 = c * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -9e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.5e+158) {
tmp = y4 * ((t_5 + t_2) - t_3);
} else if (y4 <= -9e+148) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.3e+24) {
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -1.3e-44) {
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y4 <= -1.8e-121) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -2.9e-163) {
tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1))));
} else if (y4 <= -5.8e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 9.5e+95) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)));
} else {
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6);
}
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 = k * (y1 * y2) t_3 = j * (y1 * y3) t_4 = (t * j) - (y * k) t_5 = b * t_4 t_6 = c * ((y * y3) - (t * y2)) tmp = 0 if y4 <= -9e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -8.5e+158: tmp = y4 * ((t_5 + t_2) - t_3) elif y4 <= -9e+148: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -1.3e+24: tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))) elif y4 <= -1.3e-44: tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6) elif y4 <= -1.8e-121: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) elif y4 <= -2.9e-163: tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1)))) elif y4 <= -5.8e-243: tmp = a * (b * t_1) elif y4 <= 9.5e+95: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4))) else: tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6) 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(k * Float64(y1 * y2)) t_3 = Float64(j * Float64(y1 * y3)) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(b * t_4) t_6 = Float64(c * Float64(Float64(y * y3) - Float64(t * y2))) tmp = 0.0 if (y4 <= -9e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -8.5e+158) tmp = Float64(y4 * Float64(Float64(t_5 + t_2) - t_3)); elseif (y4 <= -9e+148) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -1.3e+24) tmp = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * t_4)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= -1.3e-44) tmp = Float64(y4 * Float64(Float64(t_5 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + t_6)); elseif (y4 <= -1.8e-121) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -2.9e-163) tmp = Float64(k * Float64(Float64(Float64(y * Float64(Float64(i * y5) - Float64(b * y4))) + Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) + Float64(z * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y4 <= -5.8e-243) tmp = Float64(a * Float64(b * t_1)); elseif (y4 <= 9.5e+95) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_4)))); else tmp = Float64(y4 * Float64(Float64(t_5 + Float64(t_2 - t_3)) + t_6)); 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 = k * (y1 * y2); t_3 = j * (y1 * y3); t_4 = (t * j) - (y * k); t_5 = b * t_4; t_6 = c * ((y * y3) - (t * y2)); tmp = 0.0; if (y4 <= -9e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -8.5e+158) tmp = y4 * ((t_5 + t_2) - t_3); elseif (y4 <= -9e+148) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -1.3e+24) tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= -1.3e-44) tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6); elseif (y4 <= -1.8e-121) tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); elseif (y4 <= -2.9e-163) tmp = k * (((y * ((i * y5) - (b * y4))) + (y2 * ((y1 * y4) - (y0 * y5)))) + (z * ((b * y0) - (i * y1)))); elseif (y4 <= -5.8e-243) tmp = a * (b * t_1); elseif (y4 <= 9.5e+95) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4))); else tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6); 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[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -9e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.5e+158], N[(y4 * N[(N[(t$95$5 + t$95$2), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e+148], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.3e+24], N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.3e-44], N[(y4 * N[(N[(t$95$5 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.8e-121], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.9e-163], N[(k * N[(N[(N[(y * N[(N[(i * y5), $MachinePrecision] - N[(b * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.8e-243], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.5e+95], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(t$95$5 + N[(t$95$2 - t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := k \cdot \left(y1 \cdot y2\right)\\
t_3 := j \cdot \left(y1 \cdot y3\right)\\
t_4 := t \cdot j - y \cdot k\\
t_5 := b \cdot t\_4\\
t_6 := c \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{if}\;y4 \leq -9 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -8.5 \cdot 10^{+158}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + t\_2\right) - t\_3\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{+148}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -1.3 \cdot 10^{+24}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_1 + y4 \cdot t\_4\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq -1.3 \cdot 10^{-44}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + t\_6\right)\\
\mathbf{elif}\;y4 \leq -1.8 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -2.9 \cdot 10^{-163}:\\
\;\;\;\;k \cdot \left(\left(y \cdot \left(i \cdot y5 - b \cdot y4\right) + y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) + z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y4 \leq -5.8 \cdot 10^{-243}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 9.5 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + \left(t\_2 - t\_3\right)\right) + t\_6\right)\\
\end{array}
\end{array}
if y4 < -9.00000000000000058e182Initial program 29.6%
Taylor expanded in b around inf 45.2%
Taylor expanded in y around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -9.00000000000000058e182 < y4 < -8.49999999999999978e158Initial program 17.3%
Taylor expanded in y4 around inf 41.9%
Taylor expanded in k around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in c around 0 75.0%
if -8.49999999999999978e158 < y4 < -8.99999999999999987e148Initial program 0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 100.0%
if -8.99999999999999987e148 < y4 < -1.2999999999999999e24Initial program 22.7%
Taylor expanded in b around inf 59.8%
if -1.2999999999999999e24 < y4 < -1.2999999999999999e-44Initial program 49.8%
Taylor expanded in y4 around inf 53.9%
if -1.2999999999999999e-44 < y4 < -1.79999999999999992e-121Initial program 11.6%
Taylor expanded in t around inf 61.4%
Taylor expanded in j around 0 61.4%
mul-1-neg61.4%
Simplified61.4%
if -1.79999999999999992e-121 < y4 < -2.9000000000000001e-163Initial program 37.3%
Taylor expanded in k around inf 87.3%
if -2.9000000000000001e-163 < y4 < -5.79999999999999953e-243Initial program 29.9%
Taylor expanded in b around inf 40.8%
Taylor expanded in a around inf 60.4%
if -5.79999999999999953e-243 < y4 < 9.5000000000000004e95Initial program 37.8%
Taylor expanded in i around -inf 53.7%
if 9.5000000000000004e95 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in k around 0 71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
Simplified71.8%
Final simplification61.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* z t)))
(t_2 (* k (* y1 y2)))
(t_3 (* j (* y1 y3)))
(t_4 (- (* t j) (* y k)))
(t_5 (* b t_4))
(t_6 (* c (- (* y y3) (* t y2)))))
(if (<= y4 -6.8e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -8.6e+158)
(* y4 (- (+ t_5 t_2) t_3))
(if (<= y4 -3.5e+149)
(* y2 (* y4 (- (* k y1) (* t c))))
(if (<= y4 -1.3e+24)
(* b (+ (+ (* a t_1) (* y4 t_4)) (* y0 (- (* z k) (* x j)))))
(if (<= y4 -2.15e-42)
(* y4 (+ (+ t_5 (* y1 (- (* k y2) (* j y3)))) t_6))
(if (<= y4 -9.5e-164)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t (- (* a y5) (* c y4)))))
(if (<= y4 -6e-243)
(* a (* b t_1))
(if (<= y4 1.76e+96)
(*
i
(+
(* y1 (- (* x j) (* z k)))
(- (* c (- (* z t) (* x y))) (* y5 t_4))))
(* y4 (+ (+ t_5 (- t_2 t_3)) t_6))))))))))))
double code(double x, double y, double z, double t, double 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 = k * (y1 * y2);
double t_3 = j * (y1 * y3);
double t_4 = (t * j) - (y * k);
double t_5 = b * t_4;
double t_6 = c * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -6.8e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.6e+158) {
tmp = y4 * ((t_5 + t_2) - t_3);
} else if (y4 <= -3.5e+149) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.3e+24) {
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.15e-42) {
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y4 <= -9.5e-164) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -6e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 1.76e+96) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)));
} else {
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: tmp
t_1 = (x * y) - (z * t)
t_2 = k * (y1 * y2)
t_3 = j * (y1 * y3)
t_4 = (t * j) - (y * k)
t_5 = b * t_4
t_6 = c * ((y * y3) - (t * y2))
if (y4 <= (-6.8d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-8.6d+158)) then
tmp = y4 * ((t_5 + t_2) - t_3)
else if (y4 <= (-3.5d+149)) then
tmp = y2 * (y4 * ((k * y1) - (t * c)))
else if (y4 <= (-1.3d+24)) then
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))))
else if (y4 <= (-2.15d-42)) then
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6)
else if (y4 <= (-9.5d-164)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))))
else if (y4 <= (-6d-243)) then
tmp = a * (b * t_1)
else if (y4 <= 1.76d+96) then
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)))
else
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6)
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 = k * (y1 * y2);
double t_3 = j * (y1 * y3);
double t_4 = (t * j) - (y * k);
double t_5 = b * t_4;
double t_6 = c * ((y * y3) - (t * y2));
double tmp;
if (y4 <= -6.8e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -8.6e+158) {
tmp = y4 * ((t_5 + t_2) - t_3);
} else if (y4 <= -3.5e+149) {
tmp = y2 * (y4 * ((k * y1) - (t * c)));
} else if (y4 <= -1.3e+24) {
tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j))));
} else if (y4 <= -2.15e-42) {
tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6);
} else if (y4 <= -9.5e-164) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4))));
} else if (y4 <= -6e-243) {
tmp = a * (b * t_1);
} else if (y4 <= 1.76e+96) {
tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4)));
} else {
tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6);
}
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 = k * (y1 * y2) t_3 = j * (y1 * y3) t_4 = (t * j) - (y * k) t_5 = b * t_4 t_6 = c * ((y * y3) - (t * y2)) tmp = 0 if y4 <= -6.8e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -8.6e+158: tmp = y4 * ((t_5 + t_2) - t_3) elif y4 <= -3.5e+149: tmp = y2 * (y4 * ((k * y1) - (t * c))) elif y4 <= -1.3e+24: tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))) elif y4 <= -2.15e-42: tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6) elif y4 <= -9.5e-164: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))) elif y4 <= -6e-243: tmp = a * (b * t_1) elif y4 <= 1.76e+96: tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4))) else: tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6) 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(k * Float64(y1 * y2)) t_3 = Float64(j * Float64(y1 * y3)) t_4 = Float64(Float64(t * j) - Float64(y * k)) t_5 = Float64(b * t_4) t_6 = Float64(c * Float64(Float64(y * y3) - Float64(t * y2))) tmp = 0.0 if (y4 <= -6.8e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -8.6e+158) tmp = Float64(y4 * Float64(Float64(t_5 + t_2) - t_3)); elseif (y4 <= -3.5e+149) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(t * c)))); elseif (y4 <= -1.3e+24) tmp = Float64(b * Float64(Float64(Float64(a * t_1) + Float64(y4 * t_4)) + Float64(y0 * Float64(Float64(z * k) - Float64(x * j))))); elseif (y4 <= -2.15e-42) tmp = Float64(y4 * Float64(Float64(t_5 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + t_6)); elseif (y4 <= -9.5e-164) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -6e-243) tmp = Float64(a * Float64(b * t_1)); elseif (y4 <= 1.76e+96) tmp = Float64(i * Float64(Float64(y1 * Float64(Float64(x * j) - Float64(z * k))) + Float64(Float64(c * Float64(Float64(z * t) - Float64(x * y))) - Float64(y5 * t_4)))); else tmp = Float64(y4 * Float64(Float64(t_5 + Float64(t_2 - t_3)) + t_6)); 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 = k * (y1 * y2); t_3 = j * (y1 * y3); t_4 = (t * j) - (y * k); t_5 = b * t_4; t_6 = c * ((y * y3) - (t * y2)); tmp = 0.0; if (y4 <= -6.8e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -8.6e+158) tmp = y4 * ((t_5 + t_2) - t_3); elseif (y4 <= -3.5e+149) tmp = y2 * (y4 * ((k * y1) - (t * c))); elseif (y4 <= -1.3e+24) tmp = b * (((a * t_1) + (y4 * t_4)) + (y0 * ((z * k) - (x * j)))); elseif (y4 <= -2.15e-42) tmp = y4 * ((t_5 + (y1 * ((k * y2) - (j * y3)))) + t_6); elseif (y4 <= -9.5e-164) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * ((a * y5) - (c * y4)))); elseif (y4 <= -6e-243) tmp = a * (b * t_1); elseif (y4 <= 1.76e+96) tmp = i * ((y1 * ((x * j) - (z * k))) + ((c * ((z * t) - (x * y))) - (y5 * t_4))); else tmp = y4 * ((t_5 + (t_2 - t_3)) + t_6); 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[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -6.8e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -8.6e+158], N[(y4 * N[(N[(t$95$5 + t$95$2), $MachinePrecision] - t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.5e+149], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.3e+24], N[(b * N[(N[(N[(a * t$95$1), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(N[(z * k), $MachinePrecision] - N[(x * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.15e-42], N[(y4 * N[(N[(t$95$5 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9.5e-164], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6e-243], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.76e+96], N[(i * N[(N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(N[(z * t), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y5 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(t$95$5 + N[(t$95$2 - t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$6), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - z \cdot t\\
t_2 := k \cdot \left(y1 \cdot y2\right)\\
t_3 := j \cdot \left(y1 \cdot y3\right)\\
t_4 := t \cdot j - y \cdot k\\
t_5 := b \cdot t\_4\\
t_6 := c \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{if}\;y4 \leq -6.8 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -8.6 \cdot 10^{+158}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + t\_2\right) - t\_3\right)\\
\mathbf{elif}\;y4 \leq -3.5 \cdot 10^{+149}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - t \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq -1.3 \cdot 10^{+24}:\\
\;\;\;\;b \cdot \left(\left(a \cdot t\_1 + y4 \cdot t\_4\right) + y0 \cdot \left(z \cdot k - x \cdot j\right)\right)\\
\mathbf{elif}\;y4 \leq -2.15 \cdot 10^{-42}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + t\_6\right)\\
\mathbf{elif}\;y4 \leq -9.5 \cdot 10^{-164}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -6 \cdot 10^{-243}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y4 \leq 1.76 \cdot 10^{+96}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right) + \left(c \cdot \left(z \cdot t - x \cdot y\right) - y5 \cdot t\_4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(t\_5 + \left(t\_2 - t\_3\right)\right) + t\_6\right)\\
\end{array}
\end{array}
if y4 < -6.79999999999999973e182Initial program 29.6%
Taylor expanded in b around inf 45.2%
Taylor expanded in y around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -6.79999999999999973e182 < y4 < -8.6e158Initial program 17.3%
Taylor expanded in y4 around inf 41.9%
Taylor expanded in k around 0 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in c around 0 75.0%
if -8.6e158 < y4 < -3.50000000000000011e149Initial program 0.0%
Taylor expanded in y4 around inf 66.7%
Taylor expanded in y2 around inf 100.0%
if -3.50000000000000011e149 < y4 < -1.2999999999999999e24Initial program 22.7%
Taylor expanded in b around inf 59.8%
if -1.2999999999999999e24 < y4 < -2.1500000000000001e-42Initial program 49.8%
Taylor expanded in y4 around inf 53.9%
if -2.1500000000000001e-42 < y4 < -9.5000000000000001e-164Initial program 19.5%
Taylor expanded in y2 around inf 52.5%
if -9.5000000000000001e-164 < y4 < -6.0000000000000002e-243Initial program 29.9%
Taylor expanded in b around inf 40.8%
Taylor expanded in a around inf 60.4%
if -6.0000000000000002e-243 < y4 < 1.7599999999999999e96Initial program 37.8%
Taylor expanded in i around -inf 53.7%
if 1.7599999999999999e96 < y4 Initial program 19.0%
Taylor expanded in y4 around inf 67.0%
Taylor expanded in k around 0 71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
Simplified71.8%
Final simplification59.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -9e+181)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -6e+115)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -3.1e-51)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -9e-195)
(* t (* z (- (* c i) (* a b))))
(if (<= y4 1.6e-248)
(* i (* y (- (* k y5) (* x c))))
(if (<= y4 1e-198)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y4 3.5e-96)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= y4 4.3e+16)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y4 7e+100)
(* (- i) (* (* x y) c))
(*
y4
(+
(* b (- (* t j) (* y k)))
(* y1 (- (* k y2) (* j 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 (y4 <= -9e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -6e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -3.1e-51) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -9e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 1.6e-248) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 1e-198) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 3.5e-96) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y4 <= 4.3e+16) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 7e+100) {
tmp = -i * ((x * y) * c);
} else {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * 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 (y4 <= (-9d+181)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-6d+115)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-3.1d-51)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-9d-195)) then
tmp = t * (z * ((c * i) - (a * b)))
else if (y4 <= 1.6d-248) then
tmp = i * (y * ((k * y5) - (x * c)))
else if (y4 <= 1d-198) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y4 <= 3.5d-96) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (y4 <= 4.3d+16) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y4 <= 7d+100) then
tmp = -i * ((x * y) * c)
else
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * 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 (y4 <= -9e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -6e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -3.1e-51) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -9e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 1.6e-248) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 1e-198) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 3.5e-96) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y4 <= 4.3e+16) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 7e+100) {
tmp = -i * ((x * y) * c);
} else {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -9e+181: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -6e+115: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -3.1e-51: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -9e-195: tmp = t * (z * ((c * i) - (a * b))) elif y4 <= 1.6e-248: tmp = i * (y * ((k * y5) - (x * c))) elif y4 <= 1e-198: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y4 <= 3.5e-96: tmp = y * (y5 * ((i * k) - (a * y3))) elif y4 <= 4.3e+16: tmp = i * (j * ((x * y1) - (t * y5))) elif y4 <= 7e+100: tmp = -i * ((x * y) * c) else: tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * 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 (y4 <= -9e+181) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -6e+115) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -3.1e-51) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -9e-195) tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); elseif (y4 <= 1.6e-248) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); elseif (y4 <= 1e-198) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y4 <= 3.5e-96) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (y4 <= 4.3e+16) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y4 <= 7e+100) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); else tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * 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 (y4 <= -9e+181) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -6e+115) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -3.1e-51) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -9e-195) tmp = t * (z * ((c * i) - (a * b))); elseif (y4 <= 1.6e-248) tmp = i * (y * ((k * y5) - (x * c))); elseif (y4 <= 1e-198) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y4 <= 3.5e-96) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (y4 <= 4.3e+16) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y4 <= 7e+100) tmp = -i * ((x * y) * c); else tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * 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[y4, -9e+181], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6e+115], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.1e-51], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -9e-195], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.6e-248], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1e-198], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e-96], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.3e+16], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7e+100], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -9 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -6 \cdot 10^{+115}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -3.1 \cdot 10^{-51}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-195}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 1.6 \cdot 10^{-248}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq 10^{-198}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-96}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq 4.3 \cdot 10^{+16}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{+100}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -9e181Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -9e181 < y4 < -6.0000000000000001e115Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -6.0000000000000001e115 < y4 < -3.0999999999999997e-51Initial program 35.4%
Taylor expanded in y1 around inf 37.7%
Taylor expanded in z around inf 46.2%
if -3.0999999999999997e-51 < y4 < -9e-195Initial program 20.8%
Taylor expanded in t around inf 47.5%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
Simplified47.9%
if -9e-195 < y4 < 1.60000000000000009e-248Initial program 46.4%
Taylor expanded in i around -inf 54.1%
Taylor expanded in y around inf 52.3%
+-commutative52.3%
mul-1-neg52.3%
unsub-neg52.3%
Simplified52.3%
if 1.60000000000000009e-248 < y4 < 9.9999999999999991e-199Initial program 30.0%
Taylor expanded in y1 around inf 50.2%
Taylor expanded in y2 around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
if 9.9999999999999991e-199 < y4 < 3.4999999999999999e-96Initial program 53.1%
Taylor expanded in y5 around -inf 54.3%
Taylor expanded in y around -inf 67.7%
mul-1-neg67.7%
Simplified67.7%
if 3.4999999999999999e-96 < y4 < 4.3e16Initial program 17.6%
Taylor expanded in i around -inf 41.4%
Taylor expanded in j around inf 47.7%
if 4.3e16 < y4 < 6.99999999999999953e100Initial program 26.3%
Taylor expanded in i around -inf 47.4%
Taylor expanded in y around inf 37.6%
+-commutative37.6%
mul-1-neg37.6%
unsub-neg37.6%
Simplified37.6%
Taylor expanded in c around inf 48.2%
*-commutative48.2%
Simplified48.2%
if 6.99999999999999953e100 < y4 Initial program 19.5%
Taylor expanded in y4 around inf 66.2%
Taylor expanded in c around 0 61.6%
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 (- (* a y5) (* c y4)))
(t_2 (* b (- (* t j) (* y k))))
(t_3
(*
y4
(+
(+ t_2 (* y1 (- (* k y2) (* j y3))))
(* c (- (* y y3) (* t y2)))))))
(if (<= x -2.1e+118)
(* i (* x (- (* j y1) (* y c))))
(if (<= x -2.7e-80)
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x (- (* c y0) (* a y1))))
(* t t_1)))
(if (<= x -1.22e-147)
(* y4 (- (+ t_2 (* k (* y1 y2))) (* j (* y1 y3))))
(if (<= x -1.08e-200)
(* t (+ (* z (- (* c i) (* a b))) (* y2 t_1)))
(if (<= x 5.9e-224)
t_3
(if (<= x 1.35e-149)
(* b (* k (- (* z y0) (* y y4))))
(if (<= x 5.8e-6)
t_3
(if (<= x 2.5e+47)
(* i (* j (- (* x y1) (* t y5))))
(if (<= x 6.5e+190)
(* i (* y (- (* k y5) (* x c))))
(* 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 = (a * y5) - (c * y4);
double t_2 = b * ((t * j) - (y * k));
double t_3 = y4 * ((t_2 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (x <= -2.1e+118) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (x <= -2.7e-80) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (x <= -1.22e-147) {
tmp = y4 * ((t_2 + (k * (y1 * y2))) - (j * (y1 * y3)));
} else if (x <= -1.08e-200) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * t_1));
} else if (x <= 5.9e-224) {
tmp = t_3;
} else if (x <= 1.35e-149) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (x <= 5.8e-6) {
tmp = t_3;
} else if (x <= 2.5e+47) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (x <= 6.5e+190) {
tmp = i * (y * ((k * y5) - (x * c)));
} 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) :: t_3
real(8) :: tmp
t_1 = (a * y5) - (c * y4)
t_2 = b * ((t * j) - (y * k))
t_3 = y4 * ((t_2 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))))
if (x <= (-2.1d+118)) then
tmp = i * (x * ((j * y1) - (y * c)))
else if (x <= (-2.7d-80)) then
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1))
else if (x <= (-1.22d-147)) then
tmp = y4 * ((t_2 + (k * (y1 * y2))) - (j * (y1 * y3)))
else if (x <= (-1.08d-200)) then
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * t_1))
else if (x <= 5.9d-224) then
tmp = t_3
else if (x <= 1.35d-149) then
tmp = b * (k * ((z * y0) - (y * y4)))
else if (x <= 5.8d-6) then
tmp = t_3
else if (x <= 2.5d+47) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (x <= 6.5d+190) then
tmp = i * (y * ((k * y5) - (x * c)))
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 = (a * y5) - (c * y4);
double t_2 = b * ((t * j) - (y * k));
double t_3 = y4 * ((t_2 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2))));
double tmp;
if (x <= -2.1e+118) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (x <= -2.7e-80) {
tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1));
} else if (x <= -1.22e-147) {
tmp = y4 * ((t_2 + (k * (y1 * y2))) - (j * (y1 * y3)));
} else if (x <= -1.08e-200) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * t_1));
} else if (x <= 5.9e-224) {
tmp = t_3;
} else if (x <= 1.35e-149) {
tmp = b * (k * ((z * y0) - (y * y4)));
} else if (x <= 5.8e-6) {
tmp = t_3;
} else if (x <= 2.5e+47) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (x <= 6.5e+190) {
tmp = i * (y * ((k * y5) - (x * c)));
} 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 = (a * y5) - (c * y4) t_2 = b * ((t * j) - (y * k)) t_3 = y4 * ((t_2 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))) tmp = 0 if x <= -2.1e+118: tmp = i * (x * ((j * y1) - (y * c))) elif x <= -2.7e-80: tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)) elif x <= -1.22e-147: tmp = y4 * ((t_2 + (k * (y1 * y2))) - (j * (y1 * y3))) elif x <= -1.08e-200: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * t_1)) elif x <= 5.9e-224: tmp = t_3 elif x <= 1.35e-149: tmp = b * (k * ((z * y0) - (y * y4))) elif x <= 5.8e-6: tmp = t_3 elif x <= 2.5e+47: tmp = i * (j * ((x * y1) - (t * y5))) elif x <= 6.5e+190: tmp = i * (y * ((k * y5) - (x * c))) 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(Float64(a * y5) - Float64(c * y4)) t_2 = Float64(b * Float64(Float64(t * j) - Float64(y * k))) t_3 = Float64(y4 * Float64(Float64(t_2 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) + Float64(c * Float64(Float64(y * y3) - Float64(t * y2))))) tmp = 0.0 if (x <= -2.1e+118) tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c)))); elseif (x <= -2.7e-80) tmp = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) + Float64(t * t_1))); elseif (x <= -1.22e-147) tmp = Float64(y4 * Float64(Float64(t_2 + Float64(k * Float64(y1 * y2))) - Float64(j * Float64(y1 * y3)))); elseif (x <= -1.08e-200) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * t_1))); elseif (x <= 5.9e-224) tmp = t_3; elseif (x <= 1.35e-149) tmp = Float64(b * Float64(k * Float64(Float64(z * y0) - Float64(y * y4)))); elseif (x <= 5.8e-6) tmp = t_3; elseif (x <= 2.5e+47) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (x <= 6.5e+190) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); 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 = (a * y5) - (c * y4); t_2 = b * ((t * j) - (y * k)); t_3 = y4 * ((t_2 + (y1 * ((k * y2) - (j * y3)))) + (c * ((y * y3) - (t * y2)))); tmp = 0.0; if (x <= -2.1e+118) tmp = i * (x * ((j * y1) - (y * c))); elseif (x <= -2.7e-80) tmp = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * ((c * y0) - (a * y1)))) + (t * t_1)); elseif (x <= -1.22e-147) tmp = y4 * ((t_2 + (k * (y1 * y2))) - (j * (y1 * y3))); elseif (x <= -1.08e-200) tmp = t * ((z * ((c * i) - (a * b))) + (y2 * t_1)); elseif (x <= 5.9e-224) tmp = t_3; elseif (x <= 1.35e-149) tmp = b * (k * ((z * y0) - (y * y4))); elseif (x <= 5.8e-6) tmp = t_3; elseif (x <= 2.5e+47) tmp = i * (j * ((x * y1) - (t * y5))); elseif (x <= 6.5e+190) tmp = i * (y * ((k * y5) - (x * c))); 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[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * N[(N[(t$95$2 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.1e+118], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.7e-80], N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.22e-147], N[(y4 * N[(N[(t$95$2 + N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.08e-200], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.9e-224], t$95$3, If[LessEqual[x, 1.35e-149], N[(b * N[(k * N[(N[(z * y0), $MachinePrecision] - N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-6], t$95$3, If[LessEqual[x, 2.5e+47], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+190], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $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 := a \cdot y5 - c \cdot y4\\
t_2 := b \cdot \left(t \cdot j - y \cdot k\right)\\
t_3 := y4 \cdot \left(\left(t\_2 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) + c \cdot \left(y \cdot y3 - t \cdot y2\right)\right)\\
\mathbf{if}\;x \leq -2.1 \cdot 10^{+118}:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-80}:\\
\;\;\;\;y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) + t \cdot t\_1\right)\\
\mathbf{elif}\;x \leq -1.22 \cdot 10^{-147}:\\
\;\;\;\;y4 \cdot \left(\left(t\_2 + k \cdot \left(y1 \cdot y2\right)\right) - j \cdot \left(y1 \cdot y3\right)\right)\\
\mathbf{elif}\;x \leq -1.08 \cdot 10^{-200}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot t\_1\right)\\
\mathbf{elif}\;x \leq 5.9 \cdot 10^{-224}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-149}:\\
\;\;\;\;b \cdot \left(k \cdot \left(z \cdot y0 - y \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-6}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+47}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+190}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\end{array}
\end{array}
if x < -2.1e118Initial program 17.8%
Taylor expanded in i around -inf 46.7%
Taylor expanded in x around inf 56.0%
if -2.1e118 < x < -2.7000000000000002e-80Initial program 31.3%
Taylor expanded in y2 around inf 67.9%
if -2.7000000000000002e-80 < x < -1.21999999999999995e-147Initial program 9.0%
Taylor expanded in y4 around inf 42.6%
Taylor expanded in k around 0 50.7%
+-commutative50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
Taylor expanded in c around 0 83.9%
if -1.21999999999999995e-147 < x < -1.08000000000000002e-200Initial program 42.9%
Taylor expanded in t around inf 57.2%
Taylor expanded in j around 0 57.3%
mul-1-neg57.3%
Simplified57.3%
if -1.08000000000000002e-200 < x < 5.9000000000000003e-224 or 1.35000000000000007e-149 < x < 5.8000000000000004e-6Initial program 44.8%
Taylor expanded in y4 around inf 52.9%
if 5.9000000000000003e-224 < x < 1.35000000000000007e-149Initial program 12.5%
Taylor expanded in b around inf 56.6%
Taylor expanded in k around -inf 75.0%
mul-1-neg75.0%
Simplified75.0%
if 5.8000000000000004e-6 < x < 2.50000000000000011e47Initial program 10.0%
Taylor expanded in i around -inf 40.0%
Taylor expanded in j around inf 70.5%
if 2.50000000000000011e47 < x < 6.5000000000000001e190Initial program 25.8%
Taylor expanded in i around -inf 48.5%
Taylor expanded in y around inf 52.4%
+-commutative52.4%
mul-1-neg52.4%
unsub-neg52.4%
Simplified52.4%
if 6.5000000000000001e190 < x Initial program 29.2%
Taylor expanded in b around inf 42.2%
Taylor expanded in j around inf 59.0%
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 (* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))))
(if (<= y4 -1.45e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -1e+112)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -6.8e-72)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -2e-120)
t_1
(if (<= y4 -2.55e-162)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= y4 -6.4e-218)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 2.7e-99)
(* i (* y (- (* k y5) (* x c))))
(if (<= y4 7.6e+87)
t_1
(*
y4
(-
(+ (* b (- (* t j) (* y k))) (* k (* y1 y2)))
(* j (* 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 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (y4 <= -1.45e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1e+112) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -6.8e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2e-120) {
tmp = t_1;
} else if (y4 <= -2.55e-162) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -6.4e-218) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.7e-99) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 7.6e+87) {
tmp = t_1;
} else {
tmp = y4 * (((b * ((t * j) - (y * k))) + (k * (y1 * y2))) - (j * (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 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
if (y4 <= (-1.45d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-1d+112)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-6.8d-72)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-2d-120)) then
tmp = t_1
else if (y4 <= (-2.55d-162)) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (y4 <= (-6.4d-218)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 2.7d-99) then
tmp = i * (y * ((k * y5) - (x * c)))
else if (y4 <= 7.6d+87) then
tmp = t_1
else
tmp = y4 * (((b * ((t * j) - (y * k))) + (k * (y1 * y2))) - (j * (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 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (y4 <= -1.45e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1e+112) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -6.8e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2e-120) {
tmp = t_1;
} else if (y4 <= -2.55e-162) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -6.4e-218) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.7e-99) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 7.6e+87) {
tmp = t_1;
} else {
tmp = y4 * (((b * ((t * j) - (y * k))) + (k * (y1 * y2))) - (j * (y1 * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) tmp = 0 if y4 <= -1.45e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -1e+112: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -6.8e-72: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -2e-120: tmp = t_1 elif y4 <= -2.55e-162: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif y4 <= -6.4e-218: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 2.7e-99: tmp = i * (y * ((k * y5) - (x * c))) elif y4 <= 7.6e+87: tmp = t_1 else: tmp = y4 * (((b * ((t * j) - (y * k))) + (k * (y1 * y2))) - (j * (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(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (y4 <= -1.45e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -1e+112) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -6.8e-72) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -2e-120) tmp = t_1; elseif (y4 <= -2.55e-162) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y4 <= -6.4e-218) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 2.7e-99) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); elseif (y4 <= 7.6e+87) tmp = t_1; else tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(k * Float64(y1 * y2))) - Float64(j * 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) t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); tmp = 0.0; if (y4 <= -1.45e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -1e+112) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -6.8e-72) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -2e-120) tmp = t_1; elseif (y4 <= -2.55e-162) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (y4 <= -6.4e-218) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 2.7e-99) tmp = i * (y * ((k * y5) - (x * c))); elseif (y4 <= 7.6e+87) tmp = t_1; else tmp = y4 * (((b * ((t * j) - (y * k))) + (k * (y1 * y2))) - (j * (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[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.45e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1e+112], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.8e-72], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2e-120], t$95$1, If[LessEqual[y4, -2.55e-162], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.4e-218], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.7e-99], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.6e+87], t$95$1, N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -1.45 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1 \cdot 10^{+112}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -6.8 \cdot 10^{-72}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -2 \cdot 10^{-120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.55 \cdot 10^{-162}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -6.4 \cdot 10^{-218}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 2.7 \cdot 10^{-99}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq 7.6 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) + k \cdot \left(y1 \cdot y2\right)\right) - j \cdot \left(y1 \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -1.4499999999999999e182Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -1.4499999999999999e182 < y4 < -9.9999999999999993e111Initial program 14.6%
Taylor expanded in y4 around inf 47.8%
Taylor expanded in k around -inf 62.2%
mul-1-neg62.2%
*-commutative62.2%
distribute-rgt-neg-in62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if -9.9999999999999993e111 < y4 < -6.7999999999999997e-72Initial program 29.7%
Taylor expanded in y1 around inf 34.4%
Taylor expanded in z around inf 46.9%
if -6.7999999999999997e-72 < y4 < -1.99999999999999996e-120 or 2.7e-99 < y4 < 7.60000000000000022e87Initial program 22.9%
Taylor expanded in t around inf 50.4%
Taylor expanded in j around 0 50.5%
mul-1-neg50.5%
Simplified50.5%
if -1.99999999999999996e-120 < y4 < -2.5499999999999998e-162Initial program 37.3%
Taylor expanded in y5 around -inf 57.4%
Taylor expanded in y0 around inf 57.7%
if -2.5499999999999998e-162 < y4 < -6.4000000000000002e-218Initial program 30.6%
Taylor expanded in b around inf 46.4%
Taylor expanded in a around inf 69.6%
if -6.4000000000000002e-218 < y4 < 2.7e-99Initial program 44.3%
Taylor expanded in i around -inf 56.2%
Taylor expanded in y around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
Simplified50.1%
if 7.60000000000000022e87 < y4 Initial program 20.4%
Taylor expanded in y4 around inf 64.0%
Taylor expanded in k around 0 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
Simplified68.6%
Taylor expanded in c around 0 62.2%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y (- (* k y5) (* x c))))))
(if (<= y4 -4.1e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -3.2e+116)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.85e-54)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -1.55e-195)
(* t (* z (- (* c i) (* a b))))
(if (<= y4 1.6e-248)
t_1
(if (<= y4 9.8e-194)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y4 3.8e-96)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= y4 3.65e-31)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y4 6.2e+110)
t_1
(if (<= y4 4.7e+154)
(* (- (* t j) (* y k)) (* b y4))
(* (* y3 y4) (- (* y c) (* j 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 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (y4 <= -4.1e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -3.2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.85e-54) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.55e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 1.6e-248) {
tmp = t_1;
} else if (y4 <= 9.8e-194) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 3.8e-96) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y4 <= 3.65e-31) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 6.2e+110) {
tmp = t_1;
} else if (y4 <= 4.7e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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 = i * (y * ((k * y5) - (x * c)))
if (y4 <= (-4.1d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-3.2d+116)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.85d-54)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-1.55d-195)) then
tmp = t * (z * ((c * i) - (a * b)))
else if (y4 <= 1.6d-248) then
tmp = t_1
else if (y4 <= 9.8d-194) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y4 <= 3.8d-96) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (y4 <= 3.65d-31) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y4 <= 6.2d+110) then
tmp = t_1
else if (y4 <= 4.7d+154) then
tmp = ((t * j) - (y * k)) * (b * y4)
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (y4 <= -4.1e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -3.2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.85e-54) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.55e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 1.6e-248) {
tmp = t_1;
} else if (y4 <= 9.8e-194) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 3.8e-96) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y4 <= 3.65e-31) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 6.2e+110) {
tmp = t_1;
} else if (y4 <= 4.7e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y * ((k * y5) - (x * c))) tmp = 0 if y4 <= -4.1e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -3.2e+116: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.85e-54: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -1.55e-195: tmp = t * (z * ((c * i) - (a * b))) elif y4 <= 1.6e-248: tmp = t_1 elif y4 <= 9.8e-194: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y4 <= 3.8e-96: tmp = y * (y5 * ((i * k) - (a * y3))) elif y4 <= 3.65e-31: tmp = i * (j * ((x * y1) - (t * y5))) elif y4 <= 6.2e+110: tmp = t_1 elif y4 <= 4.7e+154: tmp = ((t * j) - (y * k)) * (b * y4) else: tmp = (y3 * y4) * ((y * c) - (j * y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))) tmp = 0.0 if (y4 <= -4.1e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -3.2e+116) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.85e-54) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -1.55e-195) tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); elseif (y4 <= 1.6e-248) tmp = t_1; elseif (y4 <= 9.8e-194) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y4 <= 3.8e-96) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (y4 <= 3.65e-31) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y4 <= 6.2e+110) tmp = t_1; elseif (y4 <= 4.7e+154) tmp = Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(b * y4)); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = i * (y * ((k * y5) - (x * c))); tmp = 0.0; if (y4 <= -4.1e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -3.2e+116) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.85e-54) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -1.55e-195) tmp = t * (z * ((c * i) - (a * b))); elseif (y4 <= 1.6e-248) tmp = t_1; elseif (y4 <= 9.8e-194) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y4 <= 3.8e-96) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (y4 <= 3.65e-31) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y4 <= 6.2e+110) tmp = t_1; elseif (y4 <= 4.7e+154) tmp = ((t * j) - (y * k)) * (b * y4); else tmp = (y3 * y4) * ((y * c) - (j * 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[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.1e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -3.2e+116], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.85e-54], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.55e-195], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.6e-248], t$95$1, If[LessEqual[y4, 9.8e-194], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.8e-96], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.65e-31], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.2e+110], t$95$1, If[LessEqual[y4, 4.7e+154], N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(b * y4), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{if}\;y4 \leq -4.1 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -3.2 \cdot 10^{+116}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.85 \cdot 10^{-54}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -1.55 \cdot 10^{-195}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 1.6 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 9.8 \cdot 10^{-194}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y4 \leq 3.8 \cdot 10^{-96}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;y4 \leq 3.65 \cdot 10^{-31}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 6.2 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 4.7 \cdot 10^{+154}:\\
\;\;\;\;\left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -4.10000000000000003e182Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -4.10000000000000003e182 < y4 < -3.2e116Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -3.2e116 < y4 < -1.8500000000000001e-54Initial program 35.4%
Taylor expanded in y1 around inf 37.7%
Taylor expanded in z around inf 46.2%
if -1.8500000000000001e-54 < y4 < -1.55000000000000001e-195Initial program 20.8%
Taylor expanded in t around inf 47.5%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
Simplified47.9%
if -1.55000000000000001e-195 < y4 < 1.60000000000000009e-248 or 3.6500000000000001e-31 < y4 < 6.20000000000000035e110Initial program 38.3%
Taylor expanded in i around -inf 53.2%
Taylor expanded in y around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
if 1.60000000000000009e-248 < y4 < 9.80000000000000008e-194Initial program 30.0%
Taylor expanded in y1 around inf 50.2%
Taylor expanded in y2 around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
if 9.80000000000000008e-194 < y4 < 3.8000000000000001e-96Initial program 53.1%
Taylor expanded in y5 around -inf 54.3%
Taylor expanded in y around -inf 67.7%
mul-1-neg67.7%
Simplified67.7%
if 3.8000000000000001e-96 < y4 < 3.6500000000000001e-31Initial program 18.2%
Taylor expanded in i around -inf 27.7%
Taylor expanded in j around inf 55.4%
if 6.20000000000000035e110 < y4 < 4.69999999999999983e154Initial program 16.7%
Taylor expanded in b around inf 67.1%
Taylor expanded in y4 around inf 75.6%
fma-neg75.6%
associate-*r*75.6%
fma-neg75.6%
Simplified75.6%
if 4.69999999999999983e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y5) (* x c))) (t_2 (* i (* y t_1))))
(if (<= y4 -2.55e+181)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -6.6e+115)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.5e-51)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -2.8e-195)
(* t (* z (- (* c i) (* a b))))
(if (<= y4 5e-249)
t_2
(if (<= y4 8e-199)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y4 4.2e-96)
(* (* y i) t_1)
(if (<= y4 4.5e-30)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y4 1.05e+110)
t_2
(if (<= y4 4.9e+154)
(* (- (* t j) (* y k)) (* b y4))
(* (* y3 y4) (- (* y c) (* j 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 = (k * y5) - (x * c);
double t_2 = i * (y * t_1);
double tmp;
if (y4 <= -2.55e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -6.6e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.5e-51) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.8e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 5e-249) {
tmp = t_2;
} else if (y4 <= 8e-199) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 4.2e-96) {
tmp = (y * i) * t_1;
} else if (y4 <= 4.5e-30) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 1.05e+110) {
tmp = t_2;
} else if (y4 <= 4.9e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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) :: t_2
real(8) :: tmp
t_1 = (k * y5) - (x * c)
t_2 = i * (y * t_1)
if (y4 <= (-2.55d+181)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-6.6d+115)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.5d-51)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-2.8d-195)) then
tmp = t * (z * ((c * i) - (a * b)))
else if (y4 <= 5d-249) then
tmp = t_2
else if (y4 <= 8d-199) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y4 <= 4.2d-96) then
tmp = (y * i) * t_1
else if (y4 <= 4.5d-30) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y4 <= 1.05d+110) then
tmp = t_2
else if (y4 <= 4.9d+154) then
tmp = ((t * j) - (y * k)) * (b * y4)
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = (k * y5) - (x * c);
double t_2 = i * (y * t_1);
double tmp;
if (y4 <= -2.55e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -6.6e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.5e-51) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.8e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 5e-249) {
tmp = t_2;
} else if (y4 <= 8e-199) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 4.2e-96) {
tmp = (y * i) * t_1;
} else if (y4 <= 4.5e-30) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 1.05e+110) {
tmp = t_2;
} else if (y4 <= 4.9e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (k * y5) - (x * c) t_2 = i * (y * t_1) tmp = 0 if y4 <= -2.55e+181: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -6.6e+115: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.5e-51: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -2.8e-195: tmp = t * (z * ((c * i) - (a * b))) elif y4 <= 5e-249: tmp = t_2 elif y4 <= 8e-199: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y4 <= 4.2e-96: tmp = (y * i) * t_1 elif y4 <= 4.5e-30: tmp = i * (j * ((x * y1) - (t * y5))) elif y4 <= 1.05e+110: tmp = t_2 elif y4 <= 4.9e+154: tmp = ((t * j) - (y * k)) * (b * y4) else: tmp = (y3 * y4) * ((y * c) - (j * 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(k * y5) - Float64(x * c)) t_2 = Float64(i * Float64(y * t_1)) tmp = 0.0 if (y4 <= -2.55e+181) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -6.6e+115) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.5e-51) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -2.8e-195) tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); elseif (y4 <= 5e-249) tmp = t_2; elseif (y4 <= 8e-199) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y4 <= 4.2e-96) tmp = Float64(Float64(y * i) * t_1); elseif (y4 <= 4.5e-30) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y4 <= 1.05e+110) tmp = t_2; elseif (y4 <= 4.9e+154) tmp = Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(b * y4)); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = (k * y5) - (x * c); t_2 = i * (y * t_1); tmp = 0.0; if (y4 <= -2.55e+181) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -6.6e+115) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.5e-51) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -2.8e-195) tmp = t * (z * ((c * i) - (a * b))); elseif (y4 <= 5e-249) tmp = t_2; elseif (y4 <= 8e-199) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y4 <= 4.2e-96) tmp = (y * i) * t_1; elseif (y4 <= 4.5e-30) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y4 <= 1.05e+110) tmp = t_2; elseif (y4 <= 4.9e+154) tmp = ((t * j) - (y * k)) * (b * y4); else tmp = (y3 * y4) * ((y * c) - (j * 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[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.55e+181], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -6.6e+115], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.5e-51], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.8e-195], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5e-249], t$95$2, If[LessEqual[y4, 8e-199], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.2e-96], N[(N[(y * i), $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y4, 4.5e-30], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+110], t$95$2, If[LessEqual[y4, 4.9e+154], N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(b * y4), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y5 - x \cdot c\\
t_2 := i \cdot \left(y \cdot t\_1\right)\\
\mathbf{if}\;y4 \leq -2.55 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -6.6 \cdot 10^{+115}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.5 \cdot 10^{-51}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -2.8 \cdot 10^{-195}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 5 \cdot 10^{-249}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 8 \cdot 10^{-199}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y4 \leq 4.2 \cdot 10^{-96}:\\
\;\;\;\;\left(y \cdot i\right) \cdot t\_1\\
\mathbf{elif}\;y4 \leq 4.5 \cdot 10^{-30}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+110}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 4.9 \cdot 10^{+154}:\\
\;\;\;\;\left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -2.55e181Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -2.55e181 < y4 < -6.6000000000000001e115Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -6.6000000000000001e115 < y4 < -1.50000000000000001e-51Initial program 35.4%
Taylor expanded in y1 around inf 37.7%
Taylor expanded in z around inf 46.2%
if -1.50000000000000001e-51 < y4 < -2.80000000000000003e-195Initial program 20.8%
Taylor expanded in t around inf 47.5%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
Simplified47.9%
if -2.80000000000000003e-195 < y4 < 4.9999999999999999e-249 or 4.49999999999999967e-30 < y4 < 1.05000000000000007e110Initial program 38.3%
Taylor expanded in i around -inf 53.2%
Taylor expanded in y around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
if 4.9999999999999999e-249 < y4 < 7.99999999999999986e-199Initial program 30.0%
Taylor expanded in y1 around inf 50.2%
Taylor expanded in y2 around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
if 7.99999999999999986e-199 < y4 < 4.20000000000000002e-96Initial program 53.1%
Taylor expanded in i around -inf 53.5%
Taylor expanded in y around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
Simplified67.0%
pow167.0%
associate-*r*67.1%
Applied egg-rr67.1%
unpow167.1%
*-commutative67.1%
Simplified67.1%
if 4.20000000000000002e-96 < y4 < 4.49999999999999967e-30Initial program 18.2%
Taylor expanded in i around -inf 27.7%
Taylor expanded in j around inf 55.4%
if 1.05000000000000007e110 < y4 < 4.9000000000000002e154Initial program 16.7%
Taylor expanded in b around inf 67.1%
Taylor expanded in y4 around inf 75.6%
fma-neg75.6%
associate-*r*75.6%
fma-neg75.6%
Simplified75.6%
if 4.9000000000000002e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y (- (* k y5) (* x c))))))
(if (<= y4 -2.9e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -2e+116)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.2e-49)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -5.5e-195)
(* t (* z (- (* c i) (* a b))))
(if (<= y4 7.2e-249)
t_1
(if (<= y4 8e-199)
(* y1 (* y2 (- (* k y4) (* x a))))
(if (<= y4 5.8e-96)
t_1
(if (<= y4 1.9e-31)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y4 1.15e+112)
t_1
(if (<= y4 2.45e+154)
(* (- (* t j) (* y k)) (* b y4))
(* (* y3 y4) (- (* y c) (* j 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 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (y4 <= -2.9e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.2e-49) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -5.5e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 7.2e-249) {
tmp = t_1;
} else if (y4 <= 8e-199) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 5.8e-96) {
tmp = t_1;
} else if (y4 <= 1.9e-31) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 1.15e+112) {
tmp = t_1;
} else if (y4 <= 2.45e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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 = i * (y * ((k * y5) - (x * c)))
if (y4 <= (-2.9d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-2d+116)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.2d-49)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-5.5d-195)) then
tmp = t * (z * ((c * i) - (a * b)))
else if (y4 <= 7.2d-249) then
tmp = t_1
else if (y4 <= 8d-199) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else if (y4 <= 5.8d-96) then
tmp = t_1
else if (y4 <= 1.9d-31) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y4 <= 1.15d+112) then
tmp = t_1
else if (y4 <= 2.45d+154) then
tmp = ((t * j) - (y * k)) * (b * y4)
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = i * (y * ((k * y5) - (x * c)));
double tmp;
if (y4 <= -2.9e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.2e-49) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -5.5e-195) {
tmp = t * (z * ((c * i) - (a * b)));
} else if (y4 <= 7.2e-249) {
tmp = t_1;
} else if (y4 <= 8e-199) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else if (y4 <= 5.8e-96) {
tmp = t_1;
} else if (y4 <= 1.9e-31) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 1.15e+112) {
tmp = t_1;
} else if (y4 <= 2.45e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y * ((k * y5) - (x * c))) tmp = 0 if y4 <= -2.9e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -2e+116: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.2e-49: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -5.5e-195: tmp = t * (z * ((c * i) - (a * b))) elif y4 <= 7.2e-249: tmp = t_1 elif y4 <= 8e-199: tmp = y1 * (y2 * ((k * y4) - (x * a))) elif y4 <= 5.8e-96: tmp = t_1 elif y4 <= 1.9e-31: tmp = i * (j * ((x * y1) - (t * y5))) elif y4 <= 1.15e+112: tmp = t_1 elif y4 <= 2.45e+154: tmp = ((t * j) - (y * k)) * (b * y4) else: tmp = (y3 * y4) * ((y * c) - (j * y1)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))) tmp = 0.0 if (y4 <= -2.9e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -2e+116) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.2e-49) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -5.5e-195) tmp = Float64(t * Float64(z * Float64(Float64(c * i) - Float64(a * b)))); elseif (y4 <= 7.2e-249) tmp = t_1; elseif (y4 <= 8e-199) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); elseif (y4 <= 5.8e-96) tmp = t_1; elseif (y4 <= 1.9e-31) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y4 <= 1.15e+112) tmp = t_1; elseif (y4 <= 2.45e+154) tmp = Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(b * y4)); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = i * (y * ((k * y5) - (x * c))); tmp = 0.0; if (y4 <= -2.9e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -2e+116) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.2e-49) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -5.5e-195) tmp = t * (z * ((c * i) - (a * b))); elseif (y4 <= 7.2e-249) tmp = t_1; elseif (y4 <= 8e-199) tmp = y1 * (y2 * ((k * y4) - (x * a))); elseif (y4 <= 5.8e-96) tmp = t_1; elseif (y4 <= 1.9e-31) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y4 <= 1.15e+112) tmp = t_1; elseif (y4 <= 2.45e+154) tmp = ((t * j) - (y * k)) * (b * y4); else tmp = (y3 * y4) * ((y * c) - (j * 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[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.9e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2e+116], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.2e-49], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e-195], N[(t * N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.2e-249], t$95$1, If[LessEqual[y4, 8e-199], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.8e-96], t$95$1, If[LessEqual[y4, 1.9e-31], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.15e+112], t$95$1, If[LessEqual[y4, 2.45e+154], N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(b * y4), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{if}\;y4 \leq -2.9 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -2 \cdot 10^{+116}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.2 \cdot 10^{-49}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -5.5 \cdot 10^{-195}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq 7.2 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 8 \cdot 10^{-199}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{elif}\;y4 \leq 5.8 \cdot 10^{-96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 1.9 \cdot 10^{-31}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.15 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 2.45 \cdot 10^{+154}:\\
\;\;\;\;\left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -2.8999999999999998e182Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -2.8999999999999998e182 < y4 < -2.00000000000000003e116Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -2.00000000000000003e116 < y4 < -1.19999999999999996e-49Initial program 35.4%
Taylor expanded in y1 around inf 37.7%
Taylor expanded in z around inf 46.2%
if -1.19999999999999996e-49 < y4 < -5.5000000000000003e-195Initial program 20.8%
Taylor expanded in t around inf 47.5%
Taylor expanded in z around inf 47.9%
mul-1-neg47.9%
Simplified47.9%
if -5.5000000000000003e-195 < y4 < 7.19999999999999989e-249 or 7.99999999999999986e-199 < y4 < 5.79999999999999987e-96 or 1.9e-31 < y4 < 1.15e112Initial program 41.0%
Taylor expanded in i around -inf 53.3%
Taylor expanded in y around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
Simplified51.4%
if 7.19999999999999989e-249 < y4 < 7.99999999999999986e-199Initial program 30.0%
Taylor expanded in y1 around inf 50.2%
Taylor expanded in y2 around inf 51.7%
+-commutative51.7%
mul-1-neg51.7%
unsub-neg51.7%
Simplified51.7%
if 5.79999999999999987e-96 < y4 < 1.9e-31Initial program 18.2%
Taylor expanded in i around -inf 27.7%
Taylor expanded in j around inf 55.4%
if 1.15e112 < y4 < 2.4500000000000001e154Initial program 16.7%
Taylor expanded in b around inf 67.1%
Taylor expanded in y4 around inf 75.6%
fma-neg75.6%
associate-*r*75.6%
fma-neg75.6%
Simplified75.6%
if 2.4500000000000001e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification55.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4)))))
(t_2 (* i (* j (- (* x y1) (* t y5))))))
(if (<= y4 -2.3e+181)
t_1
(if (<= y4 -1.2e+116)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.3e-147)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -1.15e-246)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 1.85e-274)
t_2
(if (<= y4 1.05e-246)
t_1
(if (<= y4 4.1e-100)
(* i (* y (* k y5)))
(if (<= y4 8e+17)
t_2
(if (<= y4 9.1e+95)
(* (- i) (* (* x y) c))
(if (<= y4 5.6e+154)
(* (- (* t j) (* y k)) (* b y4))
(* (* y3 y4) (- (* y c) (* j 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 = b * (y * ((x * a) - (k * y4)));
double t_2 = i * (j * ((x * y1) - (t * y5)));
double tmp;
if (y4 <= -2.3e+181) {
tmp = t_1;
} else if (y4 <= -1.2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.3e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.15e-246) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1.85e-274) {
tmp = t_2;
} else if (y4 <= 1.05e-246) {
tmp = t_1;
} else if (y4 <= 4.1e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 8e+17) {
tmp = t_2;
} else if (y4 <= 9.1e+95) {
tmp = -i * ((x * y) * c);
} else if (y4 <= 5.6e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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) :: t_2
real(8) :: tmp
t_1 = b * (y * ((x * a) - (k * y4)))
t_2 = i * (j * ((x * y1) - (t * y5)))
if (y4 <= (-2.3d+181)) then
tmp = t_1
else if (y4 <= (-1.2d+116)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.3d-147)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-1.15d-246)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 1.85d-274) then
tmp = t_2
else if (y4 <= 1.05d-246) then
tmp = t_1
else if (y4 <= 4.1d-100) then
tmp = i * (y * (k * y5))
else if (y4 <= 8d+17) then
tmp = t_2
else if (y4 <= 9.1d+95) then
tmp = -i * ((x * y) * c)
else if (y4 <= 5.6d+154) then
tmp = ((t * j) - (y * k)) * (b * y4)
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = b * (y * ((x * a) - (k * y4)));
double t_2 = i * (j * ((x * y1) - (t * y5)));
double tmp;
if (y4 <= -2.3e+181) {
tmp = t_1;
} else if (y4 <= -1.2e+116) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.3e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.15e-246) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 1.85e-274) {
tmp = t_2;
} else if (y4 <= 1.05e-246) {
tmp = t_1;
} else if (y4 <= 4.1e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 8e+17) {
tmp = t_2;
} else if (y4 <= 9.1e+95) {
tmp = -i * ((x * y) * c);
} else if (y4 <= 5.6e+154) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * ((x * a) - (k * y4))) t_2 = i * (j * ((x * y1) - (t * y5))) tmp = 0 if y4 <= -2.3e+181: tmp = t_1 elif y4 <= -1.2e+116: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.3e-147: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -1.15e-246: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 1.85e-274: tmp = t_2 elif y4 <= 1.05e-246: tmp = t_1 elif y4 <= 4.1e-100: tmp = i * (y * (k * y5)) elif y4 <= 8e+17: tmp = t_2 elif y4 <= 9.1e+95: tmp = -i * ((x * y) * c) elif y4 <= 5.6e+154: tmp = ((t * j) - (y * k)) * (b * y4) else: tmp = (y3 * y4) * ((y * c) - (j * y1)) 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(y * Float64(Float64(x * a) - Float64(k * y4)))) t_2 = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))) tmp = 0.0 if (y4 <= -2.3e+181) tmp = t_1; elseif (y4 <= -1.2e+116) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.3e-147) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -1.15e-246) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 1.85e-274) tmp = t_2; elseif (y4 <= 1.05e-246) tmp = t_1; elseif (y4 <= 4.1e-100) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 8e+17) tmp = t_2; elseif (y4 <= 9.1e+95) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); elseif (y4 <= 5.6e+154) tmp = Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(b * y4)); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = b * (y * ((x * a) - (k * y4))); t_2 = i * (j * ((x * y1) - (t * y5))); tmp = 0.0; if (y4 <= -2.3e+181) tmp = t_1; elseif (y4 <= -1.2e+116) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.3e-147) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -1.15e-246) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 1.85e-274) tmp = t_2; elseif (y4 <= 1.05e-246) tmp = t_1; elseif (y4 <= 4.1e-100) tmp = i * (y * (k * y5)); elseif (y4 <= 8e+17) tmp = t_2; elseif (y4 <= 9.1e+95) tmp = -i * ((x * y) * c); elseif (y4 <= 5.6e+154) tmp = ((t * j) - (y * k)) * (b * y4); else tmp = (y3 * y4) * ((y * c) - (j * 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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.3e+181], t$95$1, If[LessEqual[y4, -1.2e+116], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.3e-147], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.15e-246], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.85e-274], t$95$2, If[LessEqual[y4, 1.05e-246], t$95$1, If[LessEqual[y4, 4.1e-100], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8e+17], t$95$2, If[LessEqual[y4, 9.1e+95], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.6e+154], N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(b * y4), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
t_2 := i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{if}\;y4 \leq -2.3 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.2 \cdot 10^{+116}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.3 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -1.15 \cdot 10^{-246}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 1.85 \cdot 10^{-274}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{-246}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 4.1 \cdot 10^{-100}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 8 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y4 \leq 9.1 \cdot 10^{+95}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{elif}\;y4 \leq 5.6 \cdot 10^{+154}:\\
\;\;\;\;\left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -2.2999999999999999e181 or 1.84999999999999992e-274 < y4 < 1.04999999999999997e-246Initial program 38.6%
Taylor expanded in b around inf 47.3%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -2.2999999999999999e181 < y4 < -1.2e116Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -1.2e116 < y4 < -1.2999999999999999e-147Initial program 28.9%
Taylor expanded in y1 around inf 32.7%
Taylor expanded in z around inf 41.8%
if -1.2999999999999999e-147 < y4 < -1.1499999999999999e-246Initial program 28.0%
Taylor expanded in b around inf 36.9%
Taylor expanded in a around inf 52.9%
if -1.1499999999999999e-246 < y4 < 1.84999999999999992e-274 or 4.0999999999999999e-100 < y4 < 8e17Initial program 36.8%
Taylor expanded in i around -inf 55.5%
Taylor expanded in j around inf 48.3%
if 1.04999999999999997e-246 < y4 < 4.0999999999999999e-100Initial program 36.2%
Taylor expanded in i around -inf 55.0%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around 0 42.1%
neg-mul-142.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if 8e17 < y4 < 9.10000000000000011e95Initial program 27.8%
Taylor expanded in i around -inf 50.1%
Taylor expanded in y around inf 34.1%
+-commutative34.1%
mul-1-neg34.1%
unsub-neg34.1%
Simplified34.1%
Taylor expanded in c around inf 45.4%
*-commutative45.4%
Simplified45.4%
if 9.10000000000000011e95 < y4 < 5.5999999999999998e154Initial program 20.0%
Taylor expanded in b around inf 53.7%
Taylor expanded in y4 around inf 67.3%
fma-neg67.3%
associate-*r*67.3%
fma-neg67.3%
Simplified67.3%
if 5.5999999999999998e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification52.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))))
(if (<= y4 -3.3e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -1.85e+115)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.1e-71)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -1.9e-120)
t_1
(if (<= y4 -9e-162)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= y4 -1.75e-215)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 9.5e-97)
(* i (* y (- (* k y5) (* x c))))
(if (<= y4 2.7e+83)
t_1
(*
y4
(+
(* b (- (* t j) (* y k)))
(* y1 (- (* k y2) (* j y3)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (y4 <= -3.3e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1.85e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.1e-71) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.9e-120) {
tmp = t_1;
} else if (y4 <= -9e-162) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -1.75e-215) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 9.5e-97) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 2.7e+83) {
tmp = t_1;
} else {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
if (y4 <= (-3.3d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-1.85d+115)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.1d-71)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-1.9d-120)) then
tmp = t_1
else if (y4 <= (-9d-162)) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (y4 <= (-1.75d-215)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 9.5d-97) then
tmp = i * (y * ((k * y5) - (x * c)))
else if (y4 <= 2.7d+83) then
tmp = t_1
else
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
double tmp;
if (y4 <= -3.3e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1.85e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.1e-71) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.9e-120) {
tmp = t_1;
} else if (y4 <= -9e-162) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -1.75e-215) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 9.5e-97) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (y4 <= 2.7e+83) {
tmp = t_1;
} else {
tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) tmp = 0 if y4 <= -3.3e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -1.85e+115: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.1e-71: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -1.9e-120: tmp = t_1 elif y4 <= -9e-162: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif y4 <= -1.75e-215: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 9.5e-97: tmp = i * (y * ((k * y5) - (x * c))) elif y4 <= 2.7e+83: tmp = t_1 else: tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * y3)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))) tmp = 0.0 if (y4 <= -3.3e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -1.85e+115) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.1e-71) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -1.9e-120) tmp = t_1; elseif (y4 <= -9e-162) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y4 <= -1.75e-215) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 9.5e-97) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); elseif (y4 <= 2.7e+83) tmp = t_1; else tmp = Float64(y4 * Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); tmp = 0.0; if (y4 <= -3.3e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -1.85e+115) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.1e-71) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -1.9e-120) tmp = t_1; elseif (y4 <= -9e-162) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (y4 <= -1.75e-215) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 9.5e-97) tmp = i * (y * ((k * y5) - (x * c))); elseif (y4 <= 2.7e+83) tmp = t_1; else tmp = y4 * ((b * ((t * j) - (y * k))) + (y1 * ((k * y2) - (j * 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[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.3e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.85e+115], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.1e-71], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.9e-120], t$95$1, If[LessEqual[y4, -9e-162], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.75e-215], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.5e-97], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.7e+83], t$95$1, N[(y4 * N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -3.3 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.85 \cdot 10^{+115}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.1 \cdot 10^{-71}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -1.9 \cdot 10^{-120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -9 \cdot 10^{-162}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -1.75 \cdot 10^{-215}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 9.5 \cdot 10^{-97}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq 2.7 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(t \cdot j - y \cdot k\right) + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -3.3000000000000001e182Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -3.3000000000000001e182 < y4 < -1.85000000000000003e115Initial program 14.6%
Taylor expanded in y4 around inf 47.8%
Taylor expanded in k around -inf 62.2%
mul-1-neg62.2%
*-commutative62.2%
distribute-rgt-neg-in62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if -1.85000000000000003e115 < y4 < -1.09999999999999999e-71Initial program 29.7%
Taylor expanded in y1 around inf 34.4%
Taylor expanded in z around inf 46.9%
if -1.09999999999999999e-71 < y4 < -1.8999999999999999e-120 or 9.5000000000000001e-97 < y4 < 2.70000000000000007e83Initial program 22.9%
Taylor expanded in t around inf 50.4%
Taylor expanded in j around 0 50.5%
mul-1-neg50.5%
Simplified50.5%
if -1.8999999999999999e-120 < y4 < -9.00000000000000045e-162Initial program 37.3%
Taylor expanded in y5 around -inf 57.4%
Taylor expanded in y0 around inf 57.7%
if -9.00000000000000045e-162 < y4 < -1.7500000000000001e-215Initial program 30.6%
Taylor expanded in b around inf 46.4%
Taylor expanded in a around inf 69.6%
if -1.7500000000000001e-215 < y4 < 9.5000000000000001e-97Initial program 44.3%
Taylor expanded in i around -inf 56.2%
Taylor expanded in y around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
Simplified50.1%
if 2.70000000000000007e83 < y4 Initial program 20.4%
Taylor expanded in y4 around inf 64.0%
Taylor expanded in c around 0 62.0%
Final simplification55.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y1 y3)))
(t_2 (- (* c y0) (* a y1)))
(t_3
(*
y2
(+
(+ (* k (- (* y1 y4) (* y0 y5))) (* x t_2))
(* t (- (* a y5) (* c y4))))))
(t_4 (* b (- (* t j) (* y k)))))
(if (<= y2 -1.25e+215)
t_3
(if (<= y2 -1.2e+160)
(* y4 (+ (- t_4 t_1) (* c (* y y3))))
(if (<= y2 -2.6e+43)
(*
x
(-
(+ (* y (- (* a b) (* c i))) (* y2 t_2))
(* j (- (* b y0) (* i y1)))))
(if (<= y2 6.5e-70)
(* y4 (- (+ t_4 (* k (* y1 y2))) t_1))
(if (<= y2 2.3e+57)
(* (* c y4) (- (* y y3) (* t y2)))
(if (<= y2 9.8e+181) (* b (* y (- (* x a) (* k y4)))) 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 = j * (y1 * y3);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double t_4 = b * ((t * j) - (y * k));
double tmp;
if (y2 <= -1.25e+215) {
tmp = t_3;
} else if (y2 <= -1.2e+160) {
tmp = y4 * ((t_4 - t_1) + (c * (y * y3)));
} else if (y2 <= -2.6e+43) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) - (j * ((b * y0) - (i * y1))));
} else if (y2 <= 6.5e-70) {
tmp = y4 * ((t_4 + (k * (y1 * y2))) - t_1);
} else if (y2 <= 2.3e+57) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (y2 <= 9.8e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: tmp
t_1 = j * (y1 * y3)
t_2 = (c * y0) - (a * y1)
t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))))
t_4 = b * ((t * j) - (y * k))
if (y2 <= (-1.25d+215)) then
tmp = t_3
else if (y2 <= (-1.2d+160)) then
tmp = y4 * ((t_4 - t_1) + (c * (y * y3)))
else if (y2 <= (-2.6d+43)) then
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) - (j * ((b * y0) - (i * y1))))
else if (y2 <= 6.5d-70) then
tmp = y4 * ((t_4 + (k * (y1 * y2))) - t_1)
else if (y2 <= 2.3d+57) then
tmp = (c * y4) * ((y * y3) - (t * y2))
else if (y2 <= 9.8d+181) then
tmp = b * (y * ((x * a) - (k * y4)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y1 * y3);
double t_2 = (c * y0) - (a * y1);
double t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4))));
double t_4 = b * ((t * j) - (y * k));
double tmp;
if (y2 <= -1.25e+215) {
tmp = t_3;
} else if (y2 <= -1.2e+160) {
tmp = y4 * ((t_4 - t_1) + (c * (y * y3)));
} else if (y2 <= -2.6e+43) {
tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) - (j * ((b * y0) - (i * y1))));
} else if (y2 <= 6.5e-70) {
tmp = y4 * ((t_4 + (k * (y1 * y2))) - t_1);
} else if (y2 <= 2.3e+57) {
tmp = (c * y4) * ((y * y3) - (t * y2));
} else if (y2 <= 9.8e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y1 * y3) t_2 = (c * y0) - (a * y1) t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))) t_4 = b * ((t * j) - (y * k)) tmp = 0 if y2 <= -1.25e+215: tmp = t_3 elif y2 <= -1.2e+160: tmp = y4 * ((t_4 - t_1) + (c * (y * y3))) elif y2 <= -2.6e+43: tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) - (j * ((b * y0) - (i * y1)))) elif y2 <= 6.5e-70: tmp = y4 * ((t_4 + (k * (y1 * y2))) - t_1) elif y2 <= 2.3e+57: tmp = (c * y4) * ((y * y3) - (t * y2)) elif y2 <= 9.8e+181: tmp = b * (y * ((x * a) - (k * y4))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y1 * y3)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(y2 * Float64(Float64(Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5))) + Float64(x * t_2)) + Float64(t * Float64(Float64(a * y5) - Float64(c * y4))))) t_4 = Float64(b * Float64(Float64(t * j) - Float64(y * k))) tmp = 0.0 if (y2 <= -1.25e+215) tmp = t_3; elseif (y2 <= -1.2e+160) tmp = Float64(y4 * Float64(Float64(t_4 - t_1) + Float64(c * Float64(y * y3)))); elseif (y2 <= -2.6e+43) tmp = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * t_2)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (y2 <= 6.5e-70) tmp = Float64(y4 * Float64(Float64(t_4 + Float64(k * Float64(y1 * y2))) - t_1)); elseif (y2 <= 2.3e+57) tmp = Float64(Float64(c * y4) * Float64(Float64(y * y3) - Float64(t * y2))); elseif (y2 <= 9.8e+181) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y1 * y3); t_2 = (c * y0) - (a * y1); t_3 = y2 * (((k * ((y1 * y4) - (y0 * y5))) + (x * t_2)) + (t * ((a * y5) - (c * y4)))); t_4 = b * ((t * j) - (y * k)); tmp = 0.0; if (y2 <= -1.25e+215) tmp = t_3; elseif (y2 <= -1.2e+160) tmp = y4 * ((t_4 - t_1) + (c * (y * y3))); elseif (y2 <= -2.6e+43) tmp = x * (((y * ((a * b) - (c * i))) + (y2 * t_2)) - (j * ((b * y0) - (i * y1)))); elseif (y2 <= 6.5e-70) tmp = y4 * ((t_4 + (k * (y1 * y2))) - t_1); elseif (y2 <= 2.3e+57) tmp = (c * y4) * ((y * y3) - (t * y2)); elseif (y2 <= 9.8e+181) tmp = b * (y * ((x * a) - (k * y4))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * N[(N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.25e+215], t$95$3, If[LessEqual[y2, -1.2e+160], N[(y4 * N[(N[(t$95$4 - t$95$1), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.6e+43], N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e-70], N[(y4 * N[(N[(t$95$4 + N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.3e+57], N[(N[(c * y4), $MachinePrecision] * N[(N[(y * y3), $MachinePrecision] - N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.8e+181], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y1 \cdot y3\right)\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := y2 \cdot \left(\left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right) + x \cdot t\_2\right) + t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
t_4 := b \cdot \left(t \cdot j - y \cdot k\right)\\
\mathbf{if}\;y2 \leq -1.25 \cdot 10^{+215}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y2 \leq -1.2 \cdot 10^{+160}:\\
\;\;\;\;y4 \cdot \left(\left(t\_4 - t\_1\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;y2 \leq -2.6 \cdot 10^{+43}:\\
\;\;\;\;x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot t\_2\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{-70}:\\
\;\;\;\;y4 \cdot \left(\left(t\_4 + k \cdot \left(y1 \cdot y2\right)\right) - t\_1\right)\\
\mathbf{elif}\;y2 \leq 2.3 \cdot 10^{+57}:\\
\;\;\;\;\left(c \cdot y4\right) \cdot \left(y \cdot y3 - t \cdot y2\right)\\
\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y2 < -1.25e215 or 9.79999999999999963e181 < y2 Initial program 27.6%
Taylor expanded in y2 around inf 67.6%
if -1.25e215 < y2 < -1.2000000000000001e160Initial program 0.0%
Taylor expanded in y4 around inf 54.5%
Taylor expanded in y2 around 0 73.2%
if -1.2000000000000001e160 < y2 < -2.60000000000000021e43Initial program 36.0%
Taylor expanded in x around inf 64.1%
if -2.60000000000000021e43 < y2 < 6.5000000000000005e-70Initial program 31.2%
Taylor expanded in y4 around inf 41.1%
Taylor expanded in k around 0 42.6%
+-commutative42.6%
mul-1-neg42.6%
unsub-neg42.6%
Simplified42.6%
Taylor expanded in c around 0 43.2%
if 6.5000000000000005e-70 < y2 < 2.2999999999999999e57Initial program 36.3%
Taylor expanded in y4 around inf 47.1%
Taylor expanded in c around inf 51.0%
associate-*r*54.2%
*-commutative54.2%
*-commutative54.2%
*-commutative54.2%
Simplified54.2%
if 2.2999999999999999e57 < y2 < 9.79999999999999963e181Initial program 17.6%
Taylor expanded in b around inf 47.6%
Taylor expanded in y around inf 71.4%
+-commutative71.4%
mul-1-neg71.4%
unsub-neg71.4%
Simplified71.4%
Final simplification54.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (- (* t j) (* y k))))
(t_2
(*
x
(-
(+ (* y (- (* a b) (* c i))) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))))
(if (<= c -3.2e+103)
(* i (* y (- (* k y5) (* x c))))
(if (<= c -2.7e+62)
(* i (* z (- (* t c) (* k y1))))
(if (<= c -5.6e-16)
(* y4 (+ (- t_1 (* j (* y1 y3))) (* c (* y y3))))
(if (<= c -2.8e-152)
t_2
(if (<= c 3.2e-199)
(* y4 (+ t_1 (* y1 (- (* k y2) (* j y3)))))
(if (<= c 4.3e-90)
t_2
(if (<= c 2.4e-42)
(* y1 (* y2 (- (* k y4) (* x a))))
(*
t
(+
(* z (- (* c i) (* a b)))
(* y2 (- (* a y5) (* c y4))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * ((t * j) - (y * k));
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
double tmp;
if (c <= -3.2e+103) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (c <= -2.7e+62) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (c <= -5.6e-16) {
tmp = y4 * ((t_1 - (j * (y1 * y3))) + (c * (y * y3)));
} else if (c <= -2.8e-152) {
tmp = t_2;
} else if (c <= 3.2e-199) {
tmp = y4 * (t_1 + (y1 * ((k * y2) - (j * y3))));
} else if (c <= 4.3e-90) {
tmp = t_2;
} else if (c <= 2.4e-42) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * j) - (y * k))
t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))))
if (c <= (-3.2d+103)) then
tmp = i * (y * ((k * y5) - (x * c)))
else if (c <= (-2.7d+62)) then
tmp = i * (z * ((t * c) - (k * y1)))
else if (c <= (-5.6d-16)) then
tmp = y4 * ((t_1 - (j * (y1 * y3))) + (c * (y * y3)))
else if (c <= (-2.8d-152)) then
tmp = t_2
else if (c <= 3.2d-199) then
tmp = y4 * (t_1 + (y1 * ((k * y2) - (j * y3))))
else if (c <= 4.3d-90) then
tmp = t_2
else if (c <= 2.4d-42) then
tmp = y1 * (y2 * ((k * y4) - (x * a)))
else
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * ((t * j) - (y * k));
double t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
double tmp;
if (c <= -3.2e+103) {
tmp = i * (y * ((k * y5) - (x * c)));
} else if (c <= -2.7e+62) {
tmp = i * (z * ((t * c) - (k * y1)));
} else if (c <= -5.6e-16) {
tmp = y4 * ((t_1 - (j * (y1 * y3))) + (c * (y * y3)));
} else if (c <= -2.8e-152) {
tmp = t_2;
} else if (c <= 3.2e-199) {
tmp = y4 * (t_1 + (y1 * ((k * y2) - (j * y3))));
} else if (c <= 4.3e-90) {
tmp = t_2;
} else if (c <= 2.4e-42) {
tmp = y1 * (y2 * ((k * y4) - (x * a)));
} else {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * ((t * j) - (y * k)) t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))) tmp = 0 if c <= -3.2e+103: tmp = i * (y * ((k * y5) - (x * c))) elif c <= -2.7e+62: tmp = i * (z * ((t * c) - (k * y1))) elif c <= -5.6e-16: tmp = y4 * ((t_1 - (j * (y1 * y3))) + (c * (y * y3))) elif c <= -2.8e-152: tmp = t_2 elif c <= 3.2e-199: tmp = y4 * (t_1 + (y1 * ((k * y2) - (j * y3)))) elif c <= 4.3e-90: tmp = t_2 elif c <= 2.4e-42: tmp = y1 * (y2 * ((k * y4) - (x * a))) else: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(t * j) - Float64(y * k))) t_2 = Float64(x * Float64(Float64(Float64(y * Float64(Float64(a * b) - Float64(c * i))) + Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))) tmp = 0.0 if (c <= -3.2e+103) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); elseif (c <= -2.7e+62) tmp = Float64(i * Float64(z * Float64(Float64(t * c) - Float64(k * y1)))); elseif (c <= -5.6e-16) tmp = Float64(y4 * Float64(Float64(t_1 - Float64(j * Float64(y1 * y3))) + Float64(c * Float64(y * y3)))); elseif (c <= -2.8e-152) tmp = t_2; elseif (c <= 3.2e-199) tmp = Float64(y4 * Float64(t_1 + Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3))))); elseif (c <= 4.3e-90) tmp = t_2; elseif (c <= 2.4e-42) tmp = Float64(y1 * Float64(y2 * Float64(Float64(k * y4) - Float64(x * a)))); else tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * ((t * j) - (y * k)); t_2 = x * (((y * ((a * b) - (c * i))) + (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1)))); tmp = 0.0; if (c <= -3.2e+103) tmp = i * (y * ((k * y5) - (x * c))); elseif (c <= -2.7e+62) tmp = i * (z * ((t * c) - (k * y1))); elseif (c <= -5.6e-16) tmp = y4 * ((t_1 - (j * (y1 * y3))) + (c * (y * y3))); elseif (c <= -2.8e-152) tmp = t_2; elseif (c <= 3.2e-199) tmp = y4 * (t_1 + (y1 * ((k * y2) - (j * y3)))); elseif (c <= 4.3e-90) tmp = t_2; elseif (c <= 2.4e-42) tmp = y1 * (y2 * ((k * y4) - (x * a))); else tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.2e+103], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e+62], N[(i * N[(z * N[(N[(t * c), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -5.6e-16], N[(y4 * N[(N[(t$95$1 - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e-152], t$95$2, If[LessEqual[c, 3.2e-199], N[(y4 * N[(t$95$1 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.3e-90], t$95$2, If[LessEqual[c, 2.4e-42], N[(y1 * N[(y2 * N[(N[(k * y4), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot j - y \cdot k\right)\\
t_2 := x \cdot \left(\left(y \cdot \left(a \cdot b - c \cdot i\right) + y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{if}\;c \leq -3.2 \cdot 10^{+103}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{+62}:\\
\;\;\;\;i \cdot \left(z \cdot \left(t \cdot c - k \cdot y1\right)\right)\\
\mathbf{elif}\;c \leq -5.6 \cdot 10^{-16}:\\
\;\;\;\;y4 \cdot \left(\left(t\_1 - j \cdot \left(y1 \cdot y3\right)\right) + c \cdot \left(y \cdot y3\right)\right)\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-152}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-199}:\\
\;\;\;\;y4 \cdot \left(t\_1 + y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;c \leq 4.3 \cdot 10^{-90}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-42}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4 - x \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if c < -3.19999999999999993e103Initial program 21.7%
Taylor expanded in i around -inf 36.5%
Taylor expanded in y around inf 43.5%
+-commutative43.5%
mul-1-neg43.5%
unsub-neg43.5%
Simplified43.5%
if -3.19999999999999993e103 < c < -2.7e62Initial program 14.3%
Taylor expanded in i around -inf 58.1%
Taylor expanded in z around -inf 52.1%
associate-*r*52.1%
mul-1-neg52.1%
Simplified52.1%
if -2.7e62 < c < -5.6000000000000003e-16Initial program 40.4%
Taylor expanded in y4 around inf 54.3%
Taylor expanded in y2 around 0 57.8%
if -5.6000000000000003e-16 < c < -2.79999999999999984e-152 or 3.1999999999999999e-199 < c < 4.3000000000000002e-90Initial program 42.0%
Taylor expanded in x around inf 59.0%
if -2.79999999999999984e-152 < c < 3.1999999999999999e-199Initial program 31.3%
Taylor expanded in y4 around inf 50.5%
Taylor expanded in c around 0 54.2%
if 4.3000000000000002e-90 < c < 2.40000000000000003e-42Initial program 25.0%
Taylor expanded in y1 around inf 56.5%
Taylor expanded in y2 around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
Simplified68.9%
if 2.40000000000000003e-42 < c Initial program 24.6%
Taylor expanded in t around inf 45.0%
Taylor expanded in j around 0 57.2%
mul-1-neg57.2%
Simplified57.2%
Final simplification55.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -2.45e+182)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -2.8e+112)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -7.6e-72)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -1.95e-121)
(* t (+ (* z (- (* c i) (* a b))) (* y2 (- (* a y5) (* c y4)))))
(if (<= y4 -5.5e-170)
(* y0 (* y5 (- (* j y3) (* k y2))))
(if (<= y4 -2e-216)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 4.2e-90)
(* i (* y (- (* k y5) (* x c))))
(*
y4
(+
(- (* b (- (* t j) (* y k))) (* j (* y1 y3)))
(* c (* y y3))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -2.45e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -2.8e+112) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -7.6e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.95e-121) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -5.5e-170) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -2e-216) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 4.2e-90) {
tmp = i * (y * ((k * y5) - (x * c)));
} else {
tmp = y4 * (((b * ((t * j) - (y * k))) - (j * (y1 * y3))) + (c * (y * y3)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-2.45d+182)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-2.8d+112)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-7.6d-72)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-1.95d-121)) then
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))))
else if (y4 <= (-5.5d-170)) then
tmp = y0 * (y5 * ((j * y3) - (k * y2)))
else if (y4 <= (-2d-216)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 4.2d-90) then
tmp = i * (y * ((k * y5) - (x * c)))
else
tmp = y4 * (((b * ((t * j) - (y * k))) - (j * (y1 * y3))) + (c * (y * y3)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -2.45e+182) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -2.8e+112) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -7.6e-72) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.95e-121) {
tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4))));
} else if (y4 <= -5.5e-170) {
tmp = y0 * (y5 * ((j * y3) - (k * y2)));
} else if (y4 <= -2e-216) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 4.2e-90) {
tmp = i * (y * ((k * y5) - (x * c)));
} else {
tmp = y4 * (((b * ((t * j) - (y * k))) - (j * (y1 * y3))) + (c * (y * y3)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -2.45e+182: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -2.8e+112: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -7.6e-72: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -1.95e-121: tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))) elif y4 <= -5.5e-170: tmp = y0 * (y5 * ((j * y3) - (k * y2))) elif y4 <= -2e-216: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 4.2e-90: tmp = i * (y * ((k * y5) - (x * c))) else: tmp = y4 * (((b * ((t * j) - (y * k))) - (j * (y1 * y3))) + (c * (y * y3))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -2.45e+182) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -2.8e+112) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -7.6e-72) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -1.95e-121) tmp = Float64(t * Float64(Float64(z * Float64(Float64(c * i) - Float64(a * b))) + Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4))))); elseif (y4 <= -5.5e-170) tmp = Float64(y0 * Float64(y5 * Float64(Float64(j * y3) - Float64(k * y2)))); elseif (y4 <= -2e-216) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 4.2e-90) tmp = Float64(i * Float64(y * Float64(Float64(k * y5) - Float64(x * c)))); else tmp = Float64(y4 * Float64(Float64(Float64(b * Float64(Float64(t * j) - Float64(y * k))) - Float64(j * Float64(y1 * y3))) + Float64(c * Float64(y * y3)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -2.45e+182) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -2.8e+112) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -7.6e-72) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -1.95e-121) tmp = t * ((z * ((c * i) - (a * b))) + (y2 * ((a * y5) - (c * y4)))); elseif (y4 <= -5.5e-170) tmp = y0 * (y5 * ((j * y3) - (k * y2))); elseif (y4 <= -2e-216) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 4.2e-90) tmp = i * (y * ((k * y5) - (x * c))); else tmp = y4 * (((b * ((t * j) - (y * k))) - (j * (y1 * y3))) + (c * (y * y3))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -2.45e+182], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.8e+112], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -7.6e-72], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.95e-121], N[(t * N[(N[(z * N[(N[(c * i), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -5.5e-170], N[(y0 * N[(y5 * N[(N[(j * y3), $MachinePrecision] - N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2e-216], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.2e-90], N[(i * N[(y * N[(N[(k * y5), $MachinePrecision] - N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(N[(b * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -2.45 \cdot 10^{+182}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -2.8 \cdot 10^{+112}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -7.6 \cdot 10^{-72}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -1.95 \cdot 10^{-121}:\\
\;\;\;\;t \cdot \left(z \cdot \left(c \cdot i - a \cdot b\right) + y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -5.5 \cdot 10^{-170}:\\
\;\;\;\;y0 \cdot \left(y5 \cdot \left(j \cdot y3 - k \cdot y2\right)\right)\\
\mathbf{elif}\;y4 \leq -2 \cdot 10^{-216}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 4.2 \cdot 10^{-90}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5 - x \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\left(b \cdot \left(t \cdot j - y \cdot k\right) - j \cdot \left(y1 \cdot y3\right)\right) + c \cdot \left(y \cdot y3\right)\right)\\
\end{array}
\end{array}
if y4 < -2.45e182Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -2.45e182 < y4 < -2.8000000000000001e112Initial program 14.6%
Taylor expanded in y4 around inf 47.8%
Taylor expanded in k around -inf 62.2%
mul-1-neg62.2%
*-commutative62.2%
distribute-rgt-neg-in62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
Simplified62.2%
if -2.8000000000000001e112 < y4 < -7.60000000000000004e-72Initial program 29.7%
Taylor expanded in y1 around inf 34.4%
Taylor expanded in z around inf 46.9%
if -7.60000000000000004e-72 < y4 < -1.95e-121Initial program 20.8%
Taylor expanded in t around inf 80.4%
Taylor expanded in j around 0 80.4%
mul-1-neg80.4%
Simplified80.4%
if -1.95e-121 < y4 < -5.50000000000000018e-170Initial program 27.1%
Taylor expanded in y5 around -inf 50.9%
Taylor expanded in y0 around inf 60.3%
if -5.50000000000000018e-170 < y4 < -2.0000000000000001e-216Initial program 39.8%
Taylor expanded in b around inf 50.3%
Taylor expanded in a around inf 70.5%
if -2.0000000000000001e-216 < y4 < 4.1999999999999998e-90Initial program 46.1%
Taylor expanded in i around -inf 54.4%
Taylor expanded in y around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
if 4.1999999999999998e-90 < y4 Initial program 19.7%
Taylor expanded in y4 around inf 53.2%
Taylor expanded in y2 around 0 55.3%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y4 -5e+181)
t_1
(if (<= y4 -6.2e+115)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -1.32e-147)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -4.8e-245)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 3.5e-274)
(* i (* j (- (* x y1) (* t y5))))
(if (<= y4 2.5e-248)
t_1
(if (<= y4 5.2e-127)
(* i (* y (* k y5)))
(if (<= y4 1.95e+118)
(* i (* x (- (* j y1) (* y c))))
(if (<= y4 7.8e+154)
(* b (* y4 (- (* t j) (* y k))))
(* (* y3 y4) (- (* y c) (* j 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -5e+181) {
tmp = t_1;
} else if (y4 <= -6.2e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.32e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -4.8e-245) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 3.5e-274) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 2.5e-248) {
tmp = t_1;
} else if (y4 <= 5.2e-127) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.95e+118) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y4 <= 7.8e+154) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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 = b * (y * ((x * a) - (k * y4)))
if (y4 <= (-5d+181)) then
tmp = t_1
else if (y4 <= (-6.2d+115)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-1.32d-147)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-4.8d-245)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 3.5d-274) then
tmp = i * (j * ((x * y1) - (t * y5)))
else if (y4 <= 2.5d-248) then
tmp = t_1
else if (y4 <= 5.2d-127) then
tmp = i * (y * (k * y5))
else if (y4 <= 1.95d+118) then
tmp = i * (x * ((j * y1) - (y * c)))
else if (y4 <= 7.8d+154) then
tmp = b * (y4 * ((t * j) - (y * k)))
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -5e+181) {
tmp = t_1;
} else if (y4 <= -6.2e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -1.32e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -4.8e-245) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 3.5e-274) {
tmp = i * (j * ((x * y1) - (t * y5)));
} else if (y4 <= 2.5e-248) {
tmp = t_1;
} else if (y4 <= 5.2e-127) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.95e+118) {
tmp = i * (x * ((j * y1) - (y * c)));
} else if (y4 <= 7.8e+154) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y4 <= -5e+181: tmp = t_1 elif y4 <= -6.2e+115: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -1.32e-147: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -4.8e-245: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 3.5e-274: tmp = i * (j * ((x * y1) - (t * y5))) elif y4 <= 2.5e-248: tmp = t_1 elif y4 <= 5.2e-127: tmp = i * (y * (k * y5)) elif y4 <= 1.95e+118: tmp = i * (x * ((j * y1) - (y * c))) elif y4 <= 7.8e+154: tmp = b * (y4 * ((t * j) - (y * k))) else: tmp = (y3 * y4) * ((y * c) - (j * y1)) 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(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y4 <= -5e+181) tmp = t_1; elseif (y4 <= -6.2e+115) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -1.32e-147) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -4.8e-245) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 3.5e-274) tmp = Float64(i * Float64(j * Float64(Float64(x * y1) - Float64(t * y5)))); elseif (y4 <= 2.5e-248) tmp = t_1; elseif (y4 <= 5.2e-127) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 1.95e+118) tmp = Float64(i * Float64(x * Float64(Float64(j * y1) - Float64(y * c)))); elseif (y4 <= 7.8e+154) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y4 <= -5e+181) tmp = t_1; elseif (y4 <= -6.2e+115) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -1.32e-147) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -4.8e-245) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 3.5e-274) tmp = i * (j * ((x * y1) - (t * y5))); elseif (y4 <= 2.5e-248) tmp = t_1; elseif (y4 <= 5.2e-127) tmp = i * (y * (k * y5)); elseif (y4 <= 1.95e+118) tmp = i * (x * ((j * y1) - (y * c))); elseif (y4 <= 7.8e+154) tmp = b * (y4 * ((t * j) - (y * k))); else tmp = (y3 * y4) * ((y * c) - (j * 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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -5e+181], t$95$1, If[LessEqual[y4, -6.2e+115], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.32e-147], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -4.8e-245], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.5e-274], N[(i * N[(j * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.5e-248], t$95$1, If[LessEqual[y4, 5.2e-127], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.95e+118], N[(i * N[(x * N[(N[(j * y1), $MachinePrecision] - N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.8e+154], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -5 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -6.2 \cdot 10^{+115}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -1.32 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -4.8 \cdot 10^{-245}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 3.5 \cdot 10^{-274}:\\
\;\;\;\;i \cdot \left(j \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 2.5 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 5.2 \cdot 10^{-127}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{+118}:\\
\;\;\;\;i \cdot \left(x \cdot \left(j \cdot y1 - y \cdot c\right)\right)\\
\mathbf{elif}\;y4 \leq 7.8 \cdot 10^{+154}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -5.0000000000000003e181 or 3.49999999999999982e-274 < y4 < 2.5e-248Initial program 38.6%
Taylor expanded in b around inf 47.3%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -5.0000000000000003e181 < y4 < -6.2000000000000001e115Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -6.2000000000000001e115 < y4 < -1.31999999999999989e-147Initial program 28.9%
Taylor expanded in y1 around inf 32.7%
Taylor expanded in z around inf 41.8%
if -1.31999999999999989e-147 < y4 < -4.8e-245Initial program 28.0%
Taylor expanded in b around inf 36.9%
Taylor expanded in a around inf 52.9%
if -4.8e-245 < y4 < 3.49999999999999982e-274Initial program 47.4%
Taylor expanded in i around -inf 68.7%
Taylor expanded in j around inf 53.7%
if 2.5e-248 < y4 < 5.19999999999999982e-127Initial program 36.7%
Taylor expanded in i around -inf 53.2%
Taylor expanded in y around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
Taylor expanded in c around 0 43.1%
neg-mul-143.1%
distribute-rgt-neg-in43.1%
Simplified43.1%
if 5.19999999999999982e-127 < y4 < 1.95e118Initial program 28.3%
Taylor expanded in i around -inf 45.8%
Taylor expanded in x around inf 40.1%
if 1.95e118 < y4 < 7.8000000000000006e154Initial program 11.1%
Taylor expanded in b around inf 77.8%
Taylor expanded in y4 around inf 89.2%
if 7.8000000000000006e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification52.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))) (t_2 (- (* t j) (* y k))))
(if (<= y4 -3.1e+181)
t_1
(if (<= y4 -1.25e+150)
(* y1 (* k (- (* y2 y4) (* z i))))
(if (<= y4 -4.4e+116)
(* t_2 (* b y4))
(if (<= y4 -1.75e-147)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -2.5e-247)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 2.7e-275)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y4 1.3e-246)
t_1
(if (<= y4 2.8e-101)
(* i (* y (* k y5)))
(if (<= y4 6.5e+63)
(* b (* j (- (* t y4) (* x y0))))
(* b (* y4 t_2)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * ((x * a) - (k * y4)));
double t_2 = (t * j) - (y * k);
double tmp;
if (y4 <= -3.1e+181) {
tmp = t_1;
} else if (y4 <= -1.25e+150) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -4.4e+116) {
tmp = t_2 * (b * y4);
} else if (y4 <= -1.75e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.5e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.7e-275) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y4 <= 1.3e-246) {
tmp = t_1;
} else if (y4 <= 2.8e-101) {
tmp = i * (y * (k * y5));
} else if (y4 <= 6.5e+63) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y4 * 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 = b * (y * ((x * a) - (k * y4)))
t_2 = (t * j) - (y * k)
if (y4 <= (-3.1d+181)) then
tmp = t_1
else if (y4 <= (-1.25d+150)) then
tmp = y1 * (k * ((y2 * y4) - (z * i)))
else if (y4 <= (-4.4d+116)) then
tmp = t_2 * (b * y4)
else if (y4 <= (-1.75d-147)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-2.5d-247)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 2.7d-275) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y4 <= 1.3d-246) then
tmp = t_1
else if (y4 <= 2.8d-101) then
tmp = i * (y * (k * y5))
else if (y4 <= 6.5d+63) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = b * (y4 * 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 * (y * ((x * a) - (k * y4)));
double t_2 = (t * j) - (y * k);
double tmp;
if (y4 <= -3.1e+181) {
tmp = t_1;
} else if (y4 <= -1.25e+150) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -4.4e+116) {
tmp = t_2 * (b * y4);
} else if (y4 <= -1.75e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.5e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.7e-275) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y4 <= 1.3e-246) {
tmp = t_1;
} else if (y4 <= 2.8e-101) {
tmp = i * (y * (k * y5));
} else if (y4 <= 6.5e+63) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y4 * 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 * (y * ((x * a) - (k * y4))) t_2 = (t * j) - (y * k) tmp = 0 if y4 <= -3.1e+181: tmp = t_1 elif y4 <= -1.25e+150: tmp = y1 * (k * ((y2 * y4) - (z * i))) elif y4 <= -4.4e+116: tmp = t_2 * (b * y4) elif y4 <= -1.75e-147: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -2.5e-247: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 2.7e-275: tmp = j * (t * ((b * y4) - (i * y5))) elif y4 <= 1.3e-246: tmp = t_1 elif y4 <= 2.8e-101: tmp = i * (y * (k * y5)) elif y4 <= 6.5e+63: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = b * (y4 * t_2) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) t_2 = Float64(Float64(t * j) - Float64(y * k)) tmp = 0.0 if (y4 <= -3.1e+181) tmp = t_1; elseif (y4 <= -1.25e+150) tmp = Float64(y1 * Float64(k * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y4 <= -4.4e+116) tmp = Float64(t_2 * Float64(b * y4)); elseif (y4 <= -1.75e-147) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -2.5e-247) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 2.7e-275) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y4 <= 1.3e-246) tmp = t_1; elseif (y4 <= 2.8e-101) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 6.5e+63) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(b * Float64(y4 * 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 * (y * ((x * a) - (k * y4))); t_2 = (t * j) - (y * k); tmp = 0.0; if (y4 <= -3.1e+181) tmp = t_1; elseif (y4 <= -1.25e+150) tmp = y1 * (k * ((y2 * y4) - (z * i))); elseif (y4 <= -4.4e+116) tmp = t_2 * (b * y4); elseif (y4 <= -1.75e-147) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -2.5e-247) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 2.7e-275) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y4 <= 1.3e-246) tmp = t_1; elseif (y4 <= 2.8e-101) tmp = i * (y * (k * y5)); elseif (y4 <= 6.5e+63) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = b * (y4 * t_2); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -3.1e+181], t$95$1, If[LessEqual[y4, -1.25e+150], N[(y1 * N[(k * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -4.4e+116], N[(t$95$2 * N[(b * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.75e-147], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.5e-247], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.7e-275], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.3e-246], t$95$1, If[LessEqual[y4, 2.8e-101], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.5e+63], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
t_2 := t \cdot j - y \cdot k\\
\mathbf{if}\;y4 \leq -3.1 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.25 \cdot 10^{+150}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y4 \leq -4.4 \cdot 10^{+116}:\\
\;\;\;\;t\_2 \cdot \left(b \cdot y4\right)\\
\mathbf{elif}\;y4 \leq -1.75 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -2.5 \cdot 10^{-247}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 2.7 \cdot 10^{-275}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.3 \cdot 10^{-246}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 2.8 \cdot 10^{-101}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 6.5 \cdot 10^{+63}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot t\_2\right)\\
\end{array}
\end{array}
if y4 < -3.09999999999999989e181 or 2.69999999999999993e-275 < y4 < 1.2999999999999999e-246Initial program 38.6%
Taylor expanded in b around inf 47.3%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -3.09999999999999989e181 < y4 < -1.25000000000000002e150Initial program 14.8%
Taylor expanded in y1 around inf 50.3%
Taylor expanded in k around inf 58.3%
if -1.25000000000000002e150 < y4 < -4.4e116Initial program 16.4%
Taylor expanded in b around inf 66.8%
Taylor expanded in y4 around inf 67.7%
fma-neg67.7%
associate-*r*83.7%
fma-neg83.7%
Simplified83.7%
if -4.4e116 < y4 < -1.75000000000000002e-147Initial program 28.9%
Taylor expanded in y1 around inf 32.7%
Taylor expanded in z around inf 41.8%
if -1.75000000000000002e-147 < y4 < -2.49999999999999989e-247Initial program 26.9%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 54.7%
if -2.49999999999999989e-247 < y4 < 2.69999999999999993e-275Initial program 50.0%
Taylor expanded in t around inf 56.1%
Taylor expanded in j around inf 50.7%
if 1.2999999999999999e-246 < y4 < 2.79999999999999989e-101Initial program 36.2%
Taylor expanded in i around -inf 55.0%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around 0 42.1%
neg-mul-142.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if 2.79999999999999989e-101 < y4 < 6.49999999999999992e63Initial program 21.9%
Taylor expanded in b around inf 28.9%
Taylor expanded in j around inf 35.1%
if 6.49999999999999992e63 < y4 Initial program 23.4%
Taylor expanded in b around inf 40.8%
Taylor expanded in y4 around inf 52.2%
Final simplification49.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* k (* y1 y2))))
(t_2 (* b (* y (- (* x a) (* k y4)))))
(t_3 (* i (* y1 (- (* x j) (* z k))))))
(if (<= y1 -1.35e+100)
t_1
(if (<= y1 -4e+59)
t_3
(if (<= y1 -1e+48)
t_1
(if (<= y1 -3.5e-48)
t_2
(if (<= y1 -4.6e-137)
(* (- i) (* (* x y) c))
(if (<= y1 2.7e-300)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y1 2.5e-94)
(* t (* y4 (- (* b j) (* c y2))))
(if (<= y1 2.65e-19)
t_2
(if (<= y1 1.9e+169)
(* t (* y2 (- (* a y5) (* c y4))))
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 = y4 * (k * (y1 * y2));
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -1.35e+100) {
tmp = t_1;
} else if (y1 <= -4e+59) {
tmp = t_3;
} else if (y1 <= -1e+48) {
tmp = t_1;
} else if (y1 <= -3.5e-48) {
tmp = t_2;
} else if (y1 <= -4.6e-137) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 2.7e-300) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= 2.5e-94) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y1 <= 2.65e-19) {
tmp = t_2;
} else if (y1 <= 1.9e+169) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y4 * (k * (y1 * y2))
t_2 = b * (y * ((x * a) - (k * y4)))
t_3 = i * (y1 * ((x * j) - (z * k)))
if (y1 <= (-1.35d+100)) then
tmp = t_1
else if (y1 <= (-4d+59)) then
tmp = t_3
else if (y1 <= (-1d+48)) then
tmp = t_1
else if (y1 <= (-3.5d-48)) then
tmp = t_2
else if (y1 <= (-4.6d-137)) then
tmp = -i * ((x * y) * c)
else if (y1 <= 2.7d-300) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y1 <= 2.5d-94) then
tmp = t * (y4 * ((b * j) - (c * y2)))
else if (y1 <= 2.65d-19) then
tmp = t_2
else if (y1 <= 1.9d+169) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (k * (y1 * y2));
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -1.35e+100) {
tmp = t_1;
} else if (y1 <= -4e+59) {
tmp = t_3;
} else if (y1 <= -1e+48) {
tmp = t_1;
} else if (y1 <= -3.5e-48) {
tmp = t_2;
} else if (y1 <= -4.6e-137) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 2.7e-300) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= 2.5e-94) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y1 <= 2.65e-19) {
tmp = t_2;
} else if (y1 <= 1.9e+169) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (k * (y1 * y2)) t_2 = b * (y * ((x * a) - (k * y4))) t_3 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if y1 <= -1.35e+100: tmp = t_1 elif y1 <= -4e+59: tmp = t_3 elif y1 <= -1e+48: tmp = t_1 elif y1 <= -3.5e-48: tmp = t_2 elif y1 <= -4.6e-137: tmp = -i * ((x * y) * c) elif y1 <= 2.7e-300: tmp = j * (t * ((b * y4) - (i * y5))) elif y1 <= 2.5e-94: tmp = t * (y4 * ((b * j) - (c * y2))) elif y1 <= 2.65e-19: tmp = t_2 elif y1 <= 1.9e+169: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(k * Float64(y1 * y2))) t_2 = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) t_3 = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (y1 <= -1.35e+100) tmp = t_1; elseif (y1 <= -4e+59) tmp = t_3; elseif (y1 <= -1e+48) tmp = t_1; elseif (y1 <= -3.5e-48) tmp = t_2; elseif (y1 <= -4.6e-137) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); elseif (y1 <= 2.7e-300) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y1 <= 2.5e-94) tmp = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y1 <= 2.65e-19) tmp = t_2; elseif (y1 <= 1.9e+169) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (k * (y1 * y2)); t_2 = b * (y * ((x * a) - (k * y4))); t_3 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (y1 <= -1.35e+100) tmp = t_1; elseif (y1 <= -4e+59) tmp = t_3; elseif (y1 <= -1e+48) tmp = t_1; elseif (y1 <= -3.5e-48) tmp = t_2; elseif (y1 <= -4.6e-137) tmp = -i * ((x * y) * c); elseif (y1 <= 2.7e-300) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y1 <= 2.5e-94) tmp = t * (y4 * ((b * j) - (c * y2))); elseif (y1 <= 2.65e-19) tmp = t_2; elseif (y1 <= 1.9e+169) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -1.35e+100], t$95$1, If[LessEqual[y1, -4e+59], t$95$3, If[LessEqual[y1, -1e+48], t$95$1, If[LessEqual[y1, -3.5e-48], t$95$2, If[LessEqual[y1, -4.6e-137], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.7e-300], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.5e-94], N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.65e-19], t$95$2, If[LessEqual[y1, 1.9e+169], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
t_2 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
t_3 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;y1 \leq -1.35 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -4 \cdot 10^{+59}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y1 \leq -1 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -3.5 \cdot 10^{-48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq -4.6 \cdot 10^{-137}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{elif}\;y1 \leq 2.7 \cdot 10^{-300}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 2.5 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y1 \leq 2.65 \cdot 10^{-19}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq 1.9 \cdot 10^{+169}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y1 < -1.34999999999999999e100 or -3.99999999999999989e59 < y1 < -1.00000000000000004e48Initial program 19.2%
Taylor expanded in y1 around inf 43.2%
Taylor expanded in y2 around inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
Simplified41.5%
Taylor expanded in k around inf 36.3%
*-commutative36.3%
*-commutative36.3%
*-commutative36.3%
associate-*r*39.5%
*-commutative39.5%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -1.34999999999999999e100 < y1 < -3.99999999999999989e59 or 1.89999999999999996e169 < y1 Initial program 25.5%
Taylor expanded in y1 around inf 65.3%
Taylor expanded in i around inf 56.4%
if -1.00000000000000004e48 < y1 < -3.49999999999999991e-48 or 2.4999999999999998e-94 < y1 < 2.64999999999999986e-19Initial program 32.3%
Taylor expanded in b around inf 56.4%
Taylor expanded in y around inf 54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
if -3.49999999999999991e-48 < y1 < -4.60000000000000016e-137Initial program 27.2%
Taylor expanded in i around -inf 59.4%
Taylor expanded in y around inf 68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in c around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -4.60000000000000016e-137 < y1 < 2.69999999999999995e-300Initial program 37.3%
Taylor expanded in t around inf 26.0%
Taylor expanded in j around inf 40.1%
if 2.69999999999999995e-300 < y1 < 2.4999999999999998e-94Initial program 31.4%
Taylor expanded in t around inf 48.9%
Taylor expanded in y4 around inf 51.0%
if 2.64999999999999986e-19 < y1 < 1.89999999999999996e169Initial program 32.6%
Taylor expanded in t around inf 41.4%
Taylor expanded in y2 around inf 52.2%
Final simplification49.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y4 -2.7e+181)
t_1
(if (<= y4 -6.2e+115)
(* k (* y4 (- (* y1 y2) (* y b))))
(if (<= y4 -2.15e-147)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -2.5e-247)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 7.2e-275)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y4 9.5e-248)
t_1
(if (<= y4 1.12e-100)
(* i (* y (* k y5)))
(if (<= y4 1.42e+154)
(* b (* j (- (* t y4) (* x y0))))
(* (* y3 y4) (- (* y c) (* j 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -2.7e+181) {
tmp = t_1;
} else if (y4 <= -6.2e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -2.15e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.5e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 7.2e-275) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y4 <= 9.5e-248) {
tmp = t_1;
} else if (y4 <= 1.12e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.42e+154) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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 = b * (y * ((x * a) - (k * y4)))
if (y4 <= (-2.7d+181)) then
tmp = t_1
else if (y4 <= (-6.2d+115)) then
tmp = k * (y4 * ((y1 * y2) - (y * b)))
else if (y4 <= (-2.15d-147)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-2.5d-247)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 7.2d-275) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y4 <= 9.5d-248) then
tmp = t_1
else if (y4 <= 1.12d-100) then
tmp = i * (y * (k * y5))
else if (y4 <= 1.42d+154) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = (y3 * y4) * ((y * c) - (j * 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -2.7e+181) {
tmp = t_1;
} else if (y4 <= -6.2e+115) {
tmp = k * (y4 * ((y1 * y2) - (y * b)));
} else if (y4 <= -2.15e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -2.5e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 7.2e-275) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y4 <= 9.5e-248) {
tmp = t_1;
} else if (y4 <= 1.12e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.42e+154) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y4 <= -2.7e+181: tmp = t_1 elif y4 <= -6.2e+115: tmp = k * (y4 * ((y1 * y2) - (y * b))) elif y4 <= -2.15e-147: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -2.5e-247: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 7.2e-275: tmp = j * (t * ((b * y4) - (i * y5))) elif y4 <= 9.5e-248: tmp = t_1 elif y4 <= 1.12e-100: tmp = i * (y * (k * y5)) elif y4 <= 1.42e+154: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = (y3 * y4) * ((y * c) - (j * y1)) 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(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y4 <= -2.7e+181) tmp = t_1; elseif (y4 <= -6.2e+115) tmp = Float64(k * Float64(y4 * Float64(Float64(y1 * y2) - Float64(y * b)))); elseif (y4 <= -2.15e-147) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -2.5e-247) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 7.2e-275) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y4 <= 9.5e-248) tmp = t_1; elseif (y4 <= 1.12e-100) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 1.42e+154) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y4 <= -2.7e+181) tmp = t_1; elseif (y4 <= -6.2e+115) tmp = k * (y4 * ((y1 * y2) - (y * b))); elseif (y4 <= -2.15e-147) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -2.5e-247) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 7.2e-275) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y4 <= 9.5e-248) tmp = t_1; elseif (y4 <= 1.12e-100) tmp = i * (y * (k * y5)); elseif (y4 <= 1.42e+154) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = (y3 * y4) * ((y * c) - (j * 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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.7e+181], t$95$1, If[LessEqual[y4, -6.2e+115], N[(k * N[(y4 * N[(N[(y1 * y2), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.15e-147], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -2.5e-247], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.2e-275], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.5e-248], t$95$1, If[LessEqual[y4, 1.12e-100], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.42e+154], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -2.7 \cdot 10^{+181}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -6.2 \cdot 10^{+115}:\\
\;\;\;\;k \cdot \left(y4 \cdot \left(y1 \cdot y2 - y \cdot b\right)\right)\\
\mathbf{elif}\;y4 \leq -2.15 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -2.5 \cdot 10^{-247}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 7.2 \cdot 10^{-275}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 9.5 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 1.12 \cdot 10^{-100}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.42 \cdot 10^{+154}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -2.70000000000000007e181 or 7.1999999999999994e-275 < y4 < 9.49999999999999971e-248Initial program 38.6%
Taylor expanded in b around inf 47.3%
Taylor expanded in y around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -2.70000000000000007e181 < y4 < -6.2000000000000001e115Initial program 15.3%
Taylor expanded in y4 around inf 50.2%
Taylor expanded in k around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -6.2000000000000001e115 < y4 < -2.1500000000000001e-147Initial program 28.9%
Taylor expanded in y1 around inf 32.7%
Taylor expanded in z around inf 41.8%
if -2.1500000000000001e-147 < y4 < -2.49999999999999989e-247Initial program 26.9%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 54.7%
if -2.49999999999999989e-247 < y4 < 7.1999999999999994e-275Initial program 50.0%
Taylor expanded in t around inf 56.1%
Taylor expanded in j around inf 50.7%
if 9.49999999999999971e-248 < y4 < 1.11999999999999996e-100Initial program 36.2%
Taylor expanded in i around -inf 55.0%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around 0 42.1%
neg-mul-142.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if 1.11999999999999996e-100 < y4 < 1.42e154Initial program 25.0%
Taylor expanded in b around inf 37.2%
Taylor expanded in j around inf 39.1%
if 1.42e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification50.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -2.55e+181)
(* b (* y (- (* x a) (* k y4))))
(if (<= y4 -1.15e+151)
(* y1 (* k (- (* y2 y4) (* z i))))
(if (<= y4 -1.2e+116)
(* (- (* t j) (* y k)) (* b y4))
(if (<= y4 -1.32e-147)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 -1.02e-246)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 8.8e-100)
(* i (* y (* k y5)))
(if (<= y4 1.5e+154)
(* b (* j (- (* t y4) (* x y0))))
(* (* y3 y4) (- (* y c) (* j 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 (y4 <= -2.55e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1.15e+151) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -1.2e+116) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else if (y4 <= -1.32e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.02e-246) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 8.8e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.5e+154) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * 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 (y4 <= (-2.55d+181)) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y4 <= (-1.15d+151)) then
tmp = y1 * (k * ((y2 * y4) - (z * i)))
else if (y4 <= (-1.2d+116)) then
tmp = ((t * j) - (y * k)) * (b * y4)
else if (y4 <= (-1.32d-147)) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (y4 <= (-1.02d-246)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 8.8d-100) then
tmp = i * (y * (k * y5))
else if (y4 <= 1.5d+154) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = (y3 * y4) * ((y * c) - (j * 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 (y4 <= -2.55e+181) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y4 <= -1.15e+151) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y4 <= -1.2e+116) {
tmp = ((t * j) - (y * k)) * (b * y4);
} else if (y4 <= -1.32e-147) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= -1.02e-246) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 8.8e-100) {
tmp = i * (y * (k * y5));
} else if (y4 <= 1.5e+154) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = (y3 * y4) * ((y * c) - (j * y1));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -2.55e+181: tmp = b * (y * ((x * a) - (k * y4))) elif y4 <= -1.15e+151: tmp = y1 * (k * ((y2 * y4) - (z * i))) elif y4 <= -1.2e+116: tmp = ((t * j) - (y * k)) * (b * y4) elif y4 <= -1.32e-147: tmp = y1 * (z * ((a * y3) - (i * k))) elif y4 <= -1.02e-246: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 8.8e-100: tmp = i * (y * (k * y5)) elif y4 <= 1.5e+154: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = (y3 * y4) * ((y * c) - (j * 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 (y4 <= -2.55e+181) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y4 <= -1.15e+151) tmp = Float64(y1 * Float64(k * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y4 <= -1.2e+116) tmp = Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(b * y4)); elseif (y4 <= -1.32e-147) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= -1.02e-246) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 8.8e-100) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 1.5e+154) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(Float64(y3 * y4) * Float64(Float64(y * c) - Float64(j * 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 (y4 <= -2.55e+181) tmp = b * (y * ((x * a) - (k * y4))); elseif (y4 <= -1.15e+151) tmp = y1 * (k * ((y2 * y4) - (z * i))); elseif (y4 <= -1.2e+116) tmp = ((t * j) - (y * k)) * (b * y4); elseif (y4 <= -1.32e-147) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (y4 <= -1.02e-246) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 8.8e-100) tmp = i * (y * (k * y5)); elseif (y4 <= 1.5e+154) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = (y3 * y4) * ((y * c) - (j * 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[y4, -2.55e+181], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.15e+151], N[(y1 * N[(k * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.2e+116], N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(b * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.32e-147], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, -1.02e-246], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 8.8e-100], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.5e+154], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y4), $MachinePrecision] * N[(N[(y * c), $MachinePrecision] - N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -2.55 \cdot 10^{+181}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y4 \leq -1.15 \cdot 10^{+151}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y4 \leq -1.2 \cdot 10^{+116}:\\
\;\;\;\;\left(t \cdot j - y \cdot k\right) \cdot \left(b \cdot y4\right)\\
\mathbf{elif}\;y4 \leq -1.32 \cdot 10^{-147}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq -1.02 \cdot 10^{-246}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 8.8 \cdot 10^{-100}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 1.5 \cdot 10^{+154}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y4\right) \cdot \left(y \cdot c - j \cdot y1\right)\\
\end{array}
\end{array}
if y4 < -2.55e181Initial program 28.6%
Taylor expanded in b around inf 44.0%
Taylor expanded in y around inf 61.5%
+-commutative61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
if -2.55e181 < y4 < -1.15e151Initial program 14.8%
Taylor expanded in y1 around inf 50.3%
Taylor expanded in k around inf 58.3%
if -1.15e151 < y4 < -1.2e116Initial program 16.4%
Taylor expanded in b around inf 66.8%
Taylor expanded in y4 around inf 67.7%
fma-neg67.7%
associate-*r*83.7%
fma-neg83.7%
Simplified83.7%
if -1.2e116 < y4 < -1.31999999999999989e-147Initial program 28.9%
Taylor expanded in y1 around inf 32.7%
Taylor expanded in z around inf 41.8%
if -1.31999999999999989e-147 < y4 < -1.02e-246Initial program 26.9%
Taylor expanded in b around inf 39.3%
Taylor expanded in a around inf 54.7%
if -1.02e-246 < y4 < 8.79999999999999957e-100Initial program 47.1%
Taylor expanded in i around -inf 57.3%
Taylor expanded in y around inf 48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in c around 0 38.4%
neg-mul-138.4%
distribute-rgt-neg-in38.4%
Simplified38.4%
if 8.79999999999999957e-100 < y4 < 1.50000000000000013e154Initial program 25.0%
Taylor expanded in b around inf 37.2%
Taylor expanded in j around inf 39.1%
if 1.50000000000000013e154 < y4 Initial program 18.5%
Taylor expanded in y4 around inf 66.9%
Taylor expanded in k around 0 74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in y3 around -inf 63.7%
associate-*r*65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
Simplified65.2%
Final simplification48.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y1 -3.2e+46)
(* y1 (* k (- (* y2 y4) (* z i))))
(if (<= y1 -6.8e-48)
t_1
(if (<= y1 -9.5e-137)
(* (- i) (* (* x y) c))
(if (<= y1 1.85e-298)
(* j (* t (- (* b y4) (* i y5))))
(if (<= y1 1.35e-93)
(* t (* y4 (- (* b j) (* c y2))))
(if (<= y1 1.9e-21)
t_1
(if (<= y1 2.4e+169)
(* t (* y2 (- (* a y5) (* c y4))))
(* i (* y1 (- (* 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y1 <= -3.2e+46) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y1 <= -6.8e-48) {
tmp = t_1;
} else if (y1 <= -9.5e-137) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 1.85e-298) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= 1.35e-93) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y1 <= 1.9e-21) {
tmp = t_1;
} else if (y1 <= 2.4e+169) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = i * (y1 * ((x * j) - (z * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y * ((x * a) - (k * y4)))
if (y1 <= (-3.2d+46)) then
tmp = y1 * (k * ((y2 * y4) - (z * i)))
else if (y1 <= (-6.8d-48)) then
tmp = t_1
else if (y1 <= (-9.5d-137)) then
tmp = -i * ((x * y) * c)
else if (y1 <= 1.85d-298) then
tmp = j * (t * ((b * y4) - (i * y5)))
else if (y1 <= 1.35d-93) then
tmp = t * (y4 * ((b * j) - (c * y2)))
else if (y1 <= 1.9d-21) then
tmp = t_1
else if (y1 <= 2.4d+169) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = i * (y1 * ((x * j) - (z * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y1 <= -3.2e+46) {
tmp = y1 * (k * ((y2 * y4) - (z * i)));
} else if (y1 <= -6.8e-48) {
tmp = t_1;
} else if (y1 <= -9.5e-137) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 1.85e-298) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else if (y1 <= 1.35e-93) {
tmp = t * (y4 * ((b * j) - (c * y2)));
} else if (y1 <= 1.9e-21) {
tmp = t_1;
} else if (y1 <= 2.4e+169) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = i * (y1 * ((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 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y1 <= -3.2e+46: tmp = y1 * (k * ((y2 * y4) - (z * i))) elif y1 <= -6.8e-48: tmp = t_1 elif y1 <= -9.5e-137: tmp = -i * ((x * y) * c) elif y1 <= 1.85e-298: tmp = j * (t * ((b * y4) - (i * y5))) elif y1 <= 1.35e-93: tmp = t * (y4 * ((b * j) - (c * y2))) elif y1 <= 1.9e-21: tmp = t_1 elif y1 <= 2.4e+169: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = i * (y1 * ((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(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y1 <= -3.2e+46) tmp = Float64(y1 * Float64(k * Float64(Float64(y2 * y4) - Float64(z * i)))); elseif (y1 <= -6.8e-48) tmp = t_1; elseif (y1 <= -9.5e-137) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); elseif (y1 <= 1.85e-298) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); elseif (y1 <= 1.35e-93) tmp = Float64(t * Float64(y4 * Float64(Float64(b * j) - Float64(c * y2)))); elseif (y1 <= 1.9e-21) tmp = t_1; elseif (y1 <= 2.4e+169) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = Float64(i * Float64(y1 * 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 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y1 <= -3.2e+46) tmp = y1 * (k * ((y2 * y4) - (z * i))); elseif (y1 <= -6.8e-48) tmp = t_1; elseif (y1 <= -9.5e-137) tmp = -i * ((x * y) * c); elseif (y1 <= 1.85e-298) tmp = j * (t * ((b * y4) - (i * y5))); elseif (y1 <= 1.35e-93) tmp = t * (y4 * ((b * j) - (c * y2))); elseif (y1 <= 1.9e-21) tmp = t_1; elseif (y1 <= 2.4e+169) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = i * (y1 * ((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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.2e+46], N[(y1 * N[(k * N[(N[(y2 * y4), $MachinePrecision] - N[(z * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -6.8e-48], t$95$1, If[LessEqual[y1, -9.5e-137], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.85e-298], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.35e-93], N[(t * N[(y4 * N[(N[(b * j), $MachinePrecision] - N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.9e-21], t$95$1, If[LessEqual[y1, 2.4e+169], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -3.2 \cdot 10^{+46}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4 - z \cdot i\right)\right)\\
\mathbf{elif}\;y1 \leq -6.8 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -9.5 \cdot 10^{-137}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{elif}\;y1 \leq 1.85 \cdot 10^{-298}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 1.35 \cdot 10^{-93}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j - c \cdot y2\right)\right)\\
\mathbf{elif}\;y1 \leq 1.9 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 2.4 \cdot 10^{+169}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\end{array}
\end{array}
if y1 < -3.1999999999999998e46Initial program 20.9%
Taylor expanded in y1 around inf 45.5%
Taylor expanded in k around inf 45.3%
if -3.1999999999999998e46 < y1 < -6.80000000000000056e-48 or 1.3500000000000001e-93 < y1 < 1.8999999999999999e-21Initial program 32.3%
Taylor expanded in b around inf 56.4%
Taylor expanded in y around inf 54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
Simplified54.3%
if -6.80000000000000056e-48 < y1 < -9.5000000000000007e-137Initial program 27.2%
Taylor expanded in i around -inf 59.4%
Taylor expanded in y around inf 68.4%
+-commutative68.4%
mul-1-neg68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in c around inf 51.2%
*-commutative51.2%
Simplified51.2%
if -9.5000000000000007e-137 < y1 < 1.8499999999999999e-298Initial program 37.3%
Taylor expanded in t around inf 26.0%
Taylor expanded in j around inf 40.1%
if 1.8499999999999999e-298 < y1 < 1.3500000000000001e-93Initial program 31.4%
Taylor expanded in t around inf 48.9%
Taylor expanded in y4 around inf 51.0%
if 1.8999999999999999e-21 < y1 < 2.3999999999999998e169Initial program 32.6%
Taylor expanded in t around inf 41.4%
Taylor expanded in y2 around inf 52.2%
if 2.3999999999999998e169 < y1 Initial program 25.0%
Taylor expanded in y1 around inf 69.0%
Taylor expanded in i around inf 56.7%
Final simplification49.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y4 (* k (* y1 y2))))
(t_2 (* b (* y (- (* x a) (* k y4)))))
(t_3 (* i (* y1 (- (* x j) (* z k))))))
(if (<= y1 -4.2e+99)
t_1
(if (<= y1 -1.55e+60)
t_3
(if (<= y1 -1.35e+48)
t_1
(if (<= y1 -5.4e-48)
t_2
(if (<= y1 -3.15e-84)
(* (- i) (* (* x y) c))
(if (<= y1 5.9e-28)
t_2
(if (<= y1 2.9e+168)
(* t (* y2 (- (* a y5) (* c y4))))
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 = y4 * (k * (y1 * y2));
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -4.2e+99) {
tmp = t_1;
} else if (y1 <= -1.55e+60) {
tmp = t_3;
} else if (y1 <= -1.35e+48) {
tmp = t_1;
} else if (y1 <= -5.4e-48) {
tmp = t_2;
} else if (y1 <= -3.15e-84) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 5.9e-28) {
tmp = t_2;
} else if (y1 <= 2.9e+168) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y4 * (k * (y1 * y2))
t_2 = b * (y * ((x * a) - (k * y4)))
t_3 = i * (y1 * ((x * j) - (z * k)))
if (y1 <= (-4.2d+99)) then
tmp = t_1
else if (y1 <= (-1.55d+60)) then
tmp = t_3
else if (y1 <= (-1.35d+48)) then
tmp = t_1
else if (y1 <= (-5.4d-48)) then
tmp = t_2
else if (y1 <= (-3.15d-84)) then
tmp = -i * ((x * y) * c)
else if (y1 <= 5.9d-28) then
tmp = t_2
else if (y1 <= 2.9d+168) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y4 * (k * (y1 * y2));
double t_2 = b * (y * ((x * a) - (k * y4)));
double t_3 = i * (y1 * ((x * j) - (z * k)));
double tmp;
if (y1 <= -4.2e+99) {
tmp = t_1;
} else if (y1 <= -1.55e+60) {
tmp = t_3;
} else if (y1 <= -1.35e+48) {
tmp = t_1;
} else if (y1 <= -5.4e-48) {
tmp = t_2;
} else if (y1 <= -3.15e-84) {
tmp = -i * ((x * y) * c);
} else if (y1 <= 5.9e-28) {
tmp = t_2;
} else if (y1 <= 2.9e+168) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y4 * (k * (y1 * y2)) t_2 = b * (y * ((x * a) - (k * y4))) t_3 = i * (y1 * ((x * j) - (z * k))) tmp = 0 if y1 <= -4.2e+99: tmp = t_1 elif y1 <= -1.55e+60: tmp = t_3 elif y1 <= -1.35e+48: tmp = t_1 elif y1 <= -5.4e-48: tmp = t_2 elif y1 <= -3.15e-84: tmp = -i * ((x * y) * c) elif y1 <= 5.9e-28: tmp = t_2 elif y1 <= 2.9e+168: tmp = t * (y2 * ((a * y5) - (c * y4))) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y4 * Float64(k * Float64(y1 * y2))) t_2 = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) t_3 = Float64(i * Float64(y1 * Float64(Float64(x * j) - Float64(z * k)))) tmp = 0.0 if (y1 <= -4.2e+99) tmp = t_1; elseif (y1 <= -1.55e+60) tmp = t_3; elseif (y1 <= -1.35e+48) tmp = t_1; elseif (y1 <= -5.4e-48) tmp = t_2; elseif (y1 <= -3.15e-84) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); elseif (y1 <= 5.9e-28) tmp = t_2; elseif (y1 <= 2.9e+168) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y4 * (k * (y1 * y2)); t_2 = b * (y * ((x * a) - (k * y4))); t_3 = i * (y1 * ((x * j) - (z * k))); tmp = 0.0; if (y1 <= -4.2e+99) tmp = t_1; elseif (y1 <= -1.55e+60) tmp = t_3; elseif (y1 <= -1.35e+48) tmp = t_1; elseif (y1 <= -5.4e-48) tmp = t_2; elseif (y1 <= -3.15e-84) tmp = -i * ((x * y) * c); elseif (y1 <= 5.9e-28) tmp = t_2; elseif (y1 <= 2.9e+168) tmp = t * (y2 * ((a * y5) - (c * y4))); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(y1 * N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -4.2e+99], t$95$1, If[LessEqual[y1, -1.55e+60], t$95$3, If[LessEqual[y1, -1.35e+48], t$95$1, If[LessEqual[y1, -5.4e-48], t$95$2, If[LessEqual[y1, -3.15e-84], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 5.9e-28], t$95$2, If[LessEqual[y1, 2.9e+168], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
t_2 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
t_3 := i \cdot \left(y1 \cdot \left(x \cdot j - z \cdot k\right)\right)\\
\mathbf{if}\;y1 \leq -4.2 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -1.55 \cdot 10^{+60}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y1 \leq -1.35 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -5.4 \cdot 10^{-48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq -3.15 \cdot 10^{-84}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{elif}\;y1 \leq 5.9 \cdot 10^{-28}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{+168}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y1 < -4.2000000000000002e99 or -1.55e60 < y1 < -1.35000000000000002e48Initial program 19.2%
Taylor expanded in y1 around inf 43.2%
Taylor expanded in y2 around inf 41.5%
+-commutative41.5%
mul-1-neg41.5%
unsub-neg41.5%
Simplified41.5%
Taylor expanded in k around inf 36.3%
*-commutative36.3%
*-commutative36.3%
*-commutative36.3%
associate-*r*39.5%
*-commutative39.5%
associate-*r*44.0%
*-commutative44.0%
Simplified44.0%
if -4.2000000000000002e99 < y1 < -1.55e60 or 2.9e168 < y1 Initial program 25.5%
Taylor expanded in y1 around inf 65.3%
Taylor expanded in i around inf 56.4%
if -1.35000000000000002e48 < y1 < -5.40000000000000023e-48 or -3.1500000000000002e-84 < y1 < 5.9000000000000002e-28Initial program 33.6%
Taylor expanded in b around inf 40.7%
Taylor expanded in y around inf 38.9%
+-commutative38.9%
mul-1-neg38.9%
unsub-neg38.9%
Simplified38.9%
if -5.40000000000000023e-48 < y1 < -3.1500000000000002e-84Initial program 22.2%
Taylor expanded in i around -inf 66.7%
Taylor expanded in y around inf 88.9%
+-commutative88.9%
mul-1-neg88.9%
unsub-neg88.9%
Simplified88.9%
Taylor expanded in c around inf 78.5%
*-commutative78.5%
Simplified78.5%
if 5.9000000000000002e-28 < y1 < 2.9e168Initial program 32.6%
Taylor expanded in t around inf 41.4%
Taylor expanded in y2 around inf 52.2%
Final simplification46.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= x -3.4e+117)
t_1
(if (<= x -1.96e+52)
(* (- y1) (* y2 (* x a)))
(if (<= x -7900000000.0)
t_1
(if (<= x -4.5e-61)
(* t (* c (* y2 (- y4))))
(if (<= x 1.1e-253)
(* t (* b (* j y4)))
(if (<= x 1.5e-59)
(* y1 (* y2 (* k y4)))
(if (<= x 1.5e+19)
(* t (* y4 (* b j)))
(* (- i) (* (* x y) c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((x * y) * b);
double tmp;
if (x <= -3.4e+117) {
tmp = t_1;
} else if (x <= -1.96e+52) {
tmp = -y1 * (y2 * (x * a));
} else if (x <= -7900000000.0) {
tmp = t_1;
} else if (x <= -4.5e-61) {
tmp = t * (c * (y2 * -y4));
} else if (x <= 1.1e-253) {
tmp = t * (b * (j * y4));
} else if (x <= 1.5e-59) {
tmp = y1 * (y2 * (k * y4));
} else if (x <= 1.5e+19) {
tmp = t * (y4 * (b * j));
} else {
tmp = -i * ((x * y) * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((x * y) * b)
if (x <= (-3.4d+117)) then
tmp = t_1
else if (x <= (-1.96d+52)) then
tmp = -y1 * (y2 * (x * a))
else if (x <= (-7900000000.0d0)) then
tmp = t_1
else if (x <= (-4.5d-61)) then
tmp = t * (c * (y2 * -y4))
else if (x <= 1.1d-253) then
tmp = t * (b * (j * y4))
else if (x <= 1.5d-59) then
tmp = y1 * (y2 * (k * y4))
else if (x <= 1.5d+19) then
tmp = t * (y4 * (b * j))
else
tmp = -i * ((x * y) * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((x * y) * b);
double tmp;
if (x <= -3.4e+117) {
tmp = t_1;
} else if (x <= -1.96e+52) {
tmp = -y1 * (y2 * (x * a));
} else if (x <= -7900000000.0) {
tmp = t_1;
} else if (x <= -4.5e-61) {
tmp = t * (c * (y2 * -y4));
} else if (x <= 1.1e-253) {
tmp = t * (b * (j * y4));
} else if (x <= 1.5e-59) {
tmp = y1 * (y2 * (k * y4));
} else if (x <= 1.5e+19) {
tmp = t * (y4 * (b * j));
} else {
tmp = -i * ((x * y) * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((x * y) * b) tmp = 0 if x <= -3.4e+117: tmp = t_1 elif x <= -1.96e+52: tmp = -y1 * (y2 * (x * a)) elif x <= -7900000000.0: tmp = t_1 elif x <= -4.5e-61: tmp = t * (c * (y2 * -y4)) elif x <= 1.1e-253: tmp = t * (b * (j * y4)) elif x <= 1.5e-59: tmp = y1 * (y2 * (k * y4)) elif x <= 1.5e+19: tmp = t * (y4 * (b * j)) else: tmp = -i * ((x * y) * c) 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(Float64(x * y) * b)) tmp = 0.0 if (x <= -3.4e+117) tmp = t_1; elseif (x <= -1.96e+52) tmp = Float64(Float64(-y1) * Float64(y2 * Float64(x * a))); elseif (x <= -7900000000.0) tmp = t_1; elseif (x <= -4.5e-61) tmp = Float64(t * Float64(c * Float64(y2 * Float64(-y4)))); elseif (x <= 1.1e-253) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (x <= 1.5e-59) tmp = Float64(y1 * Float64(y2 * Float64(k * y4))); elseif (x <= 1.5e+19) tmp = Float64(t * Float64(y4 * Float64(b * j))); else tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * ((x * y) * b); tmp = 0.0; if (x <= -3.4e+117) tmp = t_1; elseif (x <= -1.96e+52) tmp = -y1 * (y2 * (x * a)); elseif (x <= -7900000000.0) tmp = t_1; elseif (x <= -4.5e-61) tmp = t * (c * (y2 * -y4)); elseif (x <= 1.1e-253) tmp = t * (b * (j * y4)); elseif (x <= 1.5e-59) tmp = y1 * (y2 * (k * y4)); elseif (x <= 1.5e+19) tmp = t * (y4 * (b * j)); else tmp = -i * ((x * y) * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4e+117], t$95$1, If[LessEqual[x, -1.96e+52], N[((-y1) * N[(y2 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7900000000.0], t$95$1, If[LessEqual[x, -4.5e-61], N[(t * N[(c * N[(y2 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e-253], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-59], N[(y1 * N[(y2 * N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e+19], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.96 \cdot 10^{+52}:\\
\;\;\;\;\left(-y1\right) \cdot \left(y2 \cdot \left(x \cdot a\right)\right)\\
\mathbf{elif}\;x \leq -7900000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-61}:\\
\;\;\;\;t \cdot \left(c \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-59}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\end{array}
\end{array}
if x < -3.4000000000000001e117 or -1.95999999999999993e52 < x < -7.9e9Initial program 23.0%
Taylor expanded in b around inf 36.9%
Taylor expanded in a around inf 43.5%
Taylor expanded in x around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -3.4000000000000001e117 < x < -1.95999999999999993e52Initial program 28.5%
Taylor expanded in y1 around inf 50.5%
Taylor expanded in y2 around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
Simplified50.4%
Taylor expanded in k around 0 43.4%
neg-mul-143.4%
distribute-rgt-neg-in43.4%
Simplified43.4%
if -7.9e9 < x < -4.5e-61Initial program 29.8%
Taylor expanded in t around inf 30.7%
Taylor expanded in y4 around inf 41.2%
Taylor expanded in b around 0 41.5%
associate-*r*41.5%
neg-mul-141.5%
*-commutative41.5%
Simplified41.5%
if -4.5e-61 < x < 1.09999999999999998e-253Initial program 33.5%
Taylor expanded in t around inf 54.9%
Taylor expanded in y4 around inf 33.6%
Taylor expanded in b around inf 31.3%
*-commutative31.3%
Simplified31.3%
if 1.09999999999999998e-253 < x < 1.5e-59Initial program 32.7%
Taylor expanded in y1 around inf 38.0%
Taylor expanded in y2 around inf 33.7%
+-commutative33.7%
mul-1-neg33.7%
unsub-neg33.7%
Simplified33.7%
Taylor expanded in k around inf 32.8%
*-commutative32.8%
Simplified32.8%
if 1.5e-59 < x < 1.5e19Initial program 42.0%
Taylor expanded in t around inf 52.8%
Taylor expanded in y4 around inf 53.4%
Taylor expanded in b around inf 48.4%
*-commutative48.4%
Simplified48.4%
if 1.5e19 < x Initial program 24.6%
Taylor expanded in i around -inf 44.5%
Taylor expanded in y around inf 40.1%
+-commutative40.1%
mul-1-neg40.1%
unsub-neg40.1%
Simplified40.1%
Taylor expanded in c around inf 38.5%
*-commutative38.5%
Simplified38.5%
Final simplification38.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= x -1.5e+119)
t_1
(if (<= x -1.96e+52)
(* (- y1) (* y2 (* x a)))
(if (<= x -5.7e+19)
t_1
(if (<= x -5.9e-61)
(* t (* c (* y2 (- y4))))
(if (<= x 3.6e-253)
(* t (* b (* j y4)))
(if (<= x 1.4e-58)
(* y1 (* y2 (* k y4)))
(if (<= x 8.2e+21)
(* t (* y4 (* b j)))
(* c (* (* y i) (- x))))))))))))
double code(double x, double y, double z, double t, double 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 * ((x * y) * b);
double tmp;
if (x <= -1.5e+119) {
tmp = t_1;
} else if (x <= -1.96e+52) {
tmp = -y1 * (y2 * (x * a));
} else if (x <= -5.7e+19) {
tmp = t_1;
} else if (x <= -5.9e-61) {
tmp = t * (c * (y2 * -y4));
} else if (x <= 3.6e-253) {
tmp = t * (b * (j * y4));
} else if (x <= 1.4e-58) {
tmp = y1 * (y2 * (k * y4));
} else if (x <= 8.2e+21) {
tmp = t * (y4 * (b * j));
} else {
tmp = c * ((y * i) * -x);
}
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 * ((x * y) * b)
if (x <= (-1.5d+119)) then
tmp = t_1
else if (x <= (-1.96d+52)) then
tmp = -y1 * (y2 * (x * a))
else if (x <= (-5.7d+19)) then
tmp = t_1
else if (x <= (-5.9d-61)) then
tmp = t * (c * (y2 * -y4))
else if (x <= 3.6d-253) then
tmp = t * (b * (j * y4))
else if (x <= 1.4d-58) then
tmp = y1 * (y2 * (k * y4))
else if (x <= 8.2d+21) then
tmp = t * (y4 * (b * j))
else
tmp = c * ((y * i) * -x)
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 * ((x * y) * b);
double tmp;
if (x <= -1.5e+119) {
tmp = t_1;
} else if (x <= -1.96e+52) {
tmp = -y1 * (y2 * (x * a));
} else if (x <= -5.7e+19) {
tmp = t_1;
} else if (x <= -5.9e-61) {
tmp = t * (c * (y2 * -y4));
} else if (x <= 3.6e-253) {
tmp = t * (b * (j * y4));
} else if (x <= 1.4e-58) {
tmp = y1 * (y2 * (k * y4));
} else if (x <= 8.2e+21) {
tmp = t * (y4 * (b * j));
} else {
tmp = c * ((y * i) * -x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * ((x * y) * b) tmp = 0 if x <= -1.5e+119: tmp = t_1 elif x <= -1.96e+52: tmp = -y1 * (y2 * (x * a)) elif x <= -5.7e+19: tmp = t_1 elif x <= -5.9e-61: tmp = t * (c * (y2 * -y4)) elif x <= 3.6e-253: tmp = t * (b * (j * y4)) elif x <= 1.4e-58: tmp = y1 * (y2 * (k * y4)) elif x <= 8.2e+21: tmp = t * (y4 * (b * j)) else: tmp = c * ((y * i) * -x) 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(Float64(x * y) * b)) tmp = 0.0 if (x <= -1.5e+119) tmp = t_1; elseif (x <= -1.96e+52) tmp = Float64(Float64(-y1) * Float64(y2 * Float64(x * a))); elseif (x <= -5.7e+19) tmp = t_1; elseif (x <= -5.9e-61) tmp = Float64(t * Float64(c * Float64(y2 * Float64(-y4)))); elseif (x <= 3.6e-253) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (x <= 1.4e-58) tmp = Float64(y1 * Float64(y2 * Float64(k * y4))); elseif (x <= 8.2e+21) tmp = Float64(t * Float64(y4 * Float64(b * j))); else tmp = Float64(c * Float64(Float64(y * i) * Float64(-x))); 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 * ((x * y) * b); tmp = 0.0; if (x <= -1.5e+119) tmp = t_1; elseif (x <= -1.96e+52) tmp = -y1 * (y2 * (x * a)); elseif (x <= -5.7e+19) tmp = t_1; elseif (x <= -5.9e-61) tmp = t * (c * (y2 * -y4)); elseif (x <= 3.6e-253) tmp = t * (b * (j * y4)); elseif (x <= 1.4e-58) tmp = y1 * (y2 * (k * y4)); elseif (x <= 8.2e+21) tmp = t * (y4 * (b * j)); else tmp = c * ((y * i) * -x); 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[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+119], t$95$1, If[LessEqual[x, -1.96e+52], N[((-y1) * N[(y2 * N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.7e+19], t$95$1, If[LessEqual[x, -5.9e-61], N[(t * N[(c * N[(y2 * (-y4)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e-253], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e-58], N[(y1 * N[(y2 * N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e+21], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(y * i), $MachinePrecision] * (-x)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.96 \cdot 10^{+52}:\\
\;\;\;\;\left(-y1\right) \cdot \left(y2 \cdot \left(x \cdot a\right)\right)\\
\mathbf{elif}\;x \leq -5.7 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.9 \cdot 10^{-61}:\\
\;\;\;\;t \cdot \left(c \cdot \left(y2 \cdot \left(-y4\right)\right)\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-58}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+21}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(y \cdot i\right) \cdot \left(-x\right)\right)\\
\end{array}
\end{array}
if x < -1.50000000000000001e119 or -1.95999999999999993e52 < x < -5.7e19Initial program 23.0%
Taylor expanded in b around inf 36.9%
Taylor expanded in a around inf 43.5%
Taylor expanded in x around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -1.50000000000000001e119 < x < -1.95999999999999993e52Initial program 28.5%
Taylor expanded in y1 around inf 50.5%
Taylor expanded in y2 around inf 50.4%
+-commutative50.4%
mul-1-neg50.4%
unsub-neg50.4%
Simplified50.4%
Taylor expanded in k around 0 43.4%
neg-mul-143.4%
distribute-rgt-neg-in43.4%
Simplified43.4%
if -5.7e19 < x < -5.89999999999999972e-61Initial program 29.8%
Taylor expanded in t around inf 30.7%
Taylor expanded in y4 around inf 41.2%
Taylor expanded in b around 0 41.5%
associate-*r*41.5%
neg-mul-141.5%
*-commutative41.5%
Simplified41.5%
if -5.89999999999999972e-61 < x < 3.6e-253Initial program 33.5%
Taylor expanded in t around inf 54.9%
Taylor expanded in y4 around inf 33.6%
Taylor expanded in b around inf 31.3%
*-commutative31.3%
Simplified31.3%
if 3.6e-253 < x < 1.4e-58Initial program 32.7%
Taylor expanded in y1 around inf 38.0%
Taylor expanded in y2 around inf 33.7%
+-commutative33.7%
mul-1-neg33.7%
unsub-neg33.7%
Simplified33.7%
Taylor expanded in k around inf 32.8%
*-commutative32.8%
Simplified32.8%
if 1.4e-58 < x < 8.2e21Initial program 42.0%
Taylor expanded in t around inf 52.8%
Taylor expanded in y4 around inf 53.4%
Taylor expanded in b around inf 48.4%
*-commutative48.4%
Simplified48.4%
if 8.2e21 < x Initial program 24.6%
Taylor expanded in i around -inf 44.5%
Taylor expanded in y around inf 40.1%
+-commutative40.1%
mul-1-neg40.1%
unsub-neg40.1%
Simplified40.1%
Taylor expanded in c around inf 35.5%
*-commutative35.5%
associate-*r*32.4%
*-commutative32.4%
Simplified32.4%
Final simplification37.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y (* k y5)))))
(if (<= k -1.15e+203)
t_1
(if (<= k -1.15e+165)
(* y1 (* y4 (* k y2)))
(if (<= k -8e-53)
t_1
(if (<= k -4e-275)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= k 8.4e-123)
(* a (* b (- (* x y) (* z t))))
(if (<= k 1.25e-13)
(* b (* j (- (* t y4) (* x y0))))
(* b (* y (- (* x a) (* k y4))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y * (k * y5));
double tmp;
if (k <= -1.15e+203) {
tmp = t_1;
} else if (k <= -1.15e+165) {
tmp = y1 * (y4 * (k * y2));
} else if (k <= -8e-53) {
tmp = t_1;
} else if (k <= -4e-275) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (k <= 8.4e-123) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (k <= 1.25e-13) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y * ((x * a) - (k * y4)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * (k * y5))
if (k <= (-1.15d+203)) then
tmp = t_1
else if (k <= (-1.15d+165)) then
tmp = y1 * (y4 * (k * y2))
else if (k <= (-8d-53)) then
tmp = t_1
else if (k <= (-4d-275)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (k <= 8.4d-123) then
tmp = a * (b * ((x * y) - (z * t)))
else if (k <= 1.25d-13) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = b * (y * ((x * a) - (k * y4)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y * (k * y5));
double tmp;
if (k <= -1.15e+203) {
tmp = t_1;
} else if (k <= -1.15e+165) {
tmp = y1 * (y4 * (k * y2));
} else if (k <= -8e-53) {
tmp = t_1;
} else if (k <= -4e-275) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (k <= 8.4e-123) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (k <= 1.25e-13) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y * ((x * a) - (k * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y * (k * y5)) tmp = 0 if k <= -1.15e+203: tmp = t_1 elif k <= -1.15e+165: tmp = y1 * (y4 * (k * y2)) elif k <= -8e-53: tmp = t_1 elif k <= -4e-275: tmp = c * (t * ((z * i) - (y2 * y4))) elif k <= 8.4e-123: tmp = a * (b * ((x * y) - (z * t))) elif k <= 1.25e-13: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = b * (y * ((x * a) - (k * y4))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y * Float64(k * y5))) tmp = 0.0 if (k <= -1.15e+203) tmp = t_1; elseif (k <= -1.15e+165) tmp = Float64(y1 * Float64(y4 * Float64(k * y2))); elseif (k <= -8e-53) tmp = t_1; elseif (k <= -4e-275) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (k <= 8.4e-123) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (k <= 1.25e-13) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (y * (k * y5)); tmp = 0.0; if (k <= -1.15e+203) tmp = t_1; elseif (k <= -1.15e+165) tmp = y1 * (y4 * (k * y2)); elseif (k <= -8e-53) tmp = t_1; elseif (k <= -4e-275) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (k <= 8.4e-123) tmp = a * (b * ((x * y) - (z * t))); elseif (k <= 1.25e-13) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = b * (y * ((x * a) - (k * y4))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.15e+203], t$95$1, If[LessEqual[k, -1.15e+165], N[(y1 * N[(y4 * N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -8e-53], t$95$1, If[LessEqual[k, -4e-275], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.4e-123], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e-13], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -1.15 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -1.15 \cdot 10^{+165}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2\right)\right)\\
\mathbf{elif}\;k \leq -8 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -4 \cdot 10^{-275}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 8.4 \cdot 10^{-123}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{-13}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\end{array}
\end{array}
if k < -1.15e203 or -1.15000000000000008e165 < k < -8.00000000000000025e-53Initial program 35.8%
Taylor expanded in i around -inf 42.3%
Taylor expanded in y around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
Simplified46.5%
Taylor expanded in c around 0 39.8%
neg-mul-139.8%
distribute-rgt-neg-in39.8%
Simplified39.8%
if -1.15e203 < k < -1.15000000000000008e165Initial program 25.0%
Taylor expanded in y1 around inf 41.8%
Taylor expanded in y2 around inf 59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
Taylor expanded in k around inf 42.8%
*-commutative42.8%
associate-*r*42.8%
*-commutative42.8%
associate-*r*50.8%
Simplified50.8%
if -8.00000000000000025e-53 < k < -3.99999999999999974e-275Initial program 11.8%
Taylor expanded in t around inf 32.7%
Taylor expanded in c around inf 49.4%
if -3.99999999999999974e-275 < k < 8.3999999999999997e-123Initial program 43.5%
Taylor expanded in b around inf 40.1%
Taylor expanded in a around inf 35.9%
if 8.3999999999999997e-123 < k < 1.24999999999999997e-13Initial program 18.7%
Taylor expanded in b around inf 41.2%
Taylor expanded in j around inf 63.9%
if 1.24999999999999997e-13 < k Initial program 26.8%
Taylor expanded in b around inf 31.0%
Taylor expanded in y around inf 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
Simplified40.0%
Final simplification43.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y4 -4.2e-5)
t_1
(if (<= y4 -2.45e-247)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 2.2e-308)
(* c (* (* y i) (- x)))
(if (<= y4 1e-246)
t_1
(if (<= y4 1.8e-101)
(* i (* y (* k y5)))
(if (<= y4 6.5e+61)
(* b (* j (- (* t y4) (* x y0))))
(* b (* y4 (- (* t j) (* y 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -4.2e-5) {
tmp = t_1;
} else if (y4 <= -2.45e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.2e-308) {
tmp = c * ((y * i) * -x);
} else if (y4 <= 1e-246) {
tmp = t_1;
} else if (y4 <= 1.8e-101) {
tmp = i * (y * (k * y5));
} else if (y4 <= 6.5e+61) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y4 * ((t * j) - (y * k)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y * ((x * a) - (k * y4)))
if (y4 <= (-4.2d-5)) then
tmp = t_1
else if (y4 <= (-2.45d-247)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 2.2d-308) then
tmp = c * ((y * i) * -x)
else if (y4 <= 1d-246) then
tmp = t_1
else if (y4 <= 1.8d-101) then
tmp = i * (y * (k * y5))
else if (y4 <= 6.5d+61) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = b * (y4 * ((t * j) - (y * k)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -4.2e-5) {
tmp = t_1;
} else if (y4 <= -2.45e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 2.2e-308) {
tmp = c * ((y * i) * -x);
} else if (y4 <= 1e-246) {
tmp = t_1;
} else if (y4 <= 1.8e-101) {
tmp = i * (y * (k * y5));
} else if (y4 <= 6.5e+61) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = b * (y4 * ((t * j) - (y * k)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y4 <= -4.2e-5: tmp = t_1 elif y4 <= -2.45e-247: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 2.2e-308: tmp = c * ((y * i) * -x) elif y4 <= 1e-246: tmp = t_1 elif y4 <= 1.8e-101: tmp = i * (y * (k * y5)) elif y4 <= 6.5e+61: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = b * (y4 * ((t * j) - (y * k))) 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(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y4 <= -4.2e-5) tmp = t_1; elseif (y4 <= -2.45e-247) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 2.2e-308) tmp = Float64(c * Float64(Float64(y * i) * Float64(-x))); elseif (y4 <= 1e-246) tmp = t_1; elseif (y4 <= 1.8e-101) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (y4 <= 6.5e+61) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * 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 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y4 <= -4.2e-5) tmp = t_1; elseif (y4 <= -2.45e-247) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 2.2e-308) tmp = c * ((y * i) * -x); elseif (y4 <= 1e-246) tmp = t_1; elseif (y4 <= 1.8e-101) tmp = i * (y * (k * y5)); elseif (y4 <= 6.5e+61) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = b * (y4 * ((t * j) - (y * 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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.2e-5], t$95$1, If[LessEqual[y4, -2.45e-247], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.2e-308], N[(c * N[(N[(y * i), $MachinePrecision] * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1e-246], t$95$1, If[LessEqual[y4, 1.8e-101], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 6.5e+61], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -4.2 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -2.45 \cdot 10^{-247}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 2.2 \cdot 10^{-308}:\\
\;\;\;\;c \cdot \left(\left(y \cdot i\right) \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y4 \leq 10^{-246}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{-101}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;y4 \leq 6.5 \cdot 10^{+61}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\end{array}
\end{array}
if y4 < -4.19999999999999977e-5 or 2.2000000000000002e-308 < y4 < 9.99999999999999956e-247Initial program 30.5%
Taylor expanded in b around inf 45.9%
Taylor expanded in y around inf 44.9%
+-commutative44.9%
mul-1-neg44.9%
unsub-neg44.9%
Simplified44.9%
if -4.19999999999999977e-5 < y4 < -2.45e-247Initial program 27.3%
Taylor expanded in b around inf 35.2%
Taylor expanded in a around inf 39.3%
if -2.45e-247 < y4 < 2.2000000000000002e-308Initial program 63.6%
Taylor expanded in i around -inf 82.1%
Taylor expanded in y around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
Taylor expanded in c around inf 47.4%
*-commutative47.4%
associate-*r*55.6%
*-commutative55.6%
Simplified55.6%
if 9.99999999999999956e-247 < y4 < 1.8e-101Initial program 36.2%
Taylor expanded in i around -inf 55.0%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around 0 42.1%
neg-mul-142.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if 1.8e-101 < y4 < 6.4999999999999996e61Initial program 21.9%
Taylor expanded in b around inf 28.9%
Taylor expanded in j around inf 35.1%
if 6.4999999999999996e61 < y4 Initial program 23.4%
Taylor expanded in b around inf 40.8%
Taylor expanded in y4 around inf 52.2%
Final simplification44.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y -1.3e+272)
t_1
(if (<= y -3.4e+242)
(* c (* t (- (* z i) (* y2 y4))))
(if (<= y -1.26e+228)
(* c (* (* y i) (- x)))
(if (<= y -1400000000000.0)
(* b (* y4 (- (* t j) (* y k))))
(if (<= y 2.15e-203) (* i (* t (- (* z c) (* j y5)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y <= -1.3e+272) {
tmp = t_1;
} else if (y <= -3.4e+242) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -1.26e+228) {
tmp = c * ((y * i) * -x);
} else if (y <= -1400000000000.0) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= 2.15e-203) {
tmp = i * (t * ((z * c) - (j * y5)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y * ((x * a) - (k * y4)))
if (y <= (-1.3d+272)) then
tmp = t_1
else if (y <= (-3.4d+242)) then
tmp = c * (t * ((z * i) - (y2 * y4)))
else if (y <= (-1.26d+228)) then
tmp = c * ((y * i) * -x)
else if (y <= (-1400000000000.0d0)) then
tmp = b * (y4 * ((t * j) - (y * k)))
else if (y <= 2.15d-203) then
tmp = i * (t * ((z * c) - (j * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y <= -1.3e+272) {
tmp = t_1;
} else if (y <= -3.4e+242) {
tmp = c * (t * ((z * i) - (y2 * y4)));
} else if (y <= -1.26e+228) {
tmp = c * ((y * i) * -x);
} else if (y <= -1400000000000.0) {
tmp = b * (y4 * ((t * j) - (y * k)));
} else if (y <= 2.15e-203) {
tmp = i * (t * ((z * c) - (j * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y <= -1.3e+272: tmp = t_1 elif y <= -3.4e+242: tmp = c * (t * ((z * i) - (y2 * y4))) elif y <= -1.26e+228: tmp = c * ((y * i) * -x) elif y <= -1400000000000.0: tmp = b * (y4 * ((t * j) - (y * k))) elif y <= 2.15e-203: tmp = i * (t * ((z * c) - (j * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y <= -1.3e+272) tmp = t_1; elseif (y <= -3.4e+242) tmp = Float64(c * Float64(t * Float64(Float64(z * i) - Float64(y2 * y4)))); elseif (y <= -1.26e+228) tmp = Float64(c * Float64(Float64(y * i) * Float64(-x))); elseif (y <= -1400000000000.0) tmp = Float64(b * Float64(y4 * Float64(Float64(t * j) - Float64(y * k)))); elseif (y <= 2.15e-203) tmp = Float64(i * Float64(t * Float64(Float64(z * c) - Float64(j * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y <= -1.3e+272) tmp = t_1; elseif (y <= -3.4e+242) tmp = c * (t * ((z * i) - (y2 * y4))); elseif (y <= -1.26e+228) tmp = c * ((y * i) * -x); elseif (y <= -1400000000000.0) tmp = b * (y4 * ((t * j) - (y * k))); elseif (y <= 2.15e-203) tmp = i * (t * ((z * c) - (j * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.3e+272], t$95$1, If[LessEqual[y, -3.4e+242], N[(c * N[(t * N[(N[(z * i), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.26e+228], N[(c * N[(N[(y * i), $MachinePrecision] * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1400000000000.0], N[(b * N[(y4 * N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e-203], N[(i * N[(t * N[(N[(z * c), $MachinePrecision] - N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{+242}:\\
\;\;\;\;c \cdot \left(t \cdot \left(z \cdot i - y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq -1.26 \cdot 10^{+228}:\\
\;\;\;\;c \cdot \left(\left(y \cdot i\right) \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y \leq -1400000000000:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(t \cdot j - y \cdot k\right)\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-203}:\\
\;\;\;\;i \cdot \left(t \cdot \left(z \cdot c - j \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.3e272 or 2.15000000000000014e-203 < y Initial program 29.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in y around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
Simplified40.2%
if -1.3e272 < y < -3.39999999999999982e242Initial program 22.2%
Taylor expanded in t around inf 66.7%
Taylor expanded in c around inf 66.8%
if -3.39999999999999982e242 < y < -1.26e228Initial program 14.3%
Taylor expanded in i around -inf 28.7%
Taylor expanded in y around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
Simplified57.5%
Taylor expanded in c around inf 57.8%
*-commutative57.8%
associate-*r*57.8%
*-commutative57.8%
Simplified57.8%
if -1.26e228 < y < -1.4e12Initial program 35.3%
Taylor expanded in b around inf 48.5%
Taylor expanded in y4 around inf 50.5%
if -1.4e12 < y < 2.15000000000000014e-203Initial program 28.3%
Taylor expanded in t around inf 29.2%
Taylor expanded in i around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
Simplified40.2%
Final simplification43.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y (- (* x a) (* k y4))))))
(if (<= y4 -1.5e-5)
t_1
(if (<= y4 -4e-247)
(* a (* b (- (* x y) (* z t))))
(if (<= y4 5.2e-306)
(* c (* (* y i) (- x)))
(if (<= y4 2e-248)
t_1
(if (<= y4 7.8e-100)
(* i (* y (* k y5)))
(* 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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -1.5e-5) {
tmp = t_1;
} else if (y4 <= -4e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 5.2e-306) {
tmp = c * ((y * i) * -x);
} else if (y4 <= 2e-248) {
tmp = t_1;
} else if (y4 <= 7.8e-100) {
tmp = i * (y * (k * y5));
} 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) :: tmp
t_1 = b * (y * ((x * a) - (k * y4)))
if (y4 <= (-1.5d-5)) then
tmp = t_1
else if (y4 <= (-4d-247)) then
tmp = a * (b * ((x * y) - (z * t)))
else if (y4 <= 5.2d-306) then
tmp = c * ((y * i) * -x)
else if (y4 <= 2d-248) then
tmp = t_1
else if (y4 <= 7.8d-100) then
tmp = i * (y * (k * y5))
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 = b * (y * ((x * a) - (k * y4)));
double tmp;
if (y4 <= -1.5e-5) {
tmp = t_1;
} else if (y4 <= -4e-247) {
tmp = a * (b * ((x * y) - (z * t)));
} else if (y4 <= 5.2e-306) {
tmp = c * ((y * i) * -x);
} else if (y4 <= 2e-248) {
tmp = t_1;
} else if (y4 <= 7.8e-100) {
tmp = i * (y * (k * y5));
} 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 = b * (y * ((x * a) - (k * y4))) tmp = 0 if y4 <= -1.5e-5: tmp = t_1 elif y4 <= -4e-247: tmp = a * (b * ((x * y) - (z * t))) elif y4 <= 5.2e-306: tmp = c * ((y * i) * -x) elif y4 <= 2e-248: tmp = t_1 elif y4 <= 7.8e-100: tmp = i * (y * (k * y5)) 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(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))) tmp = 0.0 if (y4 <= -1.5e-5) tmp = t_1; elseif (y4 <= -4e-247) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(z * t)))); elseif (y4 <= 5.2e-306) tmp = Float64(c * Float64(Float64(y * i) * Float64(-x))); elseif (y4 <= 2e-248) tmp = t_1; elseif (y4 <= 7.8e-100) tmp = Float64(i * Float64(y * Float64(k * y5))); 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 = b * (y * ((x * a) - (k * y4))); tmp = 0.0; if (y4 <= -1.5e-5) tmp = t_1; elseif (y4 <= -4e-247) tmp = a * (b * ((x * y) - (z * t))); elseif (y4 <= 5.2e-306) tmp = c * ((y * i) * -x); elseif (y4 <= 2e-248) tmp = t_1; elseif (y4 <= 7.8e-100) tmp = i * (y * (k * y5)); 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[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.5e-5], t$95$1, If[LessEqual[y4, -4e-247], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.2e-306], N[(c * N[(N[(y * i), $MachinePrecision] * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2e-248], t$95$1, If[LessEqual[y4, 7.8e-100], N[(i * N[(y * N[(k * y5), $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 := b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -1.5 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -4 \cdot 10^{-247}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - z \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 5.2 \cdot 10^{-306}:\\
\;\;\;\;c \cdot \left(\left(y \cdot i\right) \cdot \left(-x\right)\right)\\
\mathbf{elif}\;y4 \leq 2 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 7.8 \cdot 10^{-100}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\end{array}
\end{array}
if y4 < -1.50000000000000004e-5 or 5.2000000000000001e-306 < y4 < 1.99999999999999996e-248Initial program 30.5%
Taylor expanded in b around inf 45.9%
Taylor expanded in y around inf 44.9%
+-commutative44.9%
mul-1-neg44.9%
unsub-neg44.9%
Simplified44.9%
if -1.50000000000000004e-5 < y4 < -4.0000000000000001e-247Initial program 27.3%
Taylor expanded in b around inf 35.2%
Taylor expanded in a around inf 39.3%
if -4.0000000000000001e-247 < y4 < 5.2000000000000001e-306Initial program 63.6%
Taylor expanded in i around -inf 82.1%
Taylor expanded in y around inf 56.4%
+-commutative56.4%
mul-1-neg56.4%
unsub-neg56.4%
Simplified56.4%
Taylor expanded in c around inf 47.4%
*-commutative47.4%
associate-*r*55.6%
*-commutative55.6%
Simplified55.6%
if 1.99999999999999996e-248 < y4 < 7.79999999999999955e-100Initial program 36.2%
Taylor expanded in i around -inf 55.0%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in c around 0 42.1%
neg-mul-142.1%
distribute-rgt-neg-in42.1%
Simplified42.1%
if 7.79999999999999955e-100 < y4 Initial program 22.8%
Taylor expanded in b around inf 36.0%
Taylor expanded in j around inf 37.5%
Final simplification41.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -3.9e+158)
(* t (* y4 (* b j)))
(if (<= j -1.0)
(* y4 (* k (* y1 y2)))
(if (<= j -2.25e-128)
(* c (* (* y i) (- x)))
(if (<= j 9.5e-121)
(* i (* y (* k y5)))
(if (<= j 5e+149) (* (- i) (* (* x y) c)) (* t (* b (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -3.9e+158) {
tmp = t * (y4 * (b * j));
} else if (j <= -1.0) {
tmp = y4 * (k * (y1 * y2));
} else if (j <= -2.25e-128) {
tmp = c * ((y * i) * -x);
} else if (j <= 9.5e-121) {
tmp = i * (y * (k * y5));
} else if (j <= 5e+149) {
tmp = -i * ((x * y) * c);
} else {
tmp = t * (b * (j * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (j <= (-3.9d+158)) then
tmp = t * (y4 * (b * j))
else if (j <= (-1.0d0)) then
tmp = y4 * (k * (y1 * y2))
else if (j <= (-2.25d-128)) then
tmp = c * ((y * i) * -x)
else if (j <= 9.5d-121) then
tmp = i * (y * (k * y5))
else if (j <= 5d+149) then
tmp = -i * ((x * y) * c)
else
tmp = t * (b * (j * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -3.9e+158) {
tmp = t * (y4 * (b * j));
} else if (j <= -1.0) {
tmp = y4 * (k * (y1 * y2));
} else if (j <= -2.25e-128) {
tmp = c * ((y * i) * -x);
} else if (j <= 9.5e-121) {
tmp = i * (y * (k * y5));
} else if (j <= 5e+149) {
tmp = -i * ((x * y) * c);
} else {
tmp = t * (b * (j * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -3.9e+158: tmp = t * (y4 * (b * j)) elif j <= -1.0: tmp = y4 * (k * (y1 * y2)) elif j <= -2.25e-128: tmp = c * ((y * i) * -x) elif j <= 9.5e-121: tmp = i * (y * (k * y5)) elif j <= 5e+149: tmp = -i * ((x * y) * c) else: tmp = t * (b * (j * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -3.9e+158) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (j <= -1.0) tmp = Float64(y4 * Float64(k * Float64(y1 * y2))); elseif (j <= -2.25e-128) tmp = Float64(c * Float64(Float64(y * i) * Float64(-x))); elseif (j <= 9.5e-121) tmp = Float64(i * Float64(y * Float64(k * y5))); elseif (j <= 5e+149) tmp = Float64(Float64(-i) * Float64(Float64(x * y) * c)); else tmp = Float64(t * Float64(b * Float64(j * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -3.9e+158) tmp = t * (y4 * (b * j)); elseif (j <= -1.0) tmp = y4 * (k * (y1 * y2)); elseif (j <= -2.25e-128) tmp = c * ((y * i) * -x); elseif (j <= 9.5e-121) tmp = i * (y * (k * y5)); elseif (j <= 5e+149) tmp = -i * ((x * y) * c); else tmp = t * (b * (j * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -3.9e+158], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.0], N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.25e-128], N[(c * N[(N[(y * i), $MachinePrecision] * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e-121], N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e+149], N[((-i) * N[(N[(x * y), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.9 \cdot 10^{+158}:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;j \leq -1:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{elif}\;j \leq -2.25 \cdot 10^{-128}:\\
\;\;\;\;c \cdot \left(\left(y \cdot i\right) \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{-121}:\\
\;\;\;\;i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{+149}:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(x \cdot y\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\end{array}
\end{array}
if j < -3.9e158Initial program 22.7%
Taylor expanded in t around inf 35.5%
Taylor expanded in y4 around inf 40.7%
Taylor expanded in b around inf 33.4%
*-commutative33.4%
Simplified33.4%
if -3.9e158 < j < -1Initial program 28.3%
Taylor expanded in y1 around inf 38.3%
Taylor expanded in y2 around inf 32.8%
+-commutative32.8%
mul-1-neg32.8%
unsub-neg32.8%
Simplified32.8%
Taylor expanded in k around inf 30.0%
*-commutative30.0%
*-commutative30.0%
*-commutative30.0%
associate-*r*39.1%
*-commutative39.1%
associate-*r*36.1%
*-commutative36.1%
Simplified36.1%
if -1 < j < -2.25e-128Initial program 31.5%
Taylor expanded in i around -inf 58.5%
Taylor expanded in y around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around inf 28.3%
*-commutative28.3%
associate-*r*38.4%
*-commutative38.4%
Simplified38.4%
if -2.25e-128 < j < 9.4999999999999994e-121Initial program 39.3%
Taylor expanded in i around -inf 43.8%
Taylor expanded in y around inf 40.2%
+-commutative40.2%
mul-1-neg40.2%
unsub-neg40.2%
Simplified40.2%
Taylor expanded in c around 0 36.8%
neg-mul-136.8%
distribute-rgt-neg-in36.8%
Simplified36.8%
if 9.4999999999999994e-121 < j < 4.9999999999999999e149Initial program 21.1%
Taylor expanded in i around -inf 40.6%
Taylor expanded in y around inf 37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in c around inf 33.6%
*-commutative33.6%
Simplified33.6%
if 4.9999999999999999e149 < j Initial program 24.0%
Taylor expanded in t around inf 38.4%
Taylor expanded in y4 around inf 59.3%
Taylor expanded in b around inf 55.9%
*-commutative55.9%
Simplified55.9%
Final simplification37.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (- t) (* y4 (* c y2)))))
(if (<= y2 -3.15e+46)
t_1
(if (<= y2 9e-287)
(* a (* (* x y) b))
(if (<= y2 3.5e-206)
(* c (* i (* z t)))
(if (<= y2 1.65e-16)
(* x (* a (* y b)))
(if (<= y2 2.1e+80) t_1 (* y4 (* k (* y1 y2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -t * (y4 * (c * y2));
double tmp;
if (y2 <= -3.15e+46) {
tmp = t_1;
} else if (y2 <= 9e-287) {
tmp = a * ((x * y) * b);
} else if (y2 <= 3.5e-206) {
tmp = c * (i * (z * t));
} else if (y2 <= 1.65e-16) {
tmp = x * (a * (y * b));
} else if (y2 <= 2.1e+80) {
tmp = t_1;
} else {
tmp = y4 * (k * (y1 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = -t * (y4 * (c * y2))
if (y2 <= (-3.15d+46)) then
tmp = t_1
else if (y2 <= 9d-287) then
tmp = a * ((x * y) * b)
else if (y2 <= 3.5d-206) then
tmp = c * (i * (z * t))
else if (y2 <= 1.65d-16) then
tmp = x * (a * (y * b))
else if (y2 <= 2.1d+80) then
tmp = t_1
else
tmp = y4 * (k * (y1 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -t * (y4 * (c * y2));
double tmp;
if (y2 <= -3.15e+46) {
tmp = t_1;
} else if (y2 <= 9e-287) {
tmp = a * ((x * y) * b);
} else if (y2 <= 3.5e-206) {
tmp = c * (i * (z * t));
} else if (y2 <= 1.65e-16) {
tmp = x * (a * (y * b));
} else if (y2 <= 2.1e+80) {
tmp = t_1;
} else {
tmp = y4 * (k * (y1 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = -t * (y4 * (c * y2)) tmp = 0 if y2 <= -3.15e+46: tmp = t_1 elif y2 <= 9e-287: tmp = a * ((x * y) * b) elif y2 <= 3.5e-206: tmp = c * (i * (z * t)) elif y2 <= 1.65e-16: tmp = x * (a * (y * b)) elif y2 <= 2.1e+80: tmp = t_1 else: tmp = y4 * (k * (y1 * 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(-t) * Float64(y4 * Float64(c * y2))) tmp = 0.0 if (y2 <= -3.15e+46) tmp = t_1; elseif (y2 <= 9e-287) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (y2 <= 3.5e-206) tmp = Float64(c * Float64(i * Float64(z * t))); elseif (y2 <= 1.65e-16) tmp = Float64(x * Float64(a * Float64(y * b))); elseif (y2 <= 2.1e+80) tmp = t_1; else tmp = Float64(y4 * Float64(k * Float64(y1 * 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 = -t * (y4 * (c * y2)); tmp = 0.0; if (y2 <= -3.15e+46) tmp = t_1; elseif (y2 <= 9e-287) tmp = a * ((x * y) * b); elseif (y2 <= 3.5e-206) tmp = c * (i * (z * t)); elseif (y2 <= 1.65e-16) tmp = x * (a * (y * b)); elseif (y2 <= 2.1e+80) tmp = t_1; else tmp = y4 * (k * (y1 * 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[((-t) * N[(y4 * N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.15e+46], t$95$1, If[LessEqual[y2, 9e-287], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e-206], N[(c * N[(i * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.65e-16], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.1e+80], t$95$1, N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-t\right) \cdot \left(y4 \cdot \left(c \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -3.15 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 9 \cdot 10^{-287}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{-206}:\\
\;\;\;\;c \cdot \left(i \cdot \left(z \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 1.65 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -3.15e46 or 1.64999999999999994e-16 < y2 < 2.10000000000000001e80Initial program 26.1%
Taylor expanded in t around inf 37.4%
Taylor expanded in y4 around inf 41.7%
Taylor expanded in b around 0 39.4%
mul-1-neg39.4%
distribute-lft-neg-out39.4%
*-commutative39.4%
Simplified39.4%
if -3.15e46 < y2 < 9.00000000000000034e-287Initial program 37.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in a around inf 29.3%
Taylor expanded in x around inf 23.8%
*-commutative23.8%
Simplified23.8%
if 9.00000000000000034e-287 < y2 < 3.49999999999999989e-206Initial program 15.4%
Taylor expanded in t around inf 38.5%
Taylor expanded in z around inf 24.2%
mul-1-neg24.2%
Simplified24.2%
Taylor expanded in a around 0 39.6%
associate-*r*39.6%
neg-mul-139.6%
*-commutative39.6%
Simplified39.6%
if 3.49999999999999989e-206 < y2 < 1.64999999999999994e-16Initial program 22.9%
Taylor expanded in b around inf 43.3%
Taylor expanded in a around inf 29.7%
Taylor expanded in x around inf 24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in a around 0 24.0%
*-commutative24.0%
associate-*r*24.0%
associate-*r*26.7%
Simplified26.7%
if 2.10000000000000001e80 < y2 Initial program 28.9%
Taylor expanded in y1 around inf 34.5%
Taylor expanded in y2 around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
Simplified45.7%
Taylor expanded in k around inf 20.8%
*-commutative20.8%
*-commutative20.8%
*-commutative20.8%
associate-*r*35.8%
*-commutative35.8%
associate-*r*45.7%
*-commutative45.7%
Simplified45.7%
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 (* (- t) (* y4 (* c y2)))))
(if (<= y2 -1.85e+46)
t_1
(if (<= y2 1.7e-286)
(* a (* (* x y) b))
(if (<= y2 2.5e-209)
(* t (* b (* j y4)))
(if (<= y2 9.6e-18)
(* x (* a (* y b)))
(if (<= y2 3.2e+79) t_1 (* y4 (* k (* y1 y2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -t * (y4 * (c * y2));
double tmp;
if (y2 <= -1.85e+46) {
tmp = t_1;
} else if (y2 <= 1.7e-286) {
tmp = a * ((x * y) * b);
} else if (y2 <= 2.5e-209) {
tmp = t * (b * (j * y4));
} else if (y2 <= 9.6e-18) {
tmp = x * (a * (y * b));
} else if (y2 <= 3.2e+79) {
tmp = t_1;
} else {
tmp = y4 * (k * (y1 * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = -t * (y4 * (c * y2))
if (y2 <= (-1.85d+46)) then
tmp = t_1
else if (y2 <= 1.7d-286) then
tmp = a * ((x * y) * b)
else if (y2 <= 2.5d-209) then
tmp = t * (b * (j * y4))
else if (y2 <= 9.6d-18) then
tmp = x * (a * (y * b))
else if (y2 <= 3.2d+79) then
tmp = t_1
else
tmp = y4 * (k * (y1 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -t * (y4 * (c * y2));
double tmp;
if (y2 <= -1.85e+46) {
tmp = t_1;
} else if (y2 <= 1.7e-286) {
tmp = a * ((x * y) * b);
} else if (y2 <= 2.5e-209) {
tmp = t * (b * (j * y4));
} else if (y2 <= 9.6e-18) {
tmp = x * (a * (y * b));
} else if (y2 <= 3.2e+79) {
tmp = t_1;
} else {
tmp = y4 * (k * (y1 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = -t * (y4 * (c * y2)) tmp = 0 if y2 <= -1.85e+46: tmp = t_1 elif y2 <= 1.7e-286: tmp = a * ((x * y) * b) elif y2 <= 2.5e-209: tmp = t * (b * (j * y4)) elif y2 <= 9.6e-18: tmp = x * (a * (y * b)) elif y2 <= 3.2e+79: tmp = t_1 else: tmp = y4 * (k * (y1 * 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(-t) * Float64(y4 * Float64(c * y2))) tmp = 0.0 if (y2 <= -1.85e+46) tmp = t_1; elseif (y2 <= 1.7e-286) tmp = Float64(a * Float64(Float64(x * y) * b)); elseif (y2 <= 2.5e-209) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (y2 <= 9.6e-18) tmp = Float64(x * Float64(a * Float64(y * b))); elseif (y2 <= 3.2e+79) tmp = t_1; else tmp = Float64(y4 * Float64(k * Float64(y1 * 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 = -t * (y4 * (c * y2)); tmp = 0.0; if (y2 <= -1.85e+46) tmp = t_1; elseif (y2 <= 1.7e-286) tmp = a * ((x * y) * b); elseif (y2 <= 2.5e-209) tmp = t * (b * (j * y4)); elseif (y2 <= 9.6e-18) tmp = x * (a * (y * b)); elseif (y2 <= 3.2e+79) tmp = t_1; else tmp = y4 * (k * (y1 * 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[((-t) * N[(y4 * N[(c * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.85e+46], t$95$1, If[LessEqual[y2, 1.7e-286], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.5e-209], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.6e-18], N[(x * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.2e+79], t$95$1, N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-t\right) \cdot \left(y4 \cdot \left(c \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -1.85 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.7 \cdot 10^{-286}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{-209}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 9.6 \cdot 10^{-18}:\\
\;\;\;\;x \cdot \left(a \cdot \left(y \cdot b\right)\right)\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -1.84999999999999995e46 or 9.59999999999999976e-18 < y2 < 3.20000000000000003e79Initial program 26.1%
Taylor expanded in t around inf 37.4%
Taylor expanded in y4 around inf 41.7%
Taylor expanded in b around 0 39.4%
mul-1-neg39.4%
distribute-lft-neg-out39.4%
*-commutative39.4%
Simplified39.4%
if -1.84999999999999995e46 < y2 < 1.7000000000000001e-286Initial program 37.0%
Taylor expanded in b around inf 39.1%
Taylor expanded in a around inf 29.3%
Taylor expanded in x around inf 23.8%
*-commutative23.8%
Simplified23.8%
if 1.7000000000000001e-286 < y2 < 2.5000000000000002e-209Initial program 15.4%
Taylor expanded in t around inf 38.5%
Taylor expanded in y4 around inf 31.8%
Taylor expanded in b around inf 39.1%
*-commutative39.1%
Simplified39.1%
if 2.5000000000000002e-209 < y2 < 9.59999999999999976e-18Initial program 22.9%
Taylor expanded in b around inf 43.3%
Taylor expanded in a around inf 29.7%
Taylor expanded in x around inf 24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in a around 0 24.0%
*-commutative24.0%
associate-*r*24.0%
associate-*r*26.7%
Simplified26.7%
if 3.20000000000000003e79 < y2 Initial program 28.9%
Taylor expanded in y1 around inf 34.5%
Taylor expanded in y2 around inf 45.7%
+-commutative45.7%
mul-1-neg45.7%
unsub-neg45.7%
Simplified45.7%
Taylor expanded in k around inf 20.8%
*-commutative20.8%
*-commutative20.8%
*-commutative20.8%
associate-*r*35.8%
*-commutative35.8%
associate-*r*45.7%
*-commutative45.7%
Simplified45.7%
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 (* (* x y) b))))
(if (<= x -4.7e-60)
t_1
(if (<= x 8.5e-254)
(* t (* b (* j y4)))
(if (<= x 9.2e-60)
(* y1 (* k (* y2 y4)))
(if (<= x 3400000000.0)
(* t (* y4 (* b j)))
(if (<= x 4.3e+83) (* k (* y1 (* y2 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 * ((x * y) * b);
double tmp;
if (x <= -4.7e-60) {
tmp = t_1;
} else if (x <= 8.5e-254) {
tmp = t * (b * (j * y4));
} else if (x <= 9.2e-60) {
tmp = y1 * (k * (y2 * y4));
} else if (x <= 3400000000.0) {
tmp = t * (y4 * (b * j));
} else if (x <= 4.3e+83) {
tmp = k * (y1 * (y2 * 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 * ((x * y) * b)
if (x <= (-4.7d-60)) then
tmp = t_1
else if (x <= 8.5d-254) then
tmp = t * (b * (j * y4))
else if (x <= 9.2d-60) then
tmp = y1 * (k * (y2 * y4))
else if (x <= 3400000000.0d0) then
tmp = t * (y4 * (b * j))
else if (x <= 4.3d+83) then
tmp = k * (y1 * (y2 * 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 * ((x * y) * b);
double tmp;
if (x <= -4.7e-60) {
tmp = t_1;
} else if (x <= 8.5e-254) {
tmp = t * (b * (j * y4));
} else if (x <= 9.2e-60) {
tmp = y1 * (k * (y2 * y4));
} else if (x <= 3400000000.0) {
tmp = t * (y4 * (b * j));
} else if (x <= 4.3e+83) {
tmp = k * (y1 * (y2 * 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 * ((x * y) * b) tmp = 0 if x <= -4.7e-60: tmp = t_1 elif x <= 8.5e-254: tmp = t * (b * (j * y4)) elif x <= 9.2e-60: tmp = y1 * (k * (y2 * y4)) elif x <= 3400000000.0: tmp = t * (y4 * (b * j)) elif x <= 4.3e+83: tmp = k * (y1 * (y2 * 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(Float64(x * y) * b)) tmp = 0.0 if (x <= -4.7e-60) tmp = t_1; elseif (x <= 8.5e-254) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (x <= 9.2e-60) tmp = Float64(y1 * Float64(k * Float64(y2 * y4))); elseif (x <= 3400000000.0) tmp = Float64(t * Float64(y4 * Float64(b * j))); elseif (x <= 4.3e+83) tmp = Float64(k * Float64(y1 * Float64(y2 * 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 * ((x * y) * b); tmp = 0.0; if (x <= -4.7e-60) tmp = t_1; elseif (x <= 8.5e-254) tmp = t * (b * (j * y4)); elseif (x <= 9.2e-60) tmp = y1 * (k * (y2 * y4)); elseif (x <= 3400000000.0) tmp = t * (y4 * (b * j)); elseif (x <= 4.3e+83) tmp = k * (y1 * (y2 * 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[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.7e-60], t$95$1, If[LessEqual[x, 8.5e-254], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e-60], N[(y1 * N[(k * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3400000000.0], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e+83], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;x \leq -4.7 \cdot 10^{-60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 9.2 \cdot 10^{-60}:\\
\;\;\;\;y1 \cdot \left(k \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 3400000000:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{+83}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.7e-60 or 4.3e83 < x Initial program 25.0%
Taylor expanded in b around inf 32.1%
Taylor expanded in a around inf 31.7%
Taylor expanded in x around inf 31.0%
*-commutative31.0%
Simplified31.0%
if -4.7e-60 < x < 8.49999999999999963e-254Initial program 32.9%
Taylor expanded in t around inf 55.7%
Taylor expanded in y4 around inf 34.8%
Taylor expanded in b around inf 30.8%
*-commutative30.8%
Simplified30.8%
if 8.49999999999999963e-254 < x < 9.2000000000000005e-60Initial program 32.7%
Taylor expanded in y1 around inf 38.0%
Taylor expanded in y2 around inf 33.7%
+-commutative33.7%
mul-1-neg33.7%
unsub-neg33.7%
Simplified33.7%
Taylor expanded in k around inf 30.7%
*-commutative30.7%
Simplified30.7%
if 9.2000000000000005e-60 < x < 3.4e9Initial program 41.1%
Taylor expanded in t around inf 53.1%
Taylor expanded in y4 around inf 59.6%
Taylor expanded in b around inf 53.9%
*-commutative53.9%
Simplified53.9%
if 3.4e9 < x < 4.3e83Initial program 28.5%
Taylor expanded in y1 around inf 42.7%
Taylor expanded in y2 around inf 23.5%
+-commutative23.5%
mul-1-neg23.5%
unsub-neg23.5%
Simplified23.5%
Taylor expanded in k around inf 23.6%
*-commutative23.6%
Simplified23.6%
Final simplification32.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y (* k y5)))))
(if (<= y5 -2.7e+70)
t_1
(if (<= y5 6.8e-286)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y5 1550000.0)
(* b (* y (- (* x a) (* k y4))))
(if (<= y5 6e+153) (* j (* t (- (* b y4) (* i y5)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y * (k * y5));
double tmp;
if (y5 <= -2.7e+70) {
tmp = t_1;
} else if (y5 <= 6.8e-286) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 1550000.0) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y5 <= 6e+153) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * (k * y5))
if (y5 <= (-2.7d+70)) then
tmp = t_1
else if (y5 <= 6.8d-286) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y5 <= 1550000.0d0) then
tmp = b * (y * ((x * a) - (k * y4)))
else if (y5 <= 6d+153) then
tmp = j * (t * ((b * y4) - (i * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y * (k * y5));
double tmp;
if (y5 <= -2.7e+70) {
tmp = t_1;
} else if (y5 <= 6.8e-286) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 1550000.0) {
tmp = b * (y * ((x * a) - (k * y4)));
} else if (y5 <= 6e+153) {
tmp = j * (t * ((b * y4) - (i * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (y * (k * y5)) tmp = 0 if y5 <= -2.7e+70: tmp = t_1 elif y5 <= 6.8e-286: tmp = b * (j * ((t * y4) - (x * y0))) elif y5 <= 1550000.0: tmp = b * (y * ((x * a) - (k * y4))) elif y5 <= 6e+153: tmp = j * (t * ((b * y4) - (i * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y * Float64(k * y5))) tmp = 0.0 if (y5 <= -2.7e+70) tmp = t_1; elseif (y5 <= 6.8e-286) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y5 <= 1550000.0) tmp = Float64(b * Float64(y * Float64(Float64(x * a) - Float64(k * y4)))); elseif (y5 <= 6e+153) tmp = Float64(j * Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (y * (k * y5)); tmp = 0.0; if (y5 <= -2.7e+70) tmp = t_1; elseif (y5 <= 6.8e-286) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y5 <= 1550000.0) tmp = b * (y * ((x * a) - (k * y4))); elseif (y5 <= 6e+153) tmp = j * (t * ((b * y4) - (i * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.7e+70], t$95$1, If[LessEqual[y5, 6.8e-286], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1550000.0], N[(b * N[(y * N[(N[(x * a), $MachinePrecision] - N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e+153], N[(j * N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
\mathbf{if}\;y5 \leq -2.7 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 6.8 \cdot 10^{-286}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 1550000:\\
\;\;\;\;b \cdot \left(y \cdot \left(x \cdot a - k \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{+153}:\\
\;\;\;\;j \cdot \left(t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -2.7e70 or 6.00000000000000037e153 < y5 Initial program 26.8%
Taylor expanded in i around -inf 46.6%
Taylor expanded in y around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
Simplified51.5%
Taylor expanded in c around 0 48.1%
neg-mul-148.1%
distribute-rgt-neg-in48.1%
Simplified48.1%
if -2.7e70 < y5 < 6.8000000000000002e-286Initial program 30.0%
Taylor expanded in b around inf 37.5%
Taylor expanded in j around inf 34.4%
if 6.8000000000000002e-286 < y5 < 1.55e6Initial program 31.1%
Taylor expanded in b around inf 35.5%
Taylor expanded in y around inf 37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
if 1.55e6 < y5 < 6.00000000000000037e153Initial program 31.0%
Taylor expanded in t around inf 41.8%
Taylor expanded in j around inf 56.3%
Final simplification41.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y (* k y5)))) (t_2 (* b (* j (- (* t y4) (* x y0))))))
(if (<= y5 -8e+70)
t_1
(if (<= y5 2.5e-290)
t_2
(if (<= y5 8.6e-54)
(* y1 (* y2 (* k y4)))
(if (<= y5 3.2e+155) 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 = i * (y * (k * y5));
double t_2 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y5 <= -8e+70) {
tmp = t_1;
} else if (y5 <= 2.5e-290) {
tmp = t_2;
} else if (y5 <= 8.6e-54) {
tmp = y1 * (y2 * (k * y4));
} else if (y5 <= 3.2e+155) {
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 = i * (y * (k * y5))
t_2 = b * (j * ((t * y4) - (x * y0)))
if (y5 <= (-8d+70)) then
tmp = t_1
else if (y5 <= 2.5d-290) then
tmp = t_2
else if (y5 <= 8.6d-54) then
tmp = y1 * (y2 * (k * y4))
else if (y5 <= 3.2d+155) 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 = i * (y * (k * y5));
double t_2 = b * (j * ((t * y4) - (x * y0)));
double tmp;
if (y5 <= -8e+70) {
tmp = t_1;
} else if (y5 <= 2.5e-290) {
tmp = t_2;
} else if (y5 <= 8.6e-54) {
tmp = y1 * (y2 * (k * y4));
} else if (y5 <= 3.2e+155) {
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 = i * (y * (k * y5)) t_2 = b * (j * ((t * y4) - (x * y0))) tmp = 0 if y5 <= -8e+70: tmp = t_1 elif y5 <= 2.5e-290: tmp = t_2 elif y5 <= 8.6e-54: tmp = y1 * (y2 * (k * y4)) elif y5 <= 3.2e+155: 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(i * Float64(y * Float64(k * y5))) t_2 = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))) tmp = 0.0 if (y5 <= -8e+70) tmp = t_1; elseif (y5 <= 2.5e-290) tmp = t_2; elseif (y5 <= 8.6e-54) tmp = Float64(y1 * Float64(y2 * Float64(k * y4))); elseif (y5 <= 3.2e+155) 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 = i * (y * (k * y5)); t_2 = b * (j * ((t * y4) - (x * y0))); tmp = 0.0; if (y5 <= -8e+70) tmp = t_1; elseif (y5 <= 2.5e-290) tmp = t_2; elseif (y5 <= 8.6e-54) tmp = y1 * (y2 * (k * y4)); elseif (y5 <= 3.2e+155) 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[(i * N[(y * N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -8e+70], t$95$1, If[LessEqual[y5, 2.5e-290], t$95$2, If[LessEqual[y5, 8.6e-54], N[(y1 * N[(y2 * N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.2e+155], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(k \cdot y5\right)\right)\\
t_2 := b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{if}\;y5 \leq -8 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 2.5 \cdot 10^{-290}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq 8.6 \cdot 10^{-54}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 3.2 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -8.00000000000000058e70 or 3.20000000000000012e155 < y5 Initial program 27.5%
Taylor expanded in i around -inf 46.5%
Taylor expanded in y around inf 51.5%
+-commutative51.5%
mul-1-neg51.5%
unsub-neg51.5%
Simplified51.5%
Taylor expanded in c around 0 48.0%
neg-mul-148.0%
distribute-rgt-neg-in48.0%
Simplified48.0%
if -8.00000000000000058e70 < y5 < 2.5e-290 or 8.5999999999999999e-54 < y5 < 3.20000000000000012e155Initial program 28.8%
Taylor expanded in b around inf 38.5%
Taylor expanded in j around inf 34.4%
if 2.5e-290 < y5 < 8.5999999999999999e-54Initial program 34.4%
Taylor expanded in y1 around inf 43.8%
Taylor expanded in y2 around inf 39.8%
+-commutative39.8%
mul-1-neg39.8%
unsub-neg39.8%
Simplified39.8%
Taylor expanded in k around inf 32.0%
*-commutative32.0%
Simplified32.0%
Final simplification38.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= x -3.6e-59)
t_1
(if (<= x 1.7e-254)
(* t (* b (* j y4)))
(if (<= x 7.8e-60)
(* k (* y1 (* y2 y4)))
(if (<= x 265000000.0) (* t (* y4 (* b j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * ((x * y) * b);
double tmp;
if (x <= -3.6e-59) {
tmp = t_1;
} else if (x <= 1.7e-254) {
tmp = t * (b * (j * y4));
} else if (x <= 7.8e-60) {
tmp = k * (y1 * (y2 * y4));
} else if (x <= 265000000.0) {
tmp = t * (y4 * (b * j));
} 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 * ((x * y) * b)
if (x <= (-3.6d-59)) then
tmp = t_1
else if (x <= 1.7d-254) then
tmp = t * (b * (j * y4))
else if (x <= 7.8d-60) then
tmp = k * (y1 * (y2 * y4))
else if (x <= 265000000.0d0) then
tmp = t * (y4 * (b * j))
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 * ((x * y) * b);
double tmp;
if (x <= -3.6e-59) {
tmp = t_1;
} else if (x <= 1.7e-254) {
tmp = t * (b * (j * y4));
} else if (x <= 7.8e-60) {
tmp = k * (y1 * (y2 * y4));
} else if (x <= 265000000.0) {
tmp = t * (y4 * (b * j));
} 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 * ((x * y) * b) tmp = 0 if x <= -3.6e-59: tmp = t_1 elif x <= 1.7e-254: tmp = t * (b * (j * y4)) elif x <= 7.8e-60: tmp = k * (y1 * (y2 * y4)) elif x <= 265000000.0: tmp = t * (y4 * (b * j)) 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(Float64(x * y) * b)) tmp = 0.0 if (x <= -3.6e-59) tmp = t_1; elseif (x <= 1.7e-254) tmp = Float64(t * Float64(b * Float64(j * y4))); elseif (x <= 7.8e-60) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (x <= 265000000.0) tmp = Float64(t * Float64(y4 * Float64(b * j))); 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 * ((x * y) * b); tmp = 0.0; if (x <= -3.6e-59) tmp = t_1; elseif (x <= 1.7e-254) tmp = t * (b * (j * y4)); elseif (x <= 7.8e-60) tmp = k * (y1 * (y2 * y4)); elseif (x <= 265000000.0) tmp = t * (y4 * (b * j)); 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[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e-59], t$95$1, If[LessEqual[x, 1.7e-254], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-60], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 265000000.0], N[(t * N[(y4 * N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;x \leq -3.6 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-60}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 265000000:\\
\;\;\;\;t \cdot \left(y4 \cdot \left(b \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.6e-59 or 2.65e8 < x Initial program 25.3%
Taylor expanded in b around inf 31.1%
Taylor expanded in a around inf 31.6%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
Simplified30.2%
if -3.6e-59 < x < 1.69999999999999996e-254Initial program 32.9%
Taylor expanded in t around inf 55.7%
Taylor expanded in y4 around inf 34.8%
Taylor expanded in b around inf 30.8%
*-commutative30.8%
Simplified30.8%
if 1.69999999999999996e-254 < x < 7.8000000000000004e-60Initial program 32.7%
Taylor expanded in y1 around inf 38.0%
Taylor expanded in y2 around inf 33.7%
+-commutative33.7%
mul-1-neg33.7%
unsub-neg33.7%
Simplified33.7%
Taylor expanded in k around inf 24.1%
*-commutative24.1%
Simplified24.1%
if 7.8000000000000004e-60 < x < 2.65e8Initial program 41.1%
Taylor expanded in t around inf 53.1%
Taylor expanded in y4 around inf 59.6%
Taylor expanded in b around inf 53.9%
*-commutative53.9%
Simplified53.9%
Final simplification30.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))) (t_2 (* t (* b (* j y4)))))
(if (<= x -2.3e-59)
t_1
(if (<= x 5.5e-255)
t_2
(if (<= x 6.6e-23)
(* k (* y1 (* y2 y4)))
(if (<= x 2400000000.0) 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 * ((x * y) * b);
double t_2 = t * (b * (j * y4));
double tmp;
if (x <= -2.3e-59) {
tmp = t_1;
} else if (x <= 5.5e-255) {
tmp = t_2;
} else if (x <= 6.6e-23) {
tmp = k * (y1 * (y2 * y4));
} else if (x <= 2400000000.0) {
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 * ((x * y) * b)
t_2 = t * (b * (j * y4))
if (x <= (-2.3d-59)) then
tmp = t_1
else if (x <= 5.5d-255) then
tmp = t_2
else if (x <= 6.6d-23) then
tmp = k * (y1 * (y2 * y4))
else if (x <= 2400000000.0d0) 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 * ((x * y) * b);
double t_2 = t * (b * (j * y4));
double tmp;
if (x <= -2.3e-59) {
tmp = t_1;
} else if (x <= 5.5e-255) {
tmp = t_2;
} else if (x <= 6.6e-23) {
tmp = k * (y1 * (y2 * y4));
} else if (x <= 2400000000.0) {
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 * ((x * y) * b) t_2 = t * (b * (j * y4)) tmp = 0 if x <= -2.3e-59: tmp = t_1 elif x <= 5.5e-255: tmp = t_2 elif x <= 6.6e-23: tmp = k * (y1 * (y2 * y4)) elif x <= 2400000000.0: 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(Float64(x * y) * b)) t_2 = Float64(t * Float64(b * Float64(j * y4))) tmp = 0.0 if (x <= -2.3e-59) tmp = t_1; elseif (x <= 5.5e-255) tmp = t_2; elseif (x <= 6.6e-23) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (x <= 2400000000.0) 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 * ((x * y) * b); t_2 = t * (b * (j * y4)); tmp = 0.0; if (x <= -2.3e-59) tmp = t_1; elseif (x <= 5.5e-255) tmp = t_2; elseif (x <= 6.6e-23) tmp = k * (y1 * (y2 * y4)); elseif (x <= 2400000000.0) 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[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.3e-59], t$95$1, If[LessEqual[x, 5.5e-255], t$95$2, If[LessEqual[x, 6.6e-23], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2400000000.0], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
t_2 := t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{if}\;x \leq -2.3 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-255}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-23}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 2400000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.29999999999999979e-59 or 2.4e9 < x Initial program 25.3%
Taylor expanded in b around inf 31.1%
Taylor expanded in a around inf 31.6%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
Simplified30.2%
if -2.29999999999999979e-59 < x < 5.5000000000000003e-255 or 6.60000000000000041e-23 < x < 2.4e9Initial program 33.5%
Taylor expanded in t around inf 55.0%
Taylor expanded in y4 around inf 39.7%
Taylor expanded in b around inf 36.3%
*-commutative36.3%
Simplified36.3%
if 5.5000000000000003e-255 < x < 6.60000000000000041e-23Initial program 34.8%
Taylor expanded in y1 around inf 39.2%
Taylor expanded in y2 around inf 34.0%
+-commutative34.0%
mul-1-neg34.0%
unsub-neg34.0%
Simplified34.0%
Taylor expanded in k around inf 24.0%
*-commutative24.0%
Simplified24.0%
Final simplification30.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* (* x y) b))))
(if (<= x -1.35e-58)
t_1
(if (<= x 1.18e-256)
(* b (* j (* t y4)))
(if (<= x 4.5e-51) (* k (* y1 (* y2 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 * ((x * y) * b);
double tmp;
if (x <= -1.35e-58) {
tmp = t_1;
} else if (x <= 1.18e-256) {
tmp = b * (j * (t * y4));
} else if (x <= 4.5e-51) {
tmp = k * (y1 * (y2 * 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 * ((x * y) * b)
if (x <= (-1.35d-58)) then
tmp = t_1
else if (x <= 1.18d-256) then
tmp = b * (j * (t * y4))
else if (x <= 4.5d-51) then
tmp = k * (y1 * (y2 * 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 * ((x * y) * b);
double tmp;
if (x <= -1.35e-58) {
tmp = t_1;
} else if (x <= 1.18e-256) {
tmp = b * (j * (t * y4));
} else if (x <= 4.5e-51) {
tmp = k * (y1 * (y2 * 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 * ((x * y) * b) tmp = 0 if x <= -1.35e-58: tmp = t_1 elif x <= 1.18e-256: tmp = b * (j * (t * y4)) elif x <= 4.5e-51: tmp = k * (y1 * (y2 * 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(Float64(x * y) * b)) tmp = 0.0 if (x <= -1.35e-58) tmp = t_1; elseif (x <= 1.18e-256) tmp = Float64(b * Float64(j * Float64(t * y4))); elseif (x <= 4.5e-51) tmp = Float64(k * Float64(y1 * Float64(y2 * 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 * ((x * y) * b); tmp = 0.0; if (x <= -1.35e-58) tmp = t_1; elseif (x <= 1.18e-256) tmp = b * (j * (t * y4)); elseif (x <= 4.5e-51) tmp = k * (y1 * (y2 * 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[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35e-58], t$95$1, If[LessEqual[x, 1.18e-256], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e-51], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{-58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{-256}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-51}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.3499999999999999e-58 or 4.49999999999999974e-51 < x Initial program 26.9%
Taylor expanded in b around inf 31.0%
Taylor expanded in a around inf 32.7%
Taylor expanded in x around inf 30.1%
*-commutative30.1%
Simplified30.1%
if -1.3499999999999999e-58 < x < 1.18e-256Initial program 33.5%
Taylor expanded in t around inf 54.9%
Taylor expanded in y4 around inf 35.4%
Taylor expanded in b around inf 29.7%
*-commutative29.7%
Simplified29.7%
if 1.18e-256 < x < 4.49999999999999974e-51Initial program 32.1%
Taylor expanded in y1 around inf 37.0%
Taylor expanded in y2 around inf 33.1%
+-commutative33.1%
mul-1-neg33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in k around inf 24.2%
*-commutative24.2%
Simplified24.2%
Final simplification28.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -3.8e-59) (not (<= x 3900000000.0))) (* a (* (* x y) b)) (* b (* j (* t y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -3.8e-59) || !(x <= 3900000000.0)) {
tmp = a * ((x * y) * b);
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-3.8d-59)) .or. (.not. (x <= 3900000000.0d0))) then
tmp = a * ((x * y) * b)
else
tmp = b * (j * (t * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -3.8e-59) || !(x <= 3900000000.0)) {
tmp = a * ((x * y) * b);
} else {
tmp = b * (j * (t * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -3.8e-59) or not (x <= 3900000000.0): tmp = a * ((x * y) * b) else: tmp = b * (j * (t * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -3.8e-59) || !(x <= 3900000000.0)) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(b * Float64(j * Float64(t * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -3.8e-59) || ~((x <= 3900000000.0))) tmp = a * ((x * y) * b); else tmp = b * (j * (t * y4)); 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, -3.8e-59], N[Not[LessEqual[x, 3900000000.0]], $MachinePrecision]], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{-59} \lor \neg \left(x \leq 3900000000\right):\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\end{array}
\end{array}
if x < -3.79999999999999983e-59 or 3.9e9 < x Initial program 25.3%
Taylor expanded in b around inf 31.1%
Taylor expanded in a around inf 31.6%
Taylor expanded in x around inf 30.2%
*-commutative30.2%
Simplified30.2%
if -3.79999999999999983e-59 < x < 3.9e9Initial program 34.0%
Taylor expanded in t around inf 42.9%
Taylor expanded in y4 around inf 34.5%
Taylor expanded in b around inf 23.5%
*-commutative23.5%
Simplified23.5%
Final simplification27.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y2 -1.6e+22) (* y4 (* k (* y1 y2))) (if (<= y2 6.2e+183) (* a (* (* x y) b)) (* y1 (* y4 (* k y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.6e+22) {
tmp = y4 * (k * (y1 * y2));
} else if (y2 <= 6.2e+183) {
tmp = a * ((x * y) * b);
} else {
tmp = y1 * (y4 * (k * y2));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-1.6d+22)) then
tmp = y4 * (k * (y1 * y2))
else if (y2 <= 6.2d+183) then
tmp = a * ((x * y) * b)
else
tmp = y1 * (y4 * (k * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -1.6e+22) {
tmp = y4 * (k * (y1 * y2));
} else if (y2 <= 6.2e+183) {
tmp = a * ((x * y) * b);
} else {
tmp = y1 * (y4 * (k * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.6e+22: tmp = y4 * (k * (y1 * y2)) elif y2 <= 6.2e+183: tmp = a * ((x * y) * b) else: tmp = y1 * (y4 * (k * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -1.6e+22) tmp = Float64(y4 * Float64(k * Float64(y1 * y2))); elseif (y2 <= 6.2e+183) tmp = Float64(a * Float64(Float64(x * y) * b)); else tmp = Float64(y1 * Float64(y4 * Float64(k * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -1.6e+22) tmp = y4 * (k * (y1 * y2)); elseif (y2 <= 6.2e+183) tmp = a * ((x * y) * b); else tmp = y1 * (y4 * (k * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.6e+22], N[(y4 * N[(k * N[(y1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.2e+183], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(y4 * N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.6 \cdot 10^{+22}:\\
\;\;\;\;y4 \cdot \left(k \cdot \left(y1 \cdot y2\right)\right)\\
\mathbf{elif}\;y2 \leq 6.2 \cdot 10^{+183}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -1.6e22Initial program 25.4%
Taylor expanded in y1 around inf 44.7%
Taylor expanded in y2 around inf 40.4%
+-commutative40.4%
mul-1-neg40.4%
unsub-neg40.4%
Simplified40.4%
Taylor expanded in k around inf 27.7%
*-commutative27.7%
*-commutative27.7%
*-commutative27.7%
associate-*r*26.8%
*-commutative26.8%
associate-*r*29.7%
*-commutative29.7%
Simplified29.7%
if -1.6e22 < y2 < 6.1999999999999997e183Initial program 30.4%
Taylor expanded in b around inf 39.4%
Taylor expanded in a around inf 27.5%
Taylor expanded in x around inf 24.0%
*-commutative24.0%
Simplified24.0%
if 6.1999999999999997e183 < y2 Initial program 31.9%
Taylor expanded in y1 around inf 32.4%
Taylor expanded in y2 around inf 49.1%
+-commutative49.1%
mul-1-neg49.1%
unsub-neg49.1%
Simplified49.1%
Taylor expanded in k around inf 33.8%
*-commutative33.8%
associate-*r*33.8%
*-commutative33.8%
associate-*r*45.1%
Simplified45.1%
Final simplification27.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= k -1.1e+58) (* y1 (* y2 (* k y4))) (if (<= k 6.5e-68) (* t (* b (* j y4))) (* a (* (* x y) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.1e+58) {
tmp = y1 * (y2 * (k * y4));
} else if (k <= 6.5e-68) {
tmp = t * (b * (j * y4));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (k <= (-1.1d+58)) then
tmp = y1 * (y2 * (k * y4))
else if (k <= 6.5d-68) then
tmp = t * (b * (j * y4))
else
tmp = a * ((x * y) * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -1.1e+58) {
tmp = y1 * (y2 * (k * y4));
} else if (k <= 6.5e-68) {
tmp = t * (b * (j * y4));
} else {
tmp = a * ((x * y) * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= -1.1e+58: tmp = y1 * (y2 * (k * y4)) elif k <= 6.5e-68: tmp = t * (b * (j * y4)) else: tmp = a * ((x * y) * b) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -1.1e+58) tmp = Float64(y1 * Float64(y2 * Float64(k * y4))); elseif (k <= 6.5e-68) tmp = Float64(t * Float64(b * Float64(j * y4))); else tmp = Float64(a * Float64(Float64(x * y) * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (k <= -1.1e+58) tmp = y1 * (y2 * (k * y4)); elseif (k <= 6.5e-68) tmp = t * (b * (j * y4)); else tmp = a * ((x * y) * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -1.1e+58], N[(y1 * N[(y2 * N[(k * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 6.5e-68], N[(t * N[(b * N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.1 \cdot 10^{+58}:\\
\;\;\;\;y1 \cdot \left(y2 \cdot \left(k \cdot y4\right)\right)\\
\mathbf{elif}\;k \leq 6.5 \cdot 10^{-68}:\\
\;\;\;\;t \cdot \left(b \cdot \left(j \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(\left(x \cdot y\right) \cdot b\right)\\
\end{array}
\end{array}
if k < -1.1e58Initial program 30.5%
Taylor expanded in y1 around inf 36.6%
Taylor expanded in y2 around inf 35.2%
+-commutative35.2%
mul-1-neg35.2%
unsub-neg35.2%
Simplified35.2%
Taylor expanded in k around inf 31.8%
*-commutative31.8%
Simplified31.8%
if -1.1e58 < k < 6.4999999999999997e-68Initial program 31.7%
Taylor expanded in t around inf 36.6%
Taylor expanded in y4 around inf 27.2%
Taylor expanded in b around inf 21.0%
*-commutative21.0%
Simplified21.0%
if 6.4999999999999997e-68 < k Initial program 25.3%
Taylor expanded in b around inf 31.1%
Taylor expanded in a around inf 33.6%
Taylor expanded in x around inf 28.8%
*-commutative28.8%
Simplified28.8%
Final simplification25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* (* x y) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = a * ((x * y) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return a * ((x * y) * b);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * ((x * y) * b)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(Float64(x * y) * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * ((x * y) * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(N[(x * y), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(\left(x \cdot y\right) \cdot b\right)
\end{array}
Initial program 29.3%
Taylor expanded in b around inf 37.1%
Taylor expanded in a around inf 26.3%
Taylor expanded in x around inf 20.2%
*-commutative20.2%
Simplified20.2%
Final simplification20.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2024101
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(if (< y4 -7.206256231996481e+60) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1.0 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3.364603505246317e-66) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -1.2000065055686116e-105) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 6.718963124057495e-279) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 4.77962681403792e-222) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 2.2852241541266835e-175) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))