
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 36 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y3 z) (* y2 x)))
(t_2
(*
(fma t_1 y1 (fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a))
(t_3 (* (* (fma c x (* (- k) y5)) y0) y2)))
(if (<= a -4.6e+179)
t_2
(if (<= a -2.3e+150)
t_3
(if (<= a -2.05e-131)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= a -6.2e-181)
(*
(fma (- y0) (fma k y2 (* (- j) y3)) (* (fma k y (* (- j) t)) i))
y5)
(if (<= a 4.1e-239)
(*
(fma
t_1
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= a 4.2e-194)
(* (* (fma (- t) y4 (* y0 x)) c) y2)
(if (<= a 1.2e-7)
(* (* (fma (- i) t (* y3 y0)) j) y5)
(if (<= a 6.4e+77)
t_3
(if (<= a 1.1e+179)
t_2
(* (* (fma (- b) t (* y3 y1)) a) z))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * z) - (y2 * x);
double t_2 = fma(t_1, y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
double t_3 = (fma(c, x, (-k * y5)) * y0) * y2;
double tmp;
if (a <= -4.6e+179) {
tmp = t_2;
} else if (a <= -2.3e+150) {
tmp = t_3;
} else if (a <= -2.05e-131) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (a <= -6.2e-181) {
tmp = fma(-y0, fma(k, y2, (-j * y3)), (fma(k, y, (-j * t)) * i)) * y5;
} else if (a <= 4.1e-239) {
tmp = fma(t_1, a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else if (a <= 4.2e-194) {
tmp = (fma(-t, y4, (y0 * x)) * c) * y2;
} else if (a <= 1.2e-7) {
tmp = (fma(-i, t, (y3 * y0)) * j) * y5;
} else if (a <= 6.4e+77) {
tmp = t_3;
} else if (a <= 1.1e+179) {
tmp = t_2;
} else {
tmp = (fma(-b, t, (y3 * y1)) * a) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y3 * z) - Float64(y2 * x)) t_2 = Float64(fma(t_1, y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a) t_3 = Float64(Float64(fma(c, x, Float64(Float64(-k) * y5)) * y0) * y2) tmp = 0.0 if (a <= -4.6e+179) tmp = t_2; elseif (a <= -2.3e+150) tmp = t_3; elseif (a <= -2.05e-131) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (a <= -6.2e-181) tmp = Float64(fma(Float64(-y0), fma(k, y2, Float64(Float64(-j) * y3)), Float64(fma(k, y, Float64(Float64(-j) * t)) * i)) * y5); elseif (a <= 4.1e-239) tmp = Float64(fma(t_1, a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (a <= 4.2e-194) tmp = Float64(Float64(fma(Float64(-t), y4, Float64(y0 * x)) * c) * y2); elseif (a <= 1.2e-7) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * j) * y5); elseif (a <= 6.4e+77) tmp = t_3; elseif (a <= 1.1e+179) tmp = t_2; else tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * a) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(c * x + N[((-k) * y5), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[a, -4.6e+179], t$95$2, If[LessEqual[a, -2.3e+150], t$95$3, If[LessEqual[a, -2.05e-131], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, -6.2e-181], N[(N[((-y0) * N[(k * y2 + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] + N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 4.1e-239], N[(N[(t$95$1 * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, 4.2e-194], N[(N[(N[((-t) * y4 + N[(y0 * x), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, 1.2e-7], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 6.4e+77], t$95$3, If[LessEqual[a, 1.1e+179], t$95$2, N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * z), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot z - y2 \cdot x\\
t_2 := \mathsf{fma}\left(t\_1, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
t_3 := \left(\mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right) \cdot y0\right) \cdot y2\\
\mathbf{if}\;a \leq -4.6 \cdot 10^{+179}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{+150}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -2.05 \cdot 10^{-131}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;a \leq -6.2 \cdot 10^{-181}:\\
\;\;\;\;\mathsf{fma}\left(-y0, \mathsf{fma}\left(k, y2, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-239}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-194}:\\
\;\;\;\;\left(\mathsf{fma}\left(-t, y4, y0 \cdot x\right) \cdot c\right) \cdot y2\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-7}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot j\right) \cdot y5\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{+77}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+179}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot a\right) \cdot z\\
\end{array}
\end{array}
if a < -4.59999999999999988e179 or 6.4000000000000003e77 < a < 1.1e179Initial program 17.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.5%
if -4.59999999999999988e179 < a < -2.30000000000000001e150 or 1.19999999999999989e-7 < a < 6.4000000000000003e77Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in y0 around inf
Applied rewrites71.3%
if -2.30000000000000001e150 < a < -2.0500000000000001e-131Initial program 32.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
if -2.0500000000000001e-131 < a < -6.20000000000000043e-181Initial program 46.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.6%
Taylor expanded in a around 0
Applied rewrites71.6%
if -6.20000000000000043e-181 < a < 4.09999999999999993e-239Initial program 47.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.4%
if 4.09999999999999993e-239 < a < 4.2e-194Initial program 30.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.5%
Taylor expanded in c around inf
Applied rewrites55.3%
if 4.2e-194 < a < 1.19999999999999989e-7Initial program 14.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.7%
Taylor expanded in j around inf
Applied rewrites59.8%
if 1.1e179 < a Initial program 11.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
Taylor expanded in a around inf
Applied rewrites69.8%
Final simplification63.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(-
(-
(-
(-
(-
(* (- (* y1 i) (* y0 b)) (- (* j x) (* k z)))
(* (- (* i c) (* b a)) (- (* y x) (* t z))))
(* (- (* y1 a) (* y0 c)) (- (* y2 x) (* y3 z))))
(* (- (* y5 i) (* y4 b)) (- (* j t) (* k y))))
(* (- (* y5 a) (* y4 c)) (- (* y3 y) (* y2 t))))
(* (- (* y3 j) (* y2 k)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
(fma
(- (* y5 y0) (* y4 y1))
j
(fma (- z) (- (* y0 c) (* y1 a)) (* (- (* y4 c) (* y5 a)) 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 * i) - (y0 * b)) * ((j * x) - (k * z))) - (((i * c) - (b * a)) * ((y * x) - (t * z)))) - (((y1 * a) - (y0 * c)) * ((y2 * x) - (y3 * z)))) - (((y5 * i) - (y4 * b)) * ((j * t) - (k * y)))) - (((y5 * a) - (y4 * c)) * ((y3 * y) - (y2 * t)))) - (((y3 * j) - (y2 * k)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(((y5 * y0) - (y4 * y1)), j, fma(-z, ((y0 * c) - (y1 * a)), (((y4 * c) - (y5 * a)) * 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(Float64(Float64(Float64(Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * Float64(Float64(j * x) - Float64(k * z))) - Float64(Float64(Float64(i * c) - Float64(b * a)) * Float64(Float64(y * x) - Float64(t * z)))) - Float64(Float64(Float64(y1 * a) - Float64(y0 * c)) * Float64(Float64(y2 * x) - Float64(y3 * z)))) - Float64(Float64(Float64(y5 * i) - Float64(y4 * b)) * Float64(Float64(j * t) - Float64(k * y)))) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * Float64(Float64(y3 * y) - Float64(y2 * t)))) - Float64(Float64(Float64(y3 * j) - Float64(y2 * k)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(Float64(y5 * y0) - Float64(y4 * y1)), j, fma(Float64(-z), Float64(Float64(y0 * c) - Float64(y1 * a)), Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y))) * y3); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * a), $MachinePrecision] - N[(y0 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y3 * j), $MachinePrecision] - N[(y2 * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * j + N[((-z) * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(y1 \cdot i - y0 \cdot b\right) \cdot \left(j \cdot x - k \cdot z\right) - \left(i \cdot c - b \cdot a\right) \cdot \left(y \cdot x - t \cdot z\right)\right) - \left(y1 \cdot a - y0 \cdot c\right) \cdot \left(y2 \cdot x - y3 \cdot z\right)\right) - \left(y5 \cdot i - y4 \cdot b\right) \cdot \left(j \cdot t - k \cdot y\right)\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot \left(y3 \cdot y - y2 \cdot t\right)\right) - \left(y3 \cdot j - y2 \cdot k\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot y0 - y4 \cdot y1, j, \mathsf{fma}\left(-z, y0 \cdot c - y1 \cdot a, \left(y4 \cdot c - y5 \cdot a\right) \cdot y\right)\right) \cdot y3\\
\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 88.2%
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 y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Final simplification56.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y3 z) (* y2 x)))
(t_2
(*
(fma t_1 y1 (fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a))
(t_3 (fma c x (* (- k) y5))))
(if (<= a -2.1e+103)
t_2
(if (<= a -1.75e-45)
(* (fma k y4 (* (- x) a)) (* y2 y1))
(if (<= a -9e-179)
(fma y2 (* (* (- t) y4) c) (* (* y2 y0) t_3))
(if (<= a 4.1e-239)
(*
(fma
t_1
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= a 4.2e-194)
(* (* (fma (- t) y4 (* y0 x)) c) y2)
(if (<= a 1.2e-7)
(* (* (fma (- i) t (* y3 y0)) j) y5)
(if (<= a 6.4e+77)
(* (* t_3 y0) y2)
(if (<= a 1.1e+179)
t_2
(* (* (fma (- b) t (* y3 y1)) a) z)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y3 * z) - (y2 * x);
double t_2 = fma(t_1, y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
double t_3 = fma(c, x, (-k * y5));
double tmp;
if (a <= -2.1e+103) {
tmp = t_2;
} else if (a <= -1.75e-45) {
tmp = fma(k, y4, (-x * a)) * (y2 * y1);
} else if (a <= -9e-179) {
tmp = fma(y2, ((-t * y4) * c), ((y2 * y0) * t_3));
} else if (a <= 4.1e-239) {
tmp = fma(t_1, a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else if (a <= 4.2e-194) {
tmp = (fma(-t, y4, (y0 * x)) * c) * y2;
} else if (a <= 1.2e-7) {
tmp = (fma(-i, t, (y3 * y0)) * j) * y5;
} else if (a <= 6.4e+77) {
tmp = (t_3 * y0) * y2;
} else if (a <= 1.1e+179) {
tmp = t_2;
} else {
tmp = (fma(-b, t, (y3 * y1)) * a) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y3 * z) - Float64(y2 * x)) t_2 = Float64(fma(t_1, y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a) t_3 = fma(c, x, Float64(Float64(-k) * y5)) tmp = 0.0 if (a <= -2.1e+103) tmp = t_2; elseif (a <= -1.75e-45) tmp = Float64(fma(k, y4, Float64(Float64(-x) * a)) * Float64(y2 * y1)); elseif (a <= -9e-179) tmp = fma(y2, Float64(Float64(Float64(-t) * y4) * c), Float64(Float64(y2 * y0) * t_3)); elseif (a <= 4.1e-239) tmp = Float64(fma(t_1, a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (a <= 4.2e-194) tmp = Float64(Float64(fma(Float64(-t), y4, Float64(y0 * x)) * c) * y2); elseif (a <= 1.2e-7) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * j) * y5); elseif (a <= 6.4e+77) tmp = Float64(Float64(t_3 * y0) * y2); elseif (a <= 1.1e+179) tmp = t_2; else tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * a) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$3 = N[(c * x + N[((-k) * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e+103], t$95$2, If[LessEqual[a, -1.75e-45], N[(N[(k * y4 + N[((-x) * a), $MachinePrecision]), $MachinePrecision] * N[(y2 * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9e-179], N[(y2 * N[(N[((-t) * y4), $MachinePrecision] * c), $MachinePrecision] + N[(N[(y2 * y0), $MachinePrecision] * t$95$3), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e-239], N[(N[(t$95$1 * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, 4.2e-194], N[(N[(N[((-t) * y4 + N[(y0 * x), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, 1.2e-7], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 6.4e+77], N[(N[(t$95$3 * y0), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, 1.1e+179], t$95$2, N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * z), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot z - y2 \cdot x\\
t_2 := \mathsf{fma}\left(t\_1, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
t_3 := \mathsf{fma}\left(c, x, \left(-k\right) \cdot y5\right)\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{+103}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{-45}:\\
\;\;\;\;\mathsf{fma}\left(k, y4, \left(-x\right) \cdot a\right) \cdot \left(y2 \cdot y1\right)\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-179}:\\
\;\;\;\;\mathsf{fma}\left(y2, \left(\left(-t\right) \cdot y4\right) \cdot c, \left(y2 \cdot y0\right) \cdot t\_3\right)\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-239}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-194}:\\
\;\;\;\;\left(\mathsf{fma}\left(-t, y4, y0 \cdot x\right) \cdot c\right) \cdot y2\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-7}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot j\right) \cdot y5\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{+77}:\\
\;\;\;\;\left(t\_3 \cdot y0\right) \cdot y2\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+179}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot a\right) \cdot z\\
\end{array}
\end{array}
if a < -2.1000000000000002e103 or 6.4000000000000003e77 < a < 1.1e179Initial program 21.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.6%
if -2.1000000000000002e103 < a < -1.75e-45Initial program 19.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.7%
Taylor expanded in y1 around inf
Applied rewrites53.8%
if -1.75e-45 < a < -8.99999999999999984e-179Initial program 50.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in y0 around 0
Applied rewrites37.6%
Taylor expanded in c around inf
Applied rewrites44.2%
if -8.99999999999999984e-179 < a < 4.09999999999999993e-239Initial program 47.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.4%
if 4.09999999999999993e-239 < a < 4.2e-194Initial program 30.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.5%
Taylor expanded in c around inf
Applied rewrites55.3%
if 4.2e-194 < a < 1.19999999999999989e-7Initial program 14.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.7%
Taylor expanded in j around inf
Applied rewrites59.8%
if 1.19999999999999989e-7 < a < 6.4000000000000003e77Initial program 24.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.2%
Taylor expanded in y0 around inf
Applied rewrites64.4%
if 1.1e179 < a Initial program 11.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
Taylor expanded in a around inf
Applied rewrites69.8%
Final simplification59.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4)))
(if (<= y4 -4.8e+149)
t_1
(if (<= y4 -1.6e-37)
(* (* (fma (- t) y5 (* y1 x)) i) j)
(if (<= y4 -3.5e-275)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= y4 2.4e-180)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y4 1.95e+46)
(*
(fma
(- (* y5 i) (* y4 b))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
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 = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double tmp;
if (y4 <= -4.8e+149) {
tmp = t_1;
} else if (y4 <= -1.6e-37) {
tmp = (fma(-t, y5, (y1 * x)) * i) * j;
} else if (y4 <= -3.5e-275) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (y4 <= 2.4e-180) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y4 <= 1.95e+46) {
tmp = fma(((y5 * i) - (y4 * b)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} 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(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) tmp = 0.0 if (y4 <= -4.8e+149) tmp = t_1; elseif (y4 <= -1.6e-37) tmp = Float64(Float64(fma(Float64(-t), y5, Float64(y1 * x)) * i) * j); elseif (y4 <= -3.5e-275) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (y4 <= 2.4e-180) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y4 <= 1.95e+46) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y4, -4.8e+149], t$95$1, If[LessEqual[y4, -1.6e-37], N[(N[(N[((-t) * y5 + N[(y1 * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y4, -3.5e-275], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y4, 2.4e-180], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y4, 1.95e+46], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{if}\;y4 \leq -4.8 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.6 \cdot 10^{-37}:\\
\;\;\;\;\left(\mathsf{fma}\left(-t, y5, y1 \cdot x\right) \cdot i\right) \cdot j\\
\mathbf{elif}\;y4 \leq -3.5 \cdot 10^{-275}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y4 \leq 2.4 \cdot 10^{-180}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y4 \leq 1.95 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.80000000000000024e149 or 1.94999999999999997e46 < y4 Initial program 18.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.4%
if -4.80000000000000024e149 < y4 < -1.5999999999999999e-37Initial program 22.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in i around inf
Applied rewrites56.3%
if -1.5999999999999999e-37 < y4 < -3.49999999999999969e-275Initial program 40.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.7%
if -3.49999999999999969e-275 < y4 < 2.39999999999999979e-180Initial program 29.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.1%
if 2.39999999999999979e-180 < y4 < 1.94999999999999997e46Initial program 33.5%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Final simplification59.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma (- y0) (fma k y2 (* (- j) y3)) (* (fma k y (* (- j) t)) i))
y5)))
(if (<= y5 -5e+35)
t_1
(if (<= y5 7.8e-260)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 2.45e-44)
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= y5 1.9e-25)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y5 1.45e+151)
(*
(fma
(- (* y5 i) (* y4 b))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
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 = fma(-y0, fma(k, y2, (-j * y3)), (fma(k, y, (-j * t)) * i)) * y5;
double tmp;
if (y5 <= -5e+35) {
tmp = t_1;
} else if (y5 <= 7.8e-260) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= 2.45e-44) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else if (y5 <= 1.9e-25) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y5 <= 1.45e+151) {
tmp = fma(((y5 * i) - (y4 * b)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} 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(fma(Float64(-y0), fma(k, y2, Float64(Float64(-j) * y3)), Float64(fma(k, y, Float64(Float64(-j) * t)) * i)) * y5) tmp = 0.0 if (y5 <= -5e+35) tmp = t_1; elseif (y5 <= 7.8e-260) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= 2.45e-44) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (y5 <= 1.9e-25) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y5 <= 1.45e+151) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[((-y0) * N[(k * y2 + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] + N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[y5, -5e+35], t$95$1, If[LessEqual[y5, 7.8e-260], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 2.45e-44], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 1.9e-25], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y5, 1.45e+151], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y0, \mathsf{fma}\left(k, y2, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{if}\;y5 \leq -5 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 7.8 \cdot 10^{-260}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq 2.45 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 1.9 \cdot 10^{-25}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y5 \leq 1.45 \cdot 10^{+151}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -5.00000000000000021e35 or 1.45000000000000009e151 < y5 Initial program 19.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.2%
Taylor expanded in a around 0
Applied rewrites60.0%
if -5.00000000000000021e35 < y5 < 7.79999999999999945e-260Initial program 29.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
if 7.79999999999999945e-260 < y5 < 2.4500000000000001e-44Initial program 42.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.3%
if 2.4500000000000001e-44 < y5 < 1.8999999999999999e-25Initial program 14.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.3%
Taylor expanded in b around inf
Applied rewrites100.0%
if 1.8999999999999999e-25 < y5 < 1.45000000000000009e151Initial program 30.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.3%
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 (- (* y2 k) (* y3 j)))
(t_2 (- (* j t) (* k y)))
(t_3
(*
(fma (- (* y x) (* t z)) a (fma t_2 y4 (* (- (* k z) (* j x)) y0)))
b)))
(if (<= b -2.7e+97)
t_3
(if (<= b 7e-150)
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_1 (* (- (* y2 t) (* y3 y)) a)))
y5)
(if (<= b 7.5e-50)
(* (* (fma a y3 (* (- k) i)) y1) z)
(if (<= b 4.2e+94)
(* (fma t_2 b (fma t_1 y1 (* (- (* y3 y) (* y2 t)) 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 = (y2 * k) - (y3 * j);
double t_2 = (j * t) - (k * y);
double t_3 = fma(((y * x) - (t * z)), a, fma(t_2, y4, (((k * z) - (j * x)) * y0))) * b;
double tmp;
if (b <= -2.7e+97) {
tmp = t_3;
} else if (b <= 7e-150) {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, t_1, (((y2 * t) - (y3 * y)) * a))) * y5;
} else if (b <= 7.5e-50) {
tmp = (fma(a, y3, (-k * i)) * y1) * z;
} else if (b <= 4.2e+94) {
tmp = fma(t_2, b, fma(t_1, y1, (((y3 * y) - (y2 * t)) * 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(Float64(y2 * k) - Float64(y3 * j)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(t_2, y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b) tmp = 0.0 if (b <= -2.7e+97) tmp = t_3; elseif (b <= 7e-150) tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_1, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5); elseif (b <= 7.5e-50) tmp = Float64(Float64(fma(a, y3, Float64(Float64(-k) * i)) * y1) * z); elseif (b <= 4.2e+94) tmp = Float64(fma(t_2, b, fma(t_1, y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -2.7e+97], t$95$3, If[LessEqual[b, 7e-150], N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$1 + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 7.5e-50], N[(N[(N[(a * y3 + N[((-k) * i), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 4.2e+94], N[(N[(t$95$2 * b + N[(t$95$1 * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
t_2 := j \cdot t - k \cdot y\\
t_3 := \mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(t\_2, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+97}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-150}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_1, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-50}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, y3, \left(-k\right) \cdot i\right) \cdot y1\right) \cdot z\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{+94}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(t\_1, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -2.69999999999999993e97 or 4.19999999999999979e94 < b Initial program 22.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.1%
if -2.69999999999999993e97 < b < 6.9999999999999996e-150Initial program 31.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
if 6.9999999999999996e-150 < b < 7.5e-50Initial program 31.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.9%
Taylor expanded in i around inf
Applied rewrites44.9%
Taylor expanded in y1 around inf
Applied rewrites63.3%
if 7.5e-50 < b < 4.19999999999999979e94Initial program 24.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Final simplification59.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (* k i) y (* (fma k y2 (* (- j) y3)) (- y0))) y5)))
(if (<= k -3.1e-119)
t_1
(if (<= k -1.2e-185)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= k 1.76e-239)
(* (* (fma (- i) t (* y3 y0)) j) y5)
(if (<= k 1.45e+97)
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
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 = fma((k * i), y, (fma(k, y2, (-j * y3)) * -y0)) * y5;
double tmp;
if (k <= -3.1e-119) {
tmp = t_1;
} else if (k <= -1.2e-185) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (k <= 1.76e-239) {
tmp = (fma(-i, t, (y3 * y0)) * j) * y5;
} else if (k <= 1.45e+97) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} 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(fma(Float64(k * i), y, Float64(fma(k, y2, Float64(Float64(-j) * y3)) * Float64(-y0))) * y5) tmp = 0.0 if (k <= -3.1e-119) tmp = t_1; elseif (k <= -1.2e-185) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (k <= 1.76e-239) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * j) * y5); elseif (k <= 1.45e+97) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(k * i), $MachinePrecision] * y + N[(N[(k * y2 + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * (-y0)), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[k, -3.1e-119], t$95$1, If[LessEqual[k, -1.2e-185], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[k, 1.76e-239], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[k, 1.45e+97], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k \cdot i, y, \mathsf{fma}\left(k, y2, \left(-j\right) \cdot y3\right) \cdot \left(-y0\right)\right) \cdot y5\\
\mathbf{if}\;k \leq -3.1 \cdot 10^{-119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{-185}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;k \leq 1.76 \cdot 10^{-239}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot j\right) \cdot y5\\
\mathbf{elif}\;k \leq 1.45 \cdot 10^{+97}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -3.09999999999999978e-119 or 1.44999999999999994e97 < k Initial program 24.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.8%
Taylor expanded in a around 0
Applied rewrites48.9%
Taylor expanded in t around 0
Applied rewrites55.5%
if -3.09999999999999978e-119 < k < -1.2000000000000001e-185Initial program 29.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.5%
Taylor expanded in b around inf
Applied rewrites65.3%
if -1.2000000000000001e-185 < k < 1.7599999999999999e-239Initial program 23.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.8%
Taylor expanded in j around inf
Applied rewrites43.1%
if 1.7599999999999999e-239 < k < 1.44999999999999994e97Initial program 35.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.0%
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
(*
(fma
(- (* y x) (* t z))
a
(fma (- (* j t) (* k y)) y4 (* (- (* k z) (* j x)) y0)))
b)))
(if (<= b -2.7e+97)
t_1
(if (<= b 5.5e-184)
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) (- (* y2 k) (* y3 j)) (* (- (* y2 t) (* y3 y)) a)))
y5)
(if (<= b 5.5e+91)
(*
(fma
(- (* y5 y0) (* y4 y1))
j
(fma (- z) (- (* y0 c) (* y1 a)) (* (- (* y4 c) (* y5 a)) y)))
y3)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((y * x) - (t * z)), a, fma(((j * t) - (k * y)), y4, (((k * z) - (j * x)) * y0))) * b;
double tmp;
if (b <= -2.7e+97) {
tmp = t_1;
} else if (b <= 5.5e-184) {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, ((y2 * k) - (y3 * j)), (((y2 * t) - (y3 * y)) * a))) * y5;
} else if (b <= 5.5e+91) {
tmp = fma(((y5 * y0) - (y4 * y1)), j, fma(-z, ((y0 * c) - (y1 * a)), (((y4 * c) - (y5 * a)) * y))) * y3;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(Float64(Float64(j * t) - Float64(k * y)), y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b) tmp = 0.0 if (b <= -2.7e+97) tmp = t_1; elseif (b <= 5.5e-184) tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), Float64(Float64(y2 * k) - Float64(y3 * j)), Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5); elseif (b <= 5.5e+91) tmp = Float64(fma(Float64(Float64(y5 * y0) - Float64(y4 * y1)), j, fma(Float64(-z), Float64(Float64(y0 * c) - Float64(y1 * a)), Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y))) * y3); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -2.7e+97], t$95$1, If[LessEqual[b, 5.5e-184], N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 5.5e+91], N[(N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * j + N[((-z) * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(j \cdot t - k \cdot y, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-184}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, y2 \cdot k - y3 \cdot j, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+91}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot y0 - y4 \cdot y1, j, \mathsf{fma}\left(-z, y0 \cdot c - y1 \cdot a, \left(y4 \cdot c - y5 \cdot a\right) \cdot y\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.69999999999999993e97 or 5.4999999999999998e91 < b Initial program 21.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.3%
if -2.69999999999999993e97 < b < 5.4999999999999999e-184Initial program 32.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.3%
if 5.4999999999999999e-184 < b < 5.4999999999999998e91Initial program 26.6%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.6%
Final simplification58.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (* k i) y (* (fma k y2 (* (- j) y3)) (- y0))) y5)))
(if (<= x -3e+174)
(* (* (fma c y0 (* (- y1) a)) x) y2)
(if (<= x -5e-44)
t_1
(if (<= x -1.4e-161)
(* (* (fma k y (* (- j) t)) i) y5)
(if (<= x 7.5e-275)
(* (* (fma (- i) j (* y2 a)) t) y5)
(if (<= x 2.65e+194) t_1 (* (* (fma (- x) y0 (* y4 t)) b) j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma((k * i), y, (fma(k, y2, (-j * y3)) * -y0)) * y5;
double tmp;
if (x <= -3e+174) {
tmp = (fma(c, y0, (-y1 * a)) * x) * y2;
} else if (x <= -5e-44) {
tmp = t_1;
} else if (x <= -1.4e-161) {
tmp = (fma(k, y, (-j * t)) * i) * y5;
} else if (x <= 7.5e-275) {
tmp = (fma(-i, j, (y2 * a)) * t) * y5;
} else if (x <= 2.65e+194) {
tmp = t_1;
} else {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(k * i), y, Float64(fma(k, y2, Float64(Float64(-j) * y3)) * Float64(-y0))) * y5) tmp = 0.0 if (x <= -3e+174) tmp = Float64(Float64(fma(c, y0, Float64(Float64(-y1) * a)) * x) * y2); elseif (x <= -5e-44) tmp = t_1; elseif (x <= -1.4e-161) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); elseif (x <= 7.5e-275) tmp = Float64(Float64(fma(Float64(-i), j, Float64(y2 * a)) * t) * y5); elseif (x <= 2.65e+194) tmp = t_1; else tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(k * i), $MachinePrecision] * y + N[(N[(k * y2 + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * (-y0)), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[x, -3e+174], N[(N[(N[(c * y0 + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, -5e-44], t$95$1, If[LessEqual[x, -1.4e-161], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 7.5e-275], N[(N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 2.65e+194], t$95$1, N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k \cdot i, y, \mathsf{fma}\left(k, y2, \left(-j\right) \cdot y3\right) \cdot \left(-y0\right)\right) \cdot y5\\
\mathbf{if}\;x \leq -3 \cdot 10^{+174}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0, \left(-y1\right) \cdot a\right) \cdot x\right) \cdot y2\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-161}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-275}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot t\right) \cdot y5\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{+194}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\end{array}
\end{array}
if x < -3e174Initial program 28.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in x around inf
Applied rewrites66.3%
if -3e174 < x < -5.00000000000000039e-44 or 7.49999999999999943e-275 < x < 2.65000000000000002e194Initial program 25.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in a around 0
Applied rewrites44.2%
Taylor expanded in t around 0
Applied rewrites47.7%
if -5.00000000000000039e-44 < x < -1.39999999999999996e-161Initial program 37.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in i around inf
Applied rewrites52.6%
if -1.39999999999999996e-161 < x < 7.49999999999999943e-275Initial program 24.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.3%
Taylor expanded in t around inf
Applied rewrites51.0%
if 2.65000000000000002e194 < x Initial program 30.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in b around inf
Applied rewrites69.6%
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 (fma k y2 (* (- j) y3))))
(if (<= x -3e+174)
(* (* (fma c y0 (* (- y1) a)) x) y2)
(if (<= x 1.4e-194)
(* (fma (- y0) t_1 (* (fma k y (* (- j) t)) i)) y5)
(if (<= x 2.65e+194)
(* (fma (* k i) y (* t_1 (- y0))) y5)
(* (* (fma (- x) y0 (* y4 t)) b) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(k, y2, (-j * y3));
double tmp;
if (x <= -3e+174) {
tmp = (fma(c, y0, (-y1 * a)) * x) * y2;
} else if (x <= 1.4e-194) {
tmp = fma(-y0, t_1, (fma(k, y, (-j * t)) * i)) * y5;
} else if (x <= 2.65e+194) {
tmp = fma((k * i), y, (t_1 * -y0)) * y5;
} else {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(k, y2, Float64(Float64(-j) * y3)) tmp = 0.0 if (x <= -3e+174) tmp = Float64(Float64(fma(c, y0, Float64(Float64(-y1) * a)) * x) * y2); elseif (x <= 1.4e-194) tmp = Float64(fma(Float64(-y0), t_1, Float64(fma(k, y, Float64(Float64(-j) * t)) * i)) * y5); elseif (x <= 2.65e+194) tmp = Float64(fma(Float64(k * i), y, Float64(t_1 * Float64(-y0))) * y5); else tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * y2 + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+174], N[(N[(N[(c * y0 + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 1.4e-194], N[(N[((-y0) * t$95$1 + N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 2.65e+194], N[(N[(N[(k * i), $MachinePrecision] * y + N[(t$95$1 * (-y0)), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y2, \left(-j\right) \cdot y3\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+174}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0, \left(-y1\right) \cdot a\right) \cdot x\right) \cdot y2\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-194}:\\
\;\;\;\;\mathsf{fma}\left(-y0, t\_1, \mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{+194}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot i, y, t\_1 \cdot \left(-y0\right)\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\end{array}
\end{array}
if x < -3e174Initial program 28.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in x around inf
Applied rewrites66.3%
if -3e174 < x < 1.40000000000000006e-194Initial program 31.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.0%
Taylor expanded in a around 0
Applied rewrites48.6%
if 1.40000000000000006e-194 < x < 2.65000000000000002e194Initial program 20.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.2%
Taylor expanded in a around 0
Applied rewrites33.2%
Taylor expanded in t around 0
Applied rewrites44.4%
if 2.65000000000000002e194 < x Initial program 30.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in b around inf
Applied rewrites69.6%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -6.2e+149)
(* (* (fma c y0 (* (- y1) a)) x) y2)
(if (<= x -4e-162)
(* (fma (* y0 j) y3 (* (fma k y (* (- j) t)) i)) y5)
(if (<= x 2.1e-257)
(* (* (fma (- i) j (* y2 a)) t) y5)
(if (<= x 1.22e-104)
(* (* (fma (- y1) y3 (* b t)) y4) j)
(if (<= x 1.1e+31)
(* (* (fma b y0 (* (- y1) i)) k) z)
(* (* (fma (- x) y0 (* y4 t)) b) j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -6.2e+149) {
tmp = (fma(c, y0, (-y1 * a)) * x) * y2;
} else if (x <= -4e-162) {
tmp = fma((y0 * j), y3, (fma(k, y, (-j * t)) * i)) * y5;
} else if (x <= 2.1e-257) {
tmp = (fma(-i, j, (y2 * a)) * t) * y5;
} else if (x <= 1.22e-104) {
tmp = (fma(-y1, y3, (b * t)) * y4) * j;
} else if (x <= 1.1e+31) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
}
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 <= -6.2e+149) tmp = Float64(Float64(fma(c, y0, Float64(Float64(-y1) * a)) * x) * y2); elseif (x <= -4e-162) tmp = Float64(fma(Float64(y0 * j), y3, Float64(fma(k, y, Float64(Float64(-j) * t)) * i)) * y5); elseif (x <= 2.1e-257) tmp = Float64(Float64(fma(Float64(-i), j, Float64(y2 * a)) * t) * y5); elseif (x <= 1.22e-104) tmp = Float64(Float64(fma(Float64(-y1), y3, Float64(b * t)) * y4) * j); elseif (x <= 1.1e+31) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); else tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -6.2e+149], N[(N[(N[(c * y0 + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, -4e-162], N[(N[(N[(y0 * j), $MachinePrecision] * y3 + N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 2.1e-257], N[(N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 1.22e-104], N[(N[(N[((-y1) * y3 + N[(b * t), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 1.1e+31], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+149}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0, \left(-y1\right) \cdot a\right) \cdot x\right) \cdot y2\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-162}:\\
\;\;\;\;\mathsf{fma}\left(y0 \cdot j, y3, \mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-257}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot t\right) \cdot y5\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, y3, b \cdot t\right) \cdot y4\right) \cdot j\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+31}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\end{array}
\end{array}
if x < -6.19999999999999974e149Initial program 29.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.5%
Taylor expanded in x around inf
Applied rewrites59.1%
if -6.19999999999999974e149 < x < -3.99999999999999982e-162Initial program 33.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in a around 0
Applied rewrites50.0%
Taylor expanded in y2 around 0
Applied rewrites47.1%
if -3.99999999999999982e-162 < x < 2.1000000000000001e-257Initial program 24.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in t around inf
Applied rewrites50.0%
if 2.1000000000000001e-257 < x < 1.21999999999999997e-104Initial program 28.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in y4 around inf
Applied rewrites51.5%
if 1.21999999999999997e-104 < x < 1.10000000000000005e31Initial program 22.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in i around inf
Applied rewrites22.2%
Taylor expanded in k around inf
Applied rewrites49.0%
if 1.10000000000000005e31 < x Initial program 24.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.9%
Taylor expanded in b around inf
Applied rewrites50.6%
Final simplification50.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -6.2e+149)
(* (* (fma c y0 (* (- y1) a)) x) y2)
(if (<= x -1.4e-161)
(* (* (fma k y (* (- j) t)) i) y5)
(if (<= x 2.1e-257)
(* (* (fma (- i) j (* y2 a)) t) y5)
(if (<= x 1.22e-104)
(* (* (fma (- y1) y3 (* b t)) y4) j)
(if (<= x 1.1e+31)
(* (* (fma b y0 (* (- y1) i)) k) z)
(* (* (fma (- x) y0 (* y4 t)) b) j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -6.2e+149) {
tmp = (fma(c, y0, (-y1 * a)) * x) * y2;
} else if (x <= -1.4e-161) {
tmp = (fma(k, y, (-j * t)) * i) * y5;
} else if (x <= 2.1e-257) {
tmp = (fma(-i, j, (y2 * a)) * t) * y5;
} else if (x <= 1.22e-104) {
tmp = (fma(-y1, y3, (b * t)) * y4) * j;
} else if (x <= 1.1e+31) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
}
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 <= -6.2e+149) tmp = Float64(Float64(fma(c, y0, Float64(Float64(-y1) * a)) * x) * y2); elseif (x <= -1.4e-161) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); elseif (x <= 2.1e-257) tmp = Float64(Float64(fma(Float64(-i), j, Float64(y2 * a)) * t) * y5); elseif (x <= 1.22e-104) tmp = Float64(Float64(fma(Float64(-y1), y3, Float64(b * t)) * y4) * j); elseif (x <= 1.1e+31) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); else tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -6.2e+149], N[(N[(N[(c * y0 + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, -1.4e-161], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 2.1e-257], N[(N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[x, 1.22e-104], N[(N[(N[((-y1) * y3 + N[(b * t), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 1.1e+31], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+149}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0, \left(-y1\right) \cdot a\right) \cdot x\right) \cdot y2\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-161}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-257}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot t\right) \cdot y5\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, y3, b \cdot t\right) \cdot y4\right) \cdot j\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+31}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\end{array}
\end{array}
if x < -6.19999999999999974e149Initial program 29.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.5%
Taylor expanded in x around inf
Applied rewrites59.1%
if -6.19999999999999974e149 < x < -1.39999999999999996e-161Initial program 33.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in i around inf
Applied rewrites42.7%
if -1.39999999999999996e-161 < x < 2.1000000000000001e-257Initial program 24.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in t around inf
Applied rewrites50.0%
if 2.1000000000000001e-257 < x < 1.21999999999999997e-104Initial program 28.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in y4 around inf
Applied rewrites51.5%
if 1.21999999999999997e-104 < x < 1.10000000000000005e31Initial program 22.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in i around inf
Applied rewrites22.2%
Taylor expanded in k around inf
Applied rewrites49.0%
if 1.10000000000000005e31 < x Initial program 24.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.9%
Taylor expanded in b around inf
Applied rewrites50.6%
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 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4.8e+149)
t_1
(if (<= y4 -7.4e+34)
(* (* (fma (- t) y5 (* y1 x)) i) j)
(if (<= y4 -8.4e-116)
(* (* (fma b y0 (* (- y1) i)) k) z)
(if (<= y4 1.75e-12)
(* (* (fma (- y0) y3 (* i t)) c) z)
(if (<= y4 7e+163) (* (* (fma k y (* (- j) t)) 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 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4.8e+149) {
tmp = t_1;
} else if (y4 <= -7.4e+34) {
tmp = (fma(-t, y5, (y1 * x)) * i) * j;
} else if (y4 <= -8.4e-116) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else if (y4 <= 1.75e-12) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} else if (y4 <= 7e+163) {
tmp = (fma(k, y, (-j * t)) * 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(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4.8e+149) tmp = t_1; elseif (y4 <= -7.4e+34) tmp = Float64(Float64(fma(Float64(-t), y5, Float64(y1 * x)) * i) * j); elseif (y4 <= -8.4e-116) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); elseif (y4 <= 1.75e-12) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); elseif (y4 <= 7e+163) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.8e+149], t$95$1, If[LessEqual[y4, -7.4e+34], N[(N[(N[((-t) * y5 + N[(y1 * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y4, -8.4e-116], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 1.75e-12], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 7e+163], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4.8 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -7.4 \cdot 10^{+34}:\\
\;\;\;\;\left(\mathsf{fma}\left(-t, y5, y1 \cdot x\right) \cdot i\right) \cdot j\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-116}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{+163}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.80000000000000024e149 or 7.0000000000000005e163 < y4 Initial program 19.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in y0 around 0
Applied rewrites48.0%
Taylor expanded in y4 around inf
Applied rewrites58.1%
if -4.80000000000000024e149 < y4 < -7.40000000000000017e34Initial program 16.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in i around inf
Applied rewrites58.5%
if -7.40000000000000017e34 < y4 < -8.3999999999999996e-116Initial program 49.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in i around inf
Applied rewrites29.6%
Taylor expanded in k around inf
Applied rewrites45.3%
if -8.3999999999999996e-116 < y4 < 1.75e-12Initial program 32.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.0%
Taylor expanded in c around inf
Applied rewrites39.6%
if 1.75e-12 < y4 < 7.0000000000000005e163Initial program 21.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in i around inf
Applied rewrites48.3%
Final simplification48.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- b) t (* y3 y1)) a) z)))
(if (<= a -4.8e+104)
t_1
(if (<= a -3.4e-77)
(* (fma k y4 (* (- x) a)) (* y2 y1))
(if (<= a -3.9e-232)
(* (* (fma (- y0) y2 (* i y)) k) y5)
(if (<= a 2.65e-221)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(if (<= a 5.5e+104) (* (* (fma (- i) t (* y3 y0)) 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 = (fma(-b, t, (y3 * y1)) * a) * z;
double tmp;
if (a <= -4.8e+104) {
tmp = t_1;
} else if (a <= -3.4e-77) {
tmp = fma(k, y4, (-x * a)) * (y2 * y1);
} else if (a <= -3.9e-232) {
tmp = (fma(-y0, y2, (i * y)) * k) * y5;
} else if (a <= 2.65e-221) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else if (a <= 5.5e+104) {
tmp = (fma(-i, t, (y3 * y0)) * 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(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * a) * z) tmp = 0.0 if (a <= -4.8e+104) tmp = t_1; elseif (a <= -3.4e-77) tmp = Float64(fma(k, y4, Float64(Float64(-x) * a)) * Float64(y2 * y1)); elseif (a <= -3.9e-232) tmp = Float64(Float64(fma(Float64(-y0), y2, Float64(i * y)) * k) * y5); elseif (a <= 2.65e-221) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); elseif (a <= 5.5e+104) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * j) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[a, -4.8e+104], t$95$1, If[LessEqual[a, -3.4e-77], N[(N[(k * y4 + N[((-x) * a), $MachinePrecision]), $MachinePrecision] * N[(y2 * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.9e-232], N[(N[(N[((-y0) * y2 + N[(i * y), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 2.65e-221], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, 5.5e+104], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot a\right) \cdot z\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+104}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.4 \cdot 10^{-77}:\\
\;\;\;\;\mathsf{fma}\left(k, y4, \left(-x\right) \cdot a\right) \cdot \left(y2 \cdot y1\right)\\
\mathbf{elif}\;a \leq -3.9 \cdot 10^{-232}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y2, i \cdot y\right) \cdot k\right) \cdot y5\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{-221}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot j\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.8e104 or 5.50000000000000017e104 < a Initial program 17.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.4%
Taylor expanded in a around inf
Applied rewrites53.0%
if -4.8e104 < a < -3.39999999999999983e-77Initial program 25.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.4%
Taylor expanded in y1 around inf
Applied rewrites46.8%
if -3.39999999999999983e-77 < a < -3.8999999999999998e-232Initial program 43.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
Taylor expanded in k around inf
Applied rewrites37.3%
if -3.8999999999999998e-232 < a < 2.65000000000000009e-221Initial program 47.2%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in k around inf
Applied rewrites46.0%
if 2.65000000000000009e-221 < a < 5.50000000000000017e104Initial program 20.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in j around inf
Applied rewrites50.0%
Final simplification48.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4.2e+25)
t_1
(if (<= y4 -8.4e-116)
(* (* (fma b y0 (* (- y1) i)) k) z)
(if (<= y4 5.2e-187)
(* (* (fma (- y0) y3 (* i t)) c) z)
(if (<= y4 2.35e-51)
(* (* (fma a y3 (* (- k) i)) y1) z)
(if (<= y4 7.5e+148) (* (fma (- a) y3 (* k i)) (* y5 y)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4.2e+25) {
tmp = t_1;
} else if (y4 <= -8.4e-116) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else if (y4 <= 5.2e-187) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} else if (y4 <= 2.35e-51) {
tmp = (fma(a, y3, (-k * i)) * y1) * z;
} else if (y4 <= 7.5e+148) {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4.2e+25) tmp = t_1; elseif (y4 <= -8.4e-116) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); elseif (y4 <= 5.2e-187) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); elseif (y4 <= 2.35e-51) tmp = Float64(Float64(fma(a, y3, Float64(Float64(-k) * i)) * y1) * z); elseif (y4 <= 7.5e+148) tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.2e+25], t$95$1, If[LessEqual[y4, -8.4e-116], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 5.2e-187], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 2.35e-51], N[(N[(N[(a * y3 + N[((-k) * i), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 7.5e+148], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4.2 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-116}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{elif}\;y4 \leq 5.2 \cdot 10^{-187}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;y4 \leq 2.35 \cdot 10^{-51}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, y3, \left(-k\right) \cdot i\right) \cdot y1\right) \cdot z\\
\mathbf{elif}\;y4 \leq 7.5 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.1999999999999998e25 or 7.50000000000000008e148 < y4 Initial program 17.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.4%
Taylor expanded in y0 around 0
Applied rewrites44.6%
Taylor expanded in y4 around inf
Applied rewrites51.7%
if -4.1999999999999998e25 < y4 < -8.3999999999999996e-116Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in i around inf
Applied rewrites29.2%
Taylor expanded in k around inf
Applied rewrites42.9%
if -8.3999999999999996e-116 < y4 < 5.1999999999999999e-187Initial program 30.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in c around inf
Applied rewrites45.9%
if 5.1999999999999999e-187 < y4 < 2.3499999999999999e-51Initial program 34.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in i around inf
Applied rewrites36.6%
Taylor expanded in y1 around inf
Applied rewrites43.2%
if 2.3499999999999999e-51 < y4 < 7.50000000000000008e148Initial program 26.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.1%
Taylor expanded in y around inf
Applied rewrites38.2%
Final simplification46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (- y2) (* y0 k)) y5)))
(if (<= a -2.3e+184)
(* (* (* a z) y1) y3)
(if (<= a -2.55e-129)
(* (* (* y0 k) b) z)
(if (<= a -4e-297)
t_1
(if (<= a 4.9e-8)
(* (* (* (- j) t) i) y5)
(if (<= a 7.2e+122) t_1 (* (* (* y3 z) a) y1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (-y2 * (y0 * k)) * y5;
double tmp;
if (a <= -2.3e+184) {
tmp = ((a * z) * y1) * y3;
} else if (a <= -2.55e-129) {
tmp = ((y0 * k) * b) * z;
} else if (a <= -4e-297) {
tmp = t_1;
} else if (a <= 4.9e-8) {
tmp = ((-j * t) * i) * y5;
} else if (a <= 7.2e+122) {
tmp = t_1;
} else {
tmp = ((y3 * z) * a) * y1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (-y2 * (y0 * k)) * y5
if (a <= (-2.3d+184)) then
tmp = ((a * z) * y1) * y3
else if (a <= (-2.55d-129)) then
tmp = ((y0 * k) * b) * z
else if (a <= (-4d-297)) then
tmp = t_1
else if (a <= 4.9d-8) then
tmp = ((-j * t) * i) * y5
else if (a <= 7.2d+122) then
tmp = t_1
else
tmp = ((y3 * z) * a) * y1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (-y2 * (y0 * k)) * y5;
double tmp;
if (a <= -2.3e+184) {
tmp = ((a * z) * y1) * y3;
} else if (a <= -2.55e-129) {
tmp = ((y0 * k) * b) * z;
} else if (a <= -4e-297) {
tmp = t_1;
} else if (a <= 4.9e-8) {
tmp = ((-j * t) * i) * y5;
} else if (a <= 7.2e+122) {
tmp = t_1;
} else {
tmp = ((y3 * z) * a) * y1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (-y2 * (y0 * k)) * y5 tmp = 0 if a <= -2.3e+184: tmp = ((a * z) * y1) * y3 elif a <= -2.55e-129: tmp = ((y0 * k) * b) * z elif a <= -4e-297: tmp = t_1 elif a <= 4.9e-8: tmp = ((-j * t) * i) * y5 elif a <= 7.2e+122: tmp = t_1 else: tmp = ((y3 * z) * a) * 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(Float64(-y2) * Float64(y0 * k)) * y5) tmp = 0.0 if (a <= -2.3e+184) tmp = Float64(Float64(Float64(a * z) * y1) * y3); elseif (a <= -2.55e-129) tmp = Float64(Float64(Float64(y0 * k) * b) * z); elseif (a <= -4e-297) tmp = t_1; elseif (a <= 4.9e-8) tmp = Float64(Float64(Float64(Float64(-j) * t) * i) * y5); elseif (a <= 7.2e+122) tmp = t_1; else tmp = Float64(Float64(Float64(y3 * z) * a) * y1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (-y2 * (y0 * k)) * y5; tmp = 0.0; if (a <= -2.3e+184) tmp = ((a * z) * y1) * y3; elseif (a <= -2.55e-129) tmp = ((y0 * k) * b) * z; elseif (a <= -4e-297) tmp = t_1; elseif (a <= 4.9e-8) tmp = ((-j * t) * i) * y5; elseif (a <= 7.2e+122) tmp = t_1; else tmp = ((y3 * z) * a) * 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[((-y2) * N[(y0 * k), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[a, -2.3e+184], N[(N[(N[(a * z), $MachinePrecision] * y1), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[a, -2.55e-129], N[(N[(N[(y0 * k), $MachinePrecision] * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, -4e-297], t$95$1, If[LessEqual[a, 4.9e-8], N[(N[(N[((-j) * t), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 7.2e+122], t$95$1, N[(N[(N[(y3 * z), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-y2\right) \cdot \left(y0 \cdot k\right)\right) \cdot y5\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{+184}:\\
\;\;\;\;\left(\left(a \cdot z\right) \cdot y1\right) \cdot y3\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-129}:\\
\;\;\;\;\left(\left(y0 \cdot k\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{-8}:\\
\;\;\;\;\left(\left(\left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y3 \cdot z\right) \cdot a\right) \cdot y1\\
\end{array}
\end{array}
if a < -2.3e184Initial program 11.0%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites31.9%
Taylor expanded in a around inf
Applied rewrites37.9%
Taylor expanded in t around 0
Applied rewrites28.0%
Applied rewrites43.2%
if -2.3e184 < a < -2.5499999999999999e-129Initial program 30.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.5%
Taylor expanded in i around inf
Applied rewrites14.5%
Taylor expanded in k around inf
Applied rewrites35.9%
Taylor expanded in b around inf
Applied rewrites28.2%
if -2.5499999999999999e-129 < a < -4.00000000000000016e-297 or 4.9000000000000002e-8 < a < 7.2000000000000005e122Initial program 37.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.5%
Taylor expanded in a around 0
Applied rewrites50.9%
Taylor expanded in y2 around inf
Applied rewrites35.8%
if -4.00000000000000016e-297 < a < 4.9000000000000002e-8Initial program 25.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.7%
Taylor expanded in a around 0
Applied rewrites41.9%
Taylor expanded in t around inf
Applied rewrites38.0%
if 7.2000000000000005e122 < a Initial program 16.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.5%
Taylor expanded in a around inf
Applied rewrites50.0%
Taylor expanded in t around 0
Applied rewrites41.7%
Applied rewrites49.4%
Final simplification37.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -2.4e+171)
t_1
(if (<= y4 -1.52e-74)
(* (* (fma (- i) j (* y2 a)) t) y5)
(if (<= y4 1.75e-12)
(* (* (fma (- y0) y3 (* i t)) c) z)
(if (<= y4 7e+163) (* (* (fma k y (* (- j) t)) 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 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -2.4e+171) {
tmp = t_1;
} else if (y4 <= -1.52e-74) {
tmp = (fma(-i, j, (y2 * a)) * t) * y5;
} else if (y4 <= 1.75e-12) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} else if (y4 <= 7e+163) {
tmp = (fma(k, y, (-j * t)) * 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(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -2.4e+171) tmp = t_1; elseif (y4 <= -1.52e-74) tmp = Float64(Float64(fma(Float64(-i), j, Float64(y2 * a)) * t) * y5); elseif (y4 <= 1.75e-12) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); elseif (y4 <= 7e+163) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.4e+171], t$95$1, If[LessEqual[y4, -1.52e-74], N[(N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[y4, 1.75e-12], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 7e+163], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -2.4 \cdot 10^{+171}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.52 \cdot 10^{-74}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot t\right) \cdot y5\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{+163}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -2.39999999999999998e171 or 7.0000000000000005e163 < y4 Initial program 20.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.2%
Taylor expanded in y0 around 0
Applied rewrites47.9%
Taylor expanded in y4 around inf
Applied rewrites58.5%
if -2.39999999999999998e171 < y4 < -1.51999999999999997e-74Initial program 25.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in t around inf
Applied rewrites46.7%
if -1.51999999999999997e-74 < y4 < 1.75e-12Initial program 35.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.6%
Taylor expanded in c around inf
Applied rewrites37.5%
if 1.75e-12 < y4 < 7.0000000000000005e163Initial program 21.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in i around inf
Applied rewrites48.3%
Final simplification46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4.2e+25)
t_1
(if (<= y4 -8.4e-116)
(* (* (fma b y0 (* (- y1) i)) k) z)
(if (<= y4 1.75e-12)
(* (* (fma (- y0) y3 (* i t)) c) z)
(if (<= y4 7e+163) (* (* (fma k y (* (- j) t)) 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 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4.2e+25) {
tmp = t_1;
} else if (y4 <= -8.4e-116) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else if (y4 <= 1.75e-12) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} else if (y4 <= 7e+163) {
tmp = (fma(k, y, (-j * t)) * 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(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4.2e+25) tmp = t_1; elseif (y4 <= -8.4e-116) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); elseif (y4 <= 1.75e-12) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); elseif (y4 <= 7e+163) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.2e+25], t$95$1, If[LessEqual[y4, -8.4e-116], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 1.75e-12], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 7e+163], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4.2 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-116}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{elif}\;y4 \leq 1.75 \cdot 10^{-12}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;y4 \leq 7 \cdot 10^{+163}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.1999999999999998e25 or 7.0000000000000005e163 < y4 Initial program 17.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y0 around 0
Applied rewrites45.0%
Taylor expanded in y4 around inf
Applied rewrites52.1%
if -4.1999999999999998e25 < y4 < -8.3999999999999996e-116Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in i around inf
Applied rewrites29.2%
Taylor expanded in k around inf
Applied rewrites42.9%
if -8.3999999999999996e-116 < y4 < 1.75e-12Initial program 32.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.0%
Taylor expanded in c around inf
Applied rewrites39.6%
if 1.75e-12 < y4 < 7.0000000000000005e163Initial program 21.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in i around inf
Applied rewrites48.3%
Final simplification46.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4e+25)
t_1
(if (<= y4 -1.45e-125)
(* (fma b y0 (* (- y1) i)) (* k z))
(if (<= y4 7.2e-59)
(* (fma j y0 (* (- a) y)) (* y5 y3))
(if (<= y4 7.5e+148) (* (fma (- a) y3 (* k i)) (* y5 y)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4e+25) {
tmp = t_1;
} else if (y4 <= -1.45e-125) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} else if (y4 <= 7.2e-59) {
tmp = fma(j, y0, (-a * y)) * (y5 * y3);
} else if (y4 <= 7.5e+148) {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4e+25) tmp = t_1; elseif (y4 <= -1.45e-125) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); elseif (y4 <= 7.2e-59) tmp = Float64(fma(j, y0, Float64(Float64(-a) * y)) * Float64(y5 * y3)); elseif (y4 <= 7.5e+148) tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4e+25], t$95$1, If[LessEqual[y4, -1.45e-125], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.2e-59], N[(N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision] * N[(y5 * y3), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.5e+148], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.45 \cdot 10^{-125}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{elif}\;y4 \leq 7.2 \cdot 10^{-59}:\\
\;\;\;\;\mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right) \cdot \left(y5 \cdot y3\right)\\
\mathbf{elif}\;y4 \leq 7.5 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.00000000000000036e25 or 7.50000000000000008e148 < y4 Initial program 17.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.4%
Taylor expanded in y0 around 0
Applied rewrites44.6%
Taylor expanded in y4 around inf
Applied rewrites51.7%
if -4.00000000000000036e25 < y4 < -1.4500000000000001e-125Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in k around inf
Applied rewrites42.8%
if -1.4500000000000001e-125 < y4 < 7.20000000000000001e-59Initial program 31.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.2%
Taylor expanded in a around 0
Applied rewrites39.0%
Taylor expanded in y3 around inf
Applied rewrites32.8%
if 7.20000000000000001e-59 < y4 < 7.50000000000000008e148Initial program 26.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.1%
Taylor expanded in y around inf
Applied rewrites38.2%
Final simplification42.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (- a) y3 (* k i)) (* y5 y))))
(if (<= t -6.6e+241)
(* (* (* (- j) t) i) y5)
(if (<= t -5.8e+58)
t_1
(if (<= t -1.95e-262)
(* (fma a b (* (- i) c)) (* y x))
(if (<= t 4.8e+97) t_1 (* (* a z) (fma (- b) t (* y3 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 = fma(-a, y3, (k * i)) * (y5 * y);
double tmp;
if (t <= -6.6e+241) {
tmp = ((-j * t) * i) * y5;
} else if (t <= -5.8e+58) {
tmp = t_1;
} else if (t <= -1.95e-262) {
tmp = fma(a, b, (-i * c)) * (y * x);
} else if (t <= 4.8e+97) {
tmp = t_1;
} else {
tmp = (a * z) * fma(-b, t, (y3 * y1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)) tmp = 0.0 if (t <= -6.6e+241) tmp = Float64(Float64(Float64(Float64(-j) * t) * i) * y5); elseif (t <= -5.8e+58) tmp = t_1; elseif (t <= -1.95e-262) tmp = Float64(fma(a, b, Float64(Float64(-i) * c)) * Float64(y * x)); elseif (t <= 4.8e+97) tmp = t_1; else tmp = Float64(Float64(a * z) * fma(Float64(-b), t, Float64(y3 * y1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.6e+241], N[(N[(N[((-j) * t), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[t, -5.8e+58], t$95$1, If[LessEqual[t, -1.95e-262], N[(N[(a * b + N[((-i) * c), $MachinePrecision]), $MachinePrecision] * N[(y * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+97], t$95$1, N[(N[(a * z), $MachinePrecision] * N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{if}\;t \leq -6.6 \cdot 10^{+241}:\\
\;\;\;\;\left(\left(\left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;t \leq -5.8 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-262}:\\
\;\;\;\;\mathsf{fma}\left(a, b, \left(-i\right) \cdot c\right) \cdot \left(y \cdot x\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(-b, t, y3 \cdot y1\right)\\
\end{array}
\end{array}
if t < -6.6e241Initial program 40.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.2%
Taylor expanded in a around 0
Applied rewrites75.4%
Taylor expanded in t around inf
Applied rewrites70.5%
if -6.6e241 < t < -5.80000000000000004e58 or -1.94999999999999992e-262 < t < 4.8e97Initial program 26.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.3%
Taylor expanded in y around inf
Applied rewrites37.2%
if -5.80000000000000004e58 < t < -1.94999999999999992e-262Initial program 36.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.5%
Taylor expanded in y around inf
Applied rewrites38.7%
if 4.8e97 < t Initial program 12.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.1%
Taylor expanded in a around inf
Applied rewrites45.7%
Final simplification41.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -6.8e-135)
(* (fma (- a) y3 (* k i)) (* y5 y))
(if (<= y5 9.2e-274)
(* (fma (- c) y (* y1 j)) (* i x))
(if (<= y5 3.6e+112)
(* (fma b y0 (* (- y1) i)) (* k z))
(if (<= y5 1.15e+240)
(* (fma j y0 (* (- a) y)) (* y5 y3))
(* (* (* (- y5) t) i) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -6.8e-135) {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
} else if (y5 <= 9.2e-274) {
tmp = fma(-c, y, (y1 * j)) * (i * x);
} else if (y5 <= 3.6e+112) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} else if (y5 <= 1.15e+240) {
tmp = fma(j, y0, (-a * y)) * (y5 * y3);
} else {
tmp = ((-y5 * t) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -6.8e-135) tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); elseif (y5 <= 9.2e-274) tmp = Float64(fma(Float64(-c), y, Float64(y1 * j)) * Float64(i * x)); elseif (y5 <= 3.6e+112) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); elseif (y5 <= 1.15e+240) tmp = Float64(fma(j, y0, Float64(Float64(-a) * y)) * Float64(y5 * y3)); else tmp = Float64(Float64(Float64(Float64(-y5) * t) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -6.8e-135], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.2e-274], N[(N[((-c) * y + N[(y1 * j), $MachinePrecision]), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.6e+112], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.15e+240], N[(N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision] * N[(y5 * y3), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-y5) * t), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -6.8 \cdot 10^{-135}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{elif}\;y5 \leq 9.2 \cdot 10^{-274}:\\
\;\;\;\;\mathsf{fma}\left(-c, y, y1 \cdot j\right) \cdot \left(i \cdot x\right)\\
\mathbf{elif}\;y5 \leq 3.6 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{elif}\;y5 \leq 1.15 \cdot 10^{+240}:\\
\;\;\;\;\mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right) \cdot \left(y5 \cdot y3\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(-y5\right) \cdot t\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if y5 < -6.79999999999999978e-135Initial program 23.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.1%
Taylor expanded in y around inf
Applied rewrites41.9%
if -6.79999999999999978e-135 < y5 < 9.19999999999999984e-274Initial program 34.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.6%
Taylor expanded in i around inf
Applied rewrites41.3%
if 9.19999999999999984e-274 < y5 < 3.6e112Initial program 32.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in k around inf
Applied rewrites34.9%
if 3.6e112 < y5 < 1.15000000000000001e240Initial program 22.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.9%
Taylor expanded in a around 0
Applied rewrites52.3%
Taylor expanded in y3 around inf
Applied rewrites42.2%
if 1.15000000000000001e240 < y5 Initial program 13.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites26.9%
Taylor expanded in i around inf
Applied rewrites60.2%
Taylor expanded in x around 0
Applied rewrites66.9%
Final simplification41.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -2.15e-44)
(* (fma (- a) y3 (* k i)) (* y5 y))
(if (<= y5 -3.45e-308)
(* (* a z) (fma (- b) t (* y3 y1)))
(if (<= y5 3.6e+112)
(* (fma b y0 (* (- y1) i)) (* k z))
(if (<= y5 1.15e+240)
(* (fma j y0 (* (- a) y)) (* y5 y3))
(* (* (* (- y5) t) i) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.15e-44) {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
} else if (y5 <= -3.45e-308) {
tmp = (a * z) * fma(-b, t, (y3 * y1));
} else if (y5 <= 3.6e+112) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} else if (y5 <= 1.15e+240) {
tmp = fma(j, y0, (-a * y)) * (y5 * y3);
} else {
tmp = ((-y5 * t) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -2.15e-44) tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); elseif (y5 <= -3.45e-308) tmp = Float64(Float64(a * z) * fma(Float64(-b), t, Float64(y3 * y1))); elseif (y5 <= 3.6e+112) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); elseif (y5 <= 1.15e+240) tmp = Float64(fma(j, y0, Float64(Float64(-a) * y)) * Float64(y5 * y3)); else tmp = Float64(Float64(Float64(Float64(-y5) * t) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.15e-44], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.45e-308], N[(N[(a * z), $MachinePrecision] * N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.6e+112], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.15e+240], N[(N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision] * N[(y5 * y3), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-y5) * t), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.15 \cdot 10^{-44}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{elif}\;y5 \leq -3.45 \cdot 10^{-308}:\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(-b, t, y3 \cdot y1\right)\\
\mathbf{elif}\;y5 \leq 3.6 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{elif}\;y5 \leq 1.15 \cdot 10^{+240}:\\
\;\;\;\;\mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right) \cdot \left(y5 \cdot y3\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(-y5\right) \cdot t\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if y5 < -2.15000000000000007e-44Initial program 17.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
Taylor expanded in y around inf
Applied rewrites46.0%
if -2.15000000000000007e-44 < y5 < -3.4499999999999998e-308Initial program 32.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in a around inf
Applied rewrites37.0%
if -3.4499999999999998e-308 < y5 < 3.6e112Initial program 36.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in k around inf
Applied rewrites33.9%
if 3.6e112 < y5 < 1.15000000000000001e240Initial program 22.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.9%
Taylor expanded in a around 0
Applied rewrites52.3%
Taylor expanded in y3 around inf
Applied rewrites42.2%
if 1.15000000000000001e240 < y5 Initial program 13.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites26.9%
Taylor expanded in i around inf
Applied rewrites60.2%
Taylor expanded in x around 0
Applied rewrites66.9%
Final simplification40.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (- y2) (* y0 k)) y5))
(t_2 (* (* a z) (fma (- b) t (* y3 y1)))))
(if (<= a -2.25e-19)
t_2
(if (<= a -4e-297)
t_1
(if (<= a 4.9e-8)
(* (* (* (- j) t) i) y5)
(if (<= a 4.8e+94) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (-y2 * (y0 * k)) * y5;
double t_2 = (a * z) * fma(-b, t, (y3 * y1));
double tmp;
if (a <= -2.25e-19) {
tmp = t_2;
} else if (a <= -4e-297) {
tmp = t_1;
} else if (a <= 4.9e-8) {
tmp = ((-j * t) * i) * y5;
} else if (a <= 4.8e+94) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(-y2) * Float64(y0 * k)) * y5) t_2 = Float64(Float64(a * z) * fma(Float64(-b), t, Float64(y3 * y1))) tmp = 0.0 if (a <= -2.25e-19) tmp = t_2; elseif (a <= -4e-297) tmp = t_1; elseif (a <= 4.9e-8) tmp = Float64(Float64(Float64(Float64(-j) * t) * i) * y5); elseif (a <= 4.8e+94) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[((-y2) * N[(y0 * k), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * z), $MachinePrecision] * N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.25e-19], t$95$2, If[LessEqual[a, -4e-297], t$95$1, If[LessEqual[a, 4.9e-8], N[(N[(N[((-j) * t), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 4.8e+94], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-y2\right) \cdot \left(y0 \cdot k\right)\right) \cdot y5\\
t_2 := \left(a \cdot z\right) \cdot \mathsf{fma}\left(-b, t, y3 \cdot y1\right)\\
\mathbf{if}\;a \leq -2.25 \cdot 10^{-19}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{-8}:\\
\;\;\;\;\left(\left(\left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -2.25000000000000006e-19 or 4.79999999999999965e94 < a Initial program 16.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in a around inf
Applied rewrites39.8%
if -2.25000000000000006e-19 < a < -4.00000000000000016e-297 or 4.9000000000000002e-8 < a < 4.79999999999999965e94Initial program 41.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.4%
Taylor expanded in a around 0
Applied rewrites43.6%
Taylor expanded in y2 around inf
Applied rewrites32.6%
if -4.00000000000000016e-297 < a < 4.9000000000000002e-8Initial program 25.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.7%
Taylor expanded in a around 0
Applied rewrites41.9%
Taylor expanded in t around inf
Applied rewrites38.0%
Final simplification36.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4.2e+25)
t_1
(if (<= y4 -8.4e-116)
(* (* (fma b y0 (* (- y1) i)) k) z)
(if (<= y4 61000000000000.0)
(* (* (fma (- y0) y3 (* i t)) c) z)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4.2e+25) {
tmp = t_1;
} else if (y4 <= -8.4e-116) {
tmp = (fma(b, y0, (-y1 * i)) * k) * z;
} else if (y4 <= 61000000000000.0) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} 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(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4.2e+25) tmp = t_1; elseif (y4 <= -8.4e-116) tmp = Float64(Float64(fma(b, y0, Float64(Float64(-y1) * i)) * k) * z); elseif (y4 <= 61000000000000.0) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4.2e+25], t$95$1, If[LessEqual[y4, -8.4e-116], N[(N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y4, 61000000000000.0], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4.2 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -8.4 \cdot 10^{-116}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot k\right) \cdot z\\
\mathbf{elif}\;y4 \leq 61000000000000:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.1999999999999998e25 or 6.1e13 < y4 Initial program 18.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in y0 around 0
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites46.3%
if -4.1999999999999998e25 < y4 < -8.3999999999999996e-116Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in i around inf
Applied rewrites29.2%
Taylor expanded in k around inf
Applied rewrites42.9%
if -8.3999999999999996e-116 < y4 < 6.1e13Initial program 31.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in c around inf
Applied rewrites39.0%
Final simplification43.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y1 (* (- t) c)) (* y4 y2))))
(if (<= y4 -4e+25)
t_1
(if (<= y4 -8.8e-116)
(* (fma b y0 (* (- y1) i)) (* k z))
(if (<= y4 61000000000000.0)
(* (* (fma (- y0) y3 (* i t)) c) z)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(k, y1, (-t * c)) * (y4 * y2);
double tmp;
if (y4 <= -4e+25) {
tmp = t_1;
} else if (y4 <= -8.8e-116) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} else if (y4 <= 61000000000000.0) {
tmp = (fma(-y0, y3, (i * t)) * c) * z;
} 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(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)) tmp = 0.0 if (y4 <= -4e+25) tmp = t_1; elseif (y4 <= -8.8e-116) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); elseif (y4 <= 61000000000000.0) tmp = Float64(Float64(fma(Float64(-y0), y3, Float64(i * t)) * c) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -4e+25], t$95$1, If[LessEqual[y4, -8.8e-116], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 61000000000000.0], N[(N[(N[((-y0) * y3 + N[(i * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{if}\;y4 \leq -4 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -8.8 \cdot 10^{-116}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{elif}\;y4 \leq 61000000000000:\\
\;\;\;\;\left(\mathsf{fma}\left(-y0, y3, i \cdot t\right) \cdot c\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -4.00000000000000036e25 or 6.1e13 < y4 Initial program 18.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in y0 around 0
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites46.3%
if -4.00000000000000036e25 < y4 < -8.8000000000000004e-116Initial program 54.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in k around inf
Applied rewrites42.8%
if -8.8000000000000004e-116 < y4 < 6.1e13Initial program 31.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in c around inf
Applied rewrites39.0%
Final simplification43.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (- a) y3 (* k i)) (* y5 y))))
(if (<= y5 -2.2e-44)
t_1
(if (<= y5 1.95e-53)
(* (* (fma (- b) t (* y3 y1)) a) z)
(if (<= y5 2.8e+180) (* (fma k y1 (* (- t) c)) (* y4 y2)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-a, y3, (k * i)) * (y5 * y);
double tmp;
if (y5 <= -2.2e-44) {
tmp = t_1;
} else if (y5 <= 1.95e-53) {
tmp = (fma(-b, t, (y3 * y1)) * a) * z;
} else if (y5 <= 2.8e+180) {
tmp = fma(k, y1, (-t * c)) * (y4 * y2);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)) tmp = 0.0 if (y5 <= -2.2e-44) tmp = t_1; elseif (y5 <= 1.95e-53) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * a) * z); elseif (y5 <= 2.8e+180) tmp = Float64(fma(k, y1, Float64(Float64(-t) * c)) * Float64(y4 * y2)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.2e-44], t$95$1, If[LessEqual[y5, 1.95e-53], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y5, 2.8e+180], N[(N[(k * y1 + N[((-t) * c), $MachinePrecision]), $MachinePrecision] * N[(y4 * y2), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{if}\;y5 \leq -2.2 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 1.95 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot a\right) \cdot z\\
\mathbf{elif}\;y5 \leq 2.8 \cdot 10^{+180}:\\
\;\;\;\;\mathsf{fma}\left(k, y1, \left(-t\right) \cdot c\right) \cdot \left(y4 \cdot y2\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -2.20000000000000012e-44 or 2.80000000000000012e180 < y5 Initial program 18.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.7%
Taylor expanded in y around inf
Applied rewrites46.4%
if -2.20000000000000012e-44 < y5 < 1.9500000000000001e-53Initial program 37.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in a around inf
Applied rewrites38.1%
if 1.9500000000000001e-53 < y5 < 2.80000000000000012e180Initial program 25.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in y0 around 0
Applied rewrites43.9%
Taylor expanded in y4 around inf
Applied rewrites46.3%
Final simplification43.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (- a) y3 (* k i)) (* y5 y))))
(if (<= y5 -2.15e-44)
t_1
(if (<= y5 -3.45e-308)
(* (* a z) (fma (- b) t (* y3 y1)))
(if (<= y5 1.7e+205) (* (fma b y0 (* (- y1) i)) (* k z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-a, y3, (k * i)) * (y5 * y);
double tmp;
if (y5 <= -2.15e-44) {
tmp = t_1;
} else if (y5 <= -3.45e-308) {
tmp = (a * z) * fma(-b, t, (y3 * y1));
} else if (y5 <= 1.7e+205) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} 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(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)) tmp = 0.0 if (y5 <= -2.15e-44) tmp = t_1; elseif (y5 <= -3.45e-308) tmp = Float64(Float64(a * z) * fma(Float64(-b), t, Float64(y3 * y1))); elseif (y5 <= 1.7e+205) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.15e-44], t$95$1, If[LessEqual[y5, -3.45e-308], N[(N[(a * z), $MachinePrecision] * N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e+205], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{if}\;y5 \leq -2.15 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -3.45 \cdot 10^{-308}:\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(-b, t, y3 \cdot y1\right)\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+205}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -2.15000000000000007e-44 or 1.7e205 < y5 Initial program 18.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Taylor expanded in y around inf
Applied rewrites48.3%
if -2.15000000000000007e-44 < y5 < -3.4499999999999998e-308Initial program 32.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in a around inf
Applied rewrites37.0%
if -3.4499999999999998e-308 < y5 < 1.7e205Initial program 32.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in k around inf
Applied rewrites32.2%
Final simplification39.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* a z) y1) y3)))
(if (<= a -2.3e+184)
t_1
(if (<= a -2.4e-159)
(* (* (* y0 k) b) z)
(if (<= a 1.22e+35)
(* (* (* (- j) t) i) y5)
(if (<= a 4.9e+106) (* (* (* y3 y0) 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 = ((a * z) * y1) * y3;
double tmp;
if (a <= -2.3e+184) {
tmp = t_1;
} else if (a <= -2.4e-159) {
tmp = ((y0 * k) * b) * z;
} else if (a <= 1.22e+35) {
tmp = ((-j * t) * i) * y5;
} else if (a <= 4.9e+106) {
tmp = ((y3 * y0) * 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 = ((a * z) * y1) * y3
if (a <= (-2.3d+184)) then
tmp = t_1
else if (a <= (-2.4d-159)) then
tmp = ((y0 * k) * b) * z
else if (a <= 1.22d+35) then
tmp = ((-j * t) * i) * y5
else if (a <= 4.9d+106) then
tmp = ((y3 * y0) * 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 = ((a * z) * y1) * y3;
double tmp;
if (a <= -2.3e+184) {
tmp = t_1;
} else if (a <= -2.4e-159) {
tmp = ((y0 * k) * b) * z;
} else if (a <= 1.22e+35) {
tmp = ((-j * t) * i) * y5;
} else if (a <= 4.9e+106) {
tmp = ((y3 * y0) * 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 = ((a * z) * y1) * y3 tmp = 0 if a <= -2.3e+184: tmp = t_1 elif a <= -2.4e-159: tmp = ((y0 * k) * b) * z elif a <= 1.22e+35: tmp = ((-j * t) * i) * y5 elif a <= 4.9e+106: tmp = ((y3 * y0) * 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(Float64(Float64(a * z) * y1) * y3) tmp = 0.0 if (a <= -2.3e+184) tmp = t_1; elseif (a <= -2.4e-159) tmp = Float64(Float64(Float64(y0 * k) * b) * z); elseif (a <= 1.22e+35) tmp = Float64(Float64(Float64(Float64(-j) * t) * i) * y5); elseif (a <= 4.9e+106) tmp = Float64(Float64(Float64(y3 * y0) * 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 = ((a * z) * y1) * y3; tmp = 0.0; if (a <= -2.3e+184) tmp = t_1; elseif (a <= -2.4e-159) tmp = ((y0 * k) * b) * z; elseif (a <= 1.22e+35) tmp = ((-j * t) * i) * y5; elseif (a <= 4.9e+106) tmp = ((y3 * y0) * 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[(N[(N[(a * z), $MachinePrecision] * y1), $MachinePrecision] * y3), $MachinePrecision]}, If[LessEqual[a, -2.3e+184], t$95$1, If[LessEqual[a, -2.4e-159], N[(N[(N[(y0 * k), $MachinePrecision] * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 1.22e+35], N[(N[(N[((-j) * t), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[a, 4.9e+106], N[(N[(N[(y3 * y0), $MachinePrecision] * j), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(a \cdot z\right) \cdot y1\right) \cdot y3\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{+184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-159}:\\
\;\;\;\;\left(\left(y0 \cdot k\right) \cdot b\right) \cdot z\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{+35}:\\
\;\;\;\;\left(\left(\left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;a \leq 4.9 \cdot 10^{+106}:\\
\;\;\;\;\left(\left(y3 \cdot y0\right) \cdot j\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.3e184 or 4.89999999999999998e106 < a Initial program 13.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.0%
Taylor expanded in a around inf
Applied rewrites46.9%
Taylor expanded in t around 0
Applied rewrites35.3%
Applied rewrites45.1%
if -2.3e184 < a < -2.39999999999999997e-159Initial program 36.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.8%
Taylor expanded in i around inf
Applied rewrites14.2%
Taylor expanded in k around inf
Applied rewrites33.0%
Taylor expanded in b around inf
Applied rewrites26.3%
if -2.39999999999999997e-159 < a < 1.21999999999999999e35Initial program 29.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.0%
Taylor expanded in a around 0
Applied rewrites44.1%
Taylor expanded in t around inf
Applied rewrites32.7%
if 1.21999999999999999e35 < a < 4.89999999999999998e106Initial program 27.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.5%
Taylor expanded in a around 0
Applied rewrites51.2%
Taylor expanded in y3 around inf
Applied rewrites46.7%
Final simplification35.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* (- j) t) i) y5)))
(if (<= j -1.12e+92)
t_1
(if (<= j 3.1e-103)
(* (fma b y0 (* (- y1) i)) (* k z))
(if (<= j 2.45e+160) (* (* (* k i) y) 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 = ((-j * t) * i) * y5;
double tmp;
if (j <= -1.12e+92) {
tmp = t_1;
} else if (j <= 3.1e-103) {
tmp = fma(b, y0, (-y1 * i)) * (k * z);
} else if (j <= 2.45e+160) {
tmp = ((k * i) * y) * 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(Float64(Float64(Float64(-j) * t) * i) * y5) tmp = 0.0 if (j <= -1.12e+92) tmp = t_1; elseif (j <= 3.1e-103) tmp = Float64(fma(b, y0, Float64(Float64(-y1) * i)) * Float64(k * z)); elseif (j <= 2.45e+160) tmp = Float64(Float64(Float64(k * i) * y) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-j) * t), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision]}, If[LessEqual[j, -1.12e+92], t$95$1, If[LessEqual[j, 3.1e-103], N[(N[(b * y0 + N[((-y1) * i), $MachinePrecision]), $MachinePrecision] * N[(k * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.45e+160], N[(N[(N[(k * i), $MachinePrecision] * y), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{if}\;j \leq -1.12 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{-103}:\\
\;\;\;\;\mathsf{fma}\left(b, y0, \left(-y1\right) \cdot i\right) \cdot \left(k \cdot z\right)\\
\mathbf{elif}\;j \leq 2.45 \cdot 10^{+160}:\\
\;\;\;\;\left(\left(k \cdot i\right) \cdot y\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.1199999999999999e92 or 2.4500000000000001e160 < j Initial program 10.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites30.5%
Taylor expanded in a around 0
Applied rewrites42.1%
Taylor expanded in t around inf
Applied rewrites48.1%
if -1.1199999999999999e92 < j < 3.1000000000000001e-103Initial program 33.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in k around inf
Applied rewrites29.6%
if 3.1000000000000001e-103 < j < 2.4500000000000001e160Initial program 36.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in a around 0
Applied rewrites42.0%
Taylor expanded in t around inf
Applied rewrites19.6%
Taylor expanded in y around inf
Applied rewrites34.0%
Final simplification35.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* y0 k) b) z)))
(if (<= y0 -1.4e+61)
t_1
(if (<= y0 2.4e+48)
(* (* (* i c) t) z)
(if (<= y0 1.72e+261) t_1 (* (* (* c x) y0) y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y0 * k) * b) * z;
double tmp;
if (y0 <= -1.4e+61) {
tmp = t_1;
} else if (y0 <= 2.4e+48) {
tmp = ((i * c) * t) * z;
} else if (y0 <= 1.72e+261) {
tmp = t_1;
} else {
tmp = ((c * x) * y0) * y2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((y0 * k) * b) * z
if (y0 <= (-1.4d+61)) then
tmp = t_1
else if (y0 <= 2.4d+48) then
tmp = ((i * c) * t) * z
else if (y0 <= 1.72d+261) then
tmp = t_1
else
tmp = ((c * x) * y0) * y2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y0 * k) * b) * z;
double tmp;
if (y0 <= -1.4e+61) {
tmp = t_1;
} else if (y0 <= 2.4e+48) {
tmp = ((i * c) * t) * z;
} else if (y0 <= 1.72e+261) {
tmp = t_1;
} else {
tmp = ((c * x) * y0) * y2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((y0 * k) * b) * z tmp = 0 if y0 <= -1.4e+61: tmp = t_1 elif y0 <= 2.4e+48: tmp = ((i * c) * t) * z elif y0 <= 1.72e+261: tmp = t_1 else: tmp = ((c * x) * y0) * y2 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(y0 * k) * b) * z) tmp = 0.0 if (y0 <= -1.4e+61) tmp = t_1; elseif (y0 <= 2.4e+48) tmp = Float64(Float64(Float64(i * c) * t) * z); elseif (y0 <= 1.72e+261) tmp = t_1; else tmp = Float64(Float64(Float64(c * x) * y0) * y2); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((y0 * k) * b) * z; tmp = 0.0; if (y0 <= -1.4e+61) tmp = t_1; elseif (y0 <= 2.4e+48) tmp = ((i * c) * t) * z; elseif (y0 <= 1.72e+261) tmp = t_1; else tmp = ((c * x) * y0) * y2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(y0 * k), $MachinePrecision] * b), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[y0, -1.4e+61], t$95$1, If[LessEqual[y0, 2.4e+48], N[(N[(N[(i * c), $MachinePrecision] * t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[y0, 1.72e+261], t$95$1, N[(N[(N[(c * x), $MachinePrecision] * y0), $MachinePrecision] * y2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y0 \cdot k\right) \cdot b\right) \cdot z\\
\mathbf{if}\;y0 \leq -1.4 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\left(\left(i \cdot c\right) \cdot t\right) \cdot z\\
\mathbf{elif}\;y0 \leq 1.72 \cdot 10^{+261}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot x\right) \cdot y0\right) \cdot y2\\
\end{array}
\end{array}
if y0 < -1.4000000000000001e61 or 2.4000000000000001e48 < y0 < 1.7200000000000001e261Initial program 23.5%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.2%
Taylor expanded in i around inf
Applied rewrites18.1%
Taylor expanded in k around inf
Applied rewrites42.0%
Taylor expanded in b around inf
Applied rewrites39.0%
if -1.4000000000000001e61 < y0 < 2.4000000000000001e48Initial program 29.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in i around inf
Applied rewrites28.5%
Taylor expanded in t around inf
Applied rewrites25.9%
if 1.7200000000000001e261 < y0 Initial program 30.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.0%
Taylor expanded in x around inf
Applied rewrites61.9%
Taylor expanded in a around 0
Applied rewrites62.0%
Final simplification31.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* y0 k) b) z))) (if (<= y0 -1.4e+61) t_1 (if (<= y0 2.4e+48) (* (* (* i c) t) z) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y0 * k) * b) * z;
double tmp;
if (y0 <= -1.4e+61) {
tmp = t_1;
} else if (y0 <= 2.4e+48) {
tmp = ((i * c) * t) * z;
} 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 = ((y0 * k) * b) * z
if (y0 <= (-1.4d+61)) then
tmp = t_1
else if (y0 <= 2.4d+48) then
tmp = ((i * c) * t) * z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y0 * k) * b) * z;
double tmp;
if (y0 <= -1.4e+61) {
tmp = t_1;
} else if (y0 <= 2.4e+48) {
tmp = ((i * c) * t) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((y0 * k) * b) * z tmp = 0 if y0 <= -1.4e+61: tmp = t_1 elif y0 <= 2.4e+48: tmp = ((i * c) * t) * z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(y0 * k) * b) * z) tmp = 0.0 if (y0 <= -1.4e+61) tmp = t_1; elseif (y0 <= 2.4e+48) tmp = Float64(Float64(Float64(i * c) * t) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((y0 * k) * b) * z; tmp = 0.0; if (y0 <= -1.4e+61) tmp = t_1; elseif (y0 <= 2.4e+48) tmp = ((i * c) * t) * z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(y0 * k), $MachinePrecision] * b), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[y0, -1.4e+61], t$95$1, If[LessEqual[y0, 2.4e+48], N[(N[(N[(i * c), $MachinePrecision] * t), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y0 \cdot k\right) \cdot b\right) \cdot z\\
\mathbf{if}\;y0 \leq -1.4 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\left(\left(i \cdot c\right) \cdot t\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -1.4000000000000001e61 or 2.4000000000000001e48 < y0 Initial program 24.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.5%
Taylor expanded in i around inf
Applied rewrites19.4%
Taylor expanded in k around inf
Applied rewrites41.8%
Taylor expanded in b around inf
Applied rewrites37.2%
if -1.4000000000000001e61 < y0 < 2.4000000000000001e48Initial program 29.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in i around inf
Applied rewrites28.5%
Taylor expanded in t around inf
Applied rewrites25.9%
Final simplification30.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= a -1.45e-13) (* (* (* y1 a) y3) z) (if (<= a 5.2e+48) (* (* (* i c) t) z) (* (* (* y3 z) a) y1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.45e-13) {
tmp = ((y1 * a) * y3) * z;
} else if (a <= 5.2e+48) {
tmp = ((i * c) * t) * z;
} else {
tmp = ((y3 * z) * a) * y1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-1.45d-13)) then
tmp = ((y1 * a) * y3) * z
else if (a <= 5.2d+48) then
tmp = ((i * c) * t) * z
else
tmp = ((y3 * z) * a) * y1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.45e-13) {
tmp = ((y1 * a) * y3) * z;
} else if (a <= 5.2e+48) {
tmp = ((i * c) * t) * z;
} else {
tmp = ((y3 * z) * a) * y1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -1.45e-13: tmp = ((y1 * a) * y3) * z elif a <= 5.2e+48: tmp = ((i * c) * t) * z else: tmp = ((y3 * z) * a) * y1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.45e-13) tmp = Float64(Float64(Float64(y1 * a) * y3) * z); elseif (a <= 5.2e+48) tmp = Float64(Float64(Float64(i * c) * t) * z); else tmp = Float64(Float64(Float64(y3 * z) * a) * y1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -1.45e-13) tmp = ((y1 * a) * y3) * z; elseif (a <= 5.2e+48) tmp = ((i * c) * t) * z; else tmp = ((y3 * z) * a) * y1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.45e-13], N[(N[(N[(y1 * a), $MachinePrecision] * y3), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 5.2e+48], N[(N[(N[(i * c), $MachinePrecision] * t), $MachinePrecision] * z), $MachinePrecision], N[(N[(N[(y3 * z), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{-13}:\\
\;\;\;\;\left(\left(y1 \cdot a\right) \cdot y3\right) \cdot z\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{+48}:\\
\;\;\;\;\left(\left(i \cdot c\right) \cdot t\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y3 \cdot z\right) \cdot a\right) \cdot y1\\
\end{array}
\end{array}
if a < -1.4499999999999999e-13Initial program 18.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.9%
Taylor expanded in a around inf
Applied rewrites32.4%
Taylor expanded in t around 0
Applied rewrites18.2%
Applied rewrites28.5%
if -1.4499999999999999e-13 < a < 5.1999999999999999e48Initial program 35.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.8%
Taylor expanded in i around inf
Applied rewrites26.7%
Taylor expanded in t around inf
Applied rewrites21.2%
if 5.1999999999999999e48 < a Initial program 15.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.3%
Taylor expanded in a around inf
Applied rewrites41.0%
Taylor expanded in t around 0
Applied rewrites30.6%
Applied rewrites37.2%
Final simplification26.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -2e-109) (* (* (* a z) y1) y3) (* (* (* y1 a) y3) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2e-109) {
tmp = ((a * z) * y1) * y3;
} else {
tmp = ((y1 * a) * y3) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-2d-109)) then
tmp = ((a * z) * y1) * y3
else
tmp = ((y1 * a) * y3) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2e-109) {
tmp = ((a * z) * y1) * y3;
} else {
tmp = ((y1 * a) * y3) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -2e-109: tmp = ((a * z) * y1) * y3 else: tmp = ((y1 * a) * y3) * z return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -2e-109) tmp = Float64(Float64(Float64(a * z) * y1) * y3); else tmp = Float64(Float64(Float64(y1 * a) * y3) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -2e-109) tmp = ((a * z) * y1) * y3; else tmp = ((y1 * a) * y3) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -2e-109], N[(N[(N[(a * z), $MachinePrecision] * y1), $MachinePrecision] * y3), $MachinePrecision], N[(N[(N[(y1 * a), $MachinePrecision] * y3), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-109}:\\
\;\;\;\;\left(\left(a \cdot z\right) \cdot y1\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y1 \cdot a\right) \cdot y3\right) \cdot z\\
\end{array}
\end{array}
if z < -2e-109Initial program 31.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in a around inf
Applied rewrites32.9%
Taylor expanded in t around 0
Applied rewrites23.2%
Applied rewrites27.2%
if -2e-109 < z Initial program 25.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.9%
Taylor expanded in a around inf
Applied rewrites21.0%
Taylor expanded in t around 0
Applied rewrites11.9%
Applied rewrites15.4%
Final simplification19.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -3.6e+105) (* (* (* y3 z) a) y1) (* (* (* y1 a) y3) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3.6e+105) {
tmp = ((y3 * z) * a) * y1;
} else {
tmp = ((y1 * a) * y3) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-3.6d+105)) then
tmp = ((y3 * z) * a) * y1
else
tmp = ((y1 * a) * y3) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3.6e+105) {
tmp = ((y3 * z) * a) * y1;
} else {
tmp = ((y1 * a) * y3) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -3.6e+105: tmp = ((y3 * z) * a) * y1 else: tmp = ((y1 * a) * y3) * z return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -3.6e+105) tmp = Float64(Float64(Float64(y3 * z) * a) * y1); else tmp = Float64(Float64(Float64(y1 * a) * y3) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -3.6e+105) tmp = ((y3 * z) * a) * y1; else tmp = ((y1 * a) * y3) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -3.6e+105], N[(N[(N[(y3 * z), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], N[(N[(N[(y1 * a), $MachinePrecision] * y3), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+105}:\\
\;\;\;\;\left(\left(y3 \cdot z\right) \cdot a\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y1 \cdot a\right) \cdot y3\right) \cdot z\\
\end{array}
\end{array}
if z < -3.5999999999999999e105Initial program 28.9%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in a around inf
Applied rewrites47.6%
Taylor expanded in t around 0
Applied rewrites32.3%
Applied rewrites39.7%
if -3.5999999999999999e105 < z Initial program 27.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.1%
Taylor expanded in a around inf
Applied rewrites19.6%
Taylor expanded in t around 0
Applied rewrites11.8%
Applied rewrites14.1%
Final simplification19.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y3 z) a) y1))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y3 * z) * a) * y1;
}
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 = ((y3 * z) * a) * y1
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 ((y3 * z) * a) * y1;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y3 * z) * a) * y1
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y3 * z) * a) * y1) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y3 * z) * a) * y1; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y3 * z), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y3 \cdot z\right) \cdot a\right) \cdot y1
\end{array}
Initial program 27.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in a around inf
Applied rewrites25.3%
Taylor expanded in t around 0
Applied rewrites16.0%
Applied rewrites16.7%
Final simplification16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y3 y1) z) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y3 * y1) * z) * a;
}
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 = ((y3 * y1) * z) * a
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 ((y3 * y1) * z) * a;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y3 * y1) * z) * a
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y3 * y1) * z) * a) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y3 * y1) * z) * a; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y3 * y1), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y3 \cdot y1\right) \cdot z\right) \cdot a
\end{array}
Initial program 27.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in a around inf
Applied rewrites25.3%
Taylor expanded in t around 0
Applied rewrites16.0%
Final simplification16.0%
(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 2024294
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))