
(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 32 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 (- (* y5 a) (* y4 c)))
(t_2 (- (* k z) (* j x)))
(t_3 (- (* y0 c) (* y1 a))))
(if (<= y2 -3.3e+63)
(* (fma (- (* b a) (* i c)) y (fma t_3 y2 (* (- (* y1 i) (* y0 b)) j))) x)
(if (<= y2 -1.15e-174)
(* (fma y1 (fma j x (* (- k) z)) (* (fma j t (* (- k) y)) (- y5))) i)
(if (<= y2 -2.8e-277)
(*
(fma
(- (* y3 j) (* y2 k))
y5
(fma c (- (* y2 x) (* y3 z)) (* t_2 b)))
y0)
(if (<= y2 3.3e-17)
(*
(fma
(- (* i c) (* b a))
z
(fma j (- (* y4 b) (* y5 i)) (* t_1 y2)))
t)
(if (<= y2 2.1e+169)
(*
(fma
(- (* y x) (* t z))
a
(fma (- (* j t) (* k y)) y4 (* t_2 y0)))
b)
(*
(fma (- (* y4 y1) (* y5 y0)) k (fma t_3 x (* t_1 t)))
y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y5 * a) - (y4 * c);
double t_2 = (k * z) - (j * x);
double t_3 = (y0 * c) - (y1 * a);
double tmp;
if (y2 <= -3.3e+63) {
tmp = fma(((b * a) - (i * c)), y, fma(t_3, y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y2 <= -1.15e-174) {
tmp = fma(y1, fma(j, x, (-k * z)), (fma(j, t, (-k * y)) * -y5)) * i;
} else if (y2 <= -2.8e-277) {
tmp = fma(((y3 * j) - (y2 * k)), y5, fma(c, ((y2 * x) - (y3 * z)), (t_2 * b))) * y0;
} else if (y2 <= 3.3e-17) {
tmp = fma(((i * c) - (b * a)), z, fma(j, ((y4 * b) - (y5 * i)), (t_1 * y2))) * t;
} else if (y2 <= 2.1e+169) {
tmp = fma(((y * x) - (t * z)), a, fma(((j * t) - (k * y)), y4, (t_2 * y0))) * b;
} else {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_3, x, (t_1 * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y5 * a) - Float64(y4 * c)) t_2 = Float64(Float64(k * z) - Float64(j * x)) t_3 = Float64(Float64(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (y2 <= -3.3e+63) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(t_3, y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y2 <= -1.15e-174) tmp = Float64(fma(y1, fma(j, x, Float64(Float64(-k) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(-y5))) * i); elseif (y2 <= -2.8e-277) tmp = Float64(fma(Float64(Float64(y3 * j) - Float64(y2 * k)), y5, fma(c, Float64(Float64(y2 * x) - Float64(y3 * z)), Float64(t_2 * b))) * y0); elseif (y2 <= 3.3e-17) tmp = Float64(fma(Float64(Float64(i * c) - Float64(b * a)), z, fma(j, Float64(Float64(y4 * b) - Float64(y5 * i)), Float64(t_1 * y2))) * t); elseif (y2 <= 2.1e+169) tmp = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(Float64(Float64(j * t) - Float64(k * y)), y4, Float64(t_2 * y0))) * b); else tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_3, x, Float64(t_1 * t))) * y2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.3e+63], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(t$95$3 * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, -1.15e-174], N[(N[(y1 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, -2.8e-277], N[(N[(N[(N[(y3 * j), $MachinePrecision] - N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y5 + N[(c * N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y2, 3.3e-17], N[(N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * z + N[(j * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y2, 2.1e+169], 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[(t$95$2 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot a - y4 \cdot c\\
t_2 := k \cdot z - j \cdot x\\
t_3 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;y2 \leq -3.3 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(t\_3, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-174}:\\
\;\;\;\;\mathsf{fma}\left(y1, \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(-y5\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq -2.8 \cdot 10^{-277}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot j - y2 \cdot k, y5, \mathsf{fma}\left(c, y2 \cdot x - y3 \cdot z, t\_2 \cdot b\right)\right) \cdot y0\\
\mathbf{elif}\;y2 \leq 3.3 \cdot 10^{-17}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot c - b \cdot a, z, \mathsf{fma}\left(j, y4 \cdot b - y5 \cdot i, t\_1 \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+169}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(j \cdot t - k \cdot y, y4, t\_2 \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_3, x, t\_1 \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y2 < -3.3000000000000002e63Initial program 25.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if -3.3000000000000002e63 < y2 < -1.1499999999999999e-174Initial program 44.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in c around 0
Applied rewrites56.2%
if -1.1499999999999999e-174 < y2 < -2.79999999999999976e-277Initial program 52.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.0%
if -2.79999999999999976e-277 < y2 < 3.3e-17Initial program 40.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.8%
if 3.3e-17 < y2 < 2.1000000000000001e169Initial program 36.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
if 2.1000000000000001e169 < y2 Initial program 29.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.8%
Final simplification62.2%
(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)))
(t_2
(-
(-
(-
(-
(-
(* t_1 (- (* j x) (* k z)))
(* (- (* i c) (* b a)) (- (* y x) (* t z))))
(* (- (* y2 x) (* y3 z)) (- (* y1 a) (* y0 c))))
(* (- (* y4 b) (* y5 i)) (- (* k y) (* j t))))
(* (- (* y5 a) (* y4 c)) (- (* y3 y) (* y2 t))))
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))))
(if (<= t_2 INFINITY)
t_2
(*
(fma (- (* b a) (* i c)) y (fma (- (* y0 c) (* y1 a)) y2 (* t_1 j)))
x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * i) - (y0 * b);
double t_2 = (((((t_1 * ((j * x) - (k * z))) - (((i * c) - (b * a)) * ((y * x) - (t * z)))) - (((y2 * x) - (y3 * z)) * ((y1 * a) - (y0 * c)))) - (((y4 * b) - (y5 * i)) * ((k * y) - (j * t)))) - (((y5 * a) - (y4 * c)) * ((y3 * y) - (y2 * t)))) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (t_1 * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * i) - Float64(y0 * b)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(t_1 * 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(y2 * x) - Float64(y3 * z)) * Float64(Float64(y1 * a) - Float64(y0 * c)))) - Float64(Float64(Float64(y4 * b) - Float64(y5 * i)) * Float64(Float64(k * y) - Float64(j * t)))) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * Float64(Float64(y3 * y) - Float64(y2 * t)))) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(t_1 * j))) * x); 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[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(t$95$1 * 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[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(y1 * a), $MachinePrecision] - N[(y0 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision] * N[(N[(k * y), $MachinePrecision] - N[(j * t), $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[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, 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[(t$95$1 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot i - y0 \cdot b\\
t_2 := \left(\left(\left(\left(t\_1 \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(y2 \cdot x - y3 \cdot z\right) \cdot \left(y1 \cdot a - y0 \cdot c\right)\right) - \left(y4 \cdot b - y5 \cdot i\right) \cdot \left(k \cdot y - j \cdot t\right)\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot \left(y3 \cdot y - y2 \cdot t\right)\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, t\_1 \cdot j\right)\right) \cdot x\\
\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 96.0%
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 x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Final simplification61.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j x) (* k z))) (t_2 (* (* (fma c y0 (* (- a) y1)) y2) x)))
(if (<= y2 -7.2e+123)
t_2
(if (<= y2 -3.8e+63)
(*
(fma (- (* y3 z) (* y2 x)) a (fma (- (* y2 k) (* y3 j)) y4 (* t_1 i)))
y1)
(if (<= y2 -7.6e-175)
(* (fma y1 (fma j x (* (- k) z)) (* (fma j t (* (- k) y)) (- y5))) i)
(if (<= y2 -1.15e-276)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y2 2e-240)
(* (* (fma a b (* (- c) i)) y) x)
(if (<= y2 6e+31)
(* (* (fma a (/ z j) (- y4)) (- j)) (* b t))
(if (<= y2 2.5e+170)
(*
(fma (* t z) c (fma (- y5) (- (* j t) (* k y)) (* t_1 y1)))
i)
(if (<= y2 8e+225)
t_2
(* (* (fma k y1 (* (- c) t)) y2) y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * x) - (k * z);
double t_2 = (fma(c, y0, (-a * y1)) * y2) * x;
double tmp;
if (y2 <= -7.2e+123) {
tmp = t_2;
} else if (y2 <= -3.8e+63) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (t_1 * i))) * y1;
} else if (y2 <= -7.6e-175) {
tmp = fma(y1, fma(j, x, (-k * z)), (fma(j, t, (-k * y)) * -y5)) * i;
} else if (y2 <= -1.15e-276) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y2 <= 2e-240) {
tmp = (fma(a, b, (-c * i)) * y) * x;
} else if (y2 <= 6e+31) {
tmp = (fma(a, (z / j), -y4) * -j) * (b * t);
} else if (y2 <= 2.5e+170) {
tmp = fma((t * z), c, fma(-y5, ((j * t) - (k * y)), (t_1 * y1))) * i;
} else if (y2 <= 8e+225) {
tmp = t_2;
} else {
tmp = (fma(k, y1, (-c * t)) * y2) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * x) - Float64(k * z)) t_2 = Float64(Float64(fma(c, y0, Float64(Float64(-a) * y1)) * y2) * x) tmp = 0.0 if (y2 <= -7.2e+123) tmp = t_2; elseif (y2 <= -3.8e+63) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(t_1 * i))) * y1); elseif (y2 <= -7.6e-175) tmp = Float64(fma(y1, fma(j, x, Float64(Float64(-k) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(-y5))) * i); elseif (y2 <= -1.15e-276) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y2 <= 2e-240) tmp = Float64(Float64(fma(a, b, Float64(Float64(-c) * i)) * y) * x); elseif (y2 <= 6e+31) tmp = Float64(Float64(fma(a, Float64(z / j), Float64(-y4)) * Float64(-j)) * Float64(b * t)); elseif (y2 <= 2.5e+170) tmp = Float64(fma(Float64(t * z), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(t_1 * y1))) * i); elseif (y2 <= 8e+225) tmp = t_2; else tmp = Float64(Float64(fma(k, y1, Float64(Float64(-c) * t)) * y2) * y4); 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[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y2, -7.2e+123], t$95$2, If[LessEqual[y2, -3.8e+63], 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[(t$95$1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y2, -7.6e-175], N[(N[(y1 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, -1.15e-276], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 2e-240], N[(N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, 6e+31], N[(N[(N[(a * N[(z / j), $MachinePrecision] + (-y4)), $MachinePrecision] * (-j)), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.5e+170], N[(N[(N[(t * z), $MachinePrecision] * c + N[((-y5) * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, 8e+225], t$95$2, N[(N[(N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y4), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot x - k \cdot z\\
t_2 := \left(\mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right) \cdot y2\right) \cdot x\\
\mathbf{if}\;y2 \leq -7.2 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -3.8 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, t\_1 \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y2 \leq -7.6 \cdot 10^{-175}:\\
\;\;\;\;\mathsf{fma}\left(y1, \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(-y5\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-276}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-240}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{+31}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, \frac{z}{j}, -y4\right) \cdot \left(-j\right)\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{+170}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot z, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, t\_1 \cdot y1\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{+225}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right) \cdot y2\right) \cdot y4\\
\end{array}
\end{array}
if y2 < -7.19999999999999996e123 or 2.49999999999999988e170 < y2 < 7.99999999999999943e225Initial program 22.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.8%
Taylor expanded in y2 around inf
Applied rewrites64.1%
if -7.19999999999999996e123 < y2 < -3.8000000000000001e63Initial program 36.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.4%
if -3.8000000000000001e63 < y2 < -7.6e-175Initial program 44.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in c around 0
Applied rewrites56.2%
if -7.6e-175 < y2 < -1.14999999999999991e-276Initial program 52.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in b around inf
Applied rewrites59.2%
if -1.14999999999999991e-276 < y2 < 1.9999999999999999e-240Initial program 49.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in y around inf
Applied rewrites63.3%
if 1.9999999999999999e-240 < y2 < 5.99999999999999978e31Initial program 40.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.8%
Taylor expanded in b around inf
Applied rewrites46.2%
Taylor expanded in j around -inf
Applied rewrites53.5%
if 5.99999999999999978e31 < y2 < 2.49999999999999988e170Initial program 32.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.5%
Taylor expanded in t around inf
Applied rewrites47.1%
if 7.99999999999999943e225 < y2 Initial program 27.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.4%
Taylor expanded in y3 around -inf
Applied rewrites1.9%
Taylor expanded in y2 around inf
Applied rewrites72.8%
Final simplification57.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma c y0 (* (- a) y1)) y2) x)))
(if (<= y2 -2.75e+162)
t_1
(if (<= y2 -7.6e-175)
(* (fma y1 (fma j x (* (- k) z)) (* (fma j t (* (- k) y)) (- y5))) i)
(if (<= y2 -1.15e-276)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y2 2e-240)
(* (* (fma a b (* (- c) i)) y) x)
(if (<= y2 6e+31)
(* (* (fma a (/ z j) (- y4)) (- j)) (* b t))
(if (<= y2 2.5e+170)
(*
(fma
(* t z)
c
(fma (- y5) (- (* j t) (* k y)) (* (- (* j x) (* k z)) y1)))
i)
(if (<= y2 8e+225)
t_1
(* (* (fma k y1 (* (- c) t)) y2) y4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(c, y0, (-a * y1)) * y2) * x;
double tmp;
if (y2 <= -2.75e+162) {
tmp = t_1;
} else if (y2 <= -7.6e-175) {
tmp = fma(y1, fma(j, x, (-k * z)), (fma(j, t, (-k * y)) * -y5)) * i;
} else if (y2 <= -1.15e-276) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y2 <= 2e-240) {
tmp = (fma(a, b, (-c * i)) * y) * x;
} else if (y2 <= 6e+31) {
tmp = (fma(a, (z / j), -y4) * -j) * (b * t);
} else if (y2 <= 2.5e+170) {
tmp = fma((t * z), c, fma(-y5, ((j * t) - (k * y)), (((j * x) - (k * z)) * y1))) * i;
} else if (y2 <= 8e+225) {
tmp = t_1;
} else {
tmp = (fma(k, y1, (-c * t)) * y2) * y4;
}
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(c, y0, Float64(Float64(-a) * y1)) * y2) * x) tmp = 0.0 if (y2 <= -2.75e+162) tmp = t_1; elseif (y2 <= -7.6e-175) tmp = Float64(fma(y1, fma(j, x, Float64(Float64(-k) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(-y5))) * i); elseif (y2 <= -1.15e-276) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y2 <= 2e-240) tmp = Float64(Float64(fma(a, b, Float64(Float64(-c) * i)) * y) * x); elseif (y2 <= 6e+31) tmp = Float64(Float64(fma(a, Float64(z / j), Float64(-y4)) * Float64(-j)) * Float64(b * t)); elseif (y2 <= 2.5e+170) tmp = Float64(fma(Float64(t * z), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i); elseif (y2 <= 8e+225) tmp = t_1; else tmp = Float64(Float64(fma(k, y1, Float64(Float64(-c) * t)) * y2) * y4); 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[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y2, -2.75e+162], t$95$1, If[LessEqual[y2, -7.6e-175], N[(N[(y1 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, -1.15e-276], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 2e-240], N[(N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, 6e+31], N[(N[(N[(a * N[(z / j), $MachinePrecision] + (-y4)), $MachinePrecision] * (-j)), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.5e+170], N[(N[(N[(t * z), $MachinePrecision] * c + N[((-y5) * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, 8e+225], t$95$1, N[(N[(N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y4), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right) \cdot y2\right) \cdot x\\
\mathbf{if}\;y2 \leq -2.75 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -7.6 \cdot 10^{-175}:\\
\;\;\;\;\mathsf{fma}\left(y1, \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(-y5\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-276}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-240}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{+31}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, \frac{z}{j}, -y4\right) \cdot \left(-j\right)\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{+170}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot z, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{+225}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right) \cdot y2\right) \cdot y4\\
\end{array}
\end{array}
if y2 < -2.74999999999999983e162 or 2.49999999999999988e170 < y2 < 7.99999999999999943e225Initial program 20.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.6%
Taylor expanded in y2 around inf
Applied rewrites69.7%
if -2.74999999999999983e162 < y2 < -7.6e-175Initial program 41.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.2%
Taylor expanded in c around 0
Applied rewrites49.6%
if -7.6e-175 < y2 < -1.14999999999999991e-276Initial program 52.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in b around inf
Applied rewrites59.2%
if -1.14999999999999991e-276 < y2 < 1.9999999999999999e-240Initial program 49.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in y around inf
Applied rewrites63.3%
if 1.9999999999999999e-240 < y2 < 5.99999999999999978e31Initial program 40.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.8%
Taylor expanded in b around inf
Applied rewrites46.2%
Taylor expanded in j around -inf
Applied rewrites53.5%
if 5.99999999999999978e31 < y2 < 2.49999999999999988e170Initial program 32.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.5%
Taylor expanded in t around inf
Applied rewrites47.1%
if 7.99999999999999943e225 < y2 Initial program 27.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.4%
Taylor expanded in y3 around -inf
Applied rewrites1.9%
Taylor expanded in y2 around inf
Applied rewrites72.8%
Final simplification56.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y5 a) (* y4 c))) (t_2 (- (* y0 c) (* y1 a))))
(if (<= y2 -3.3e+63)
(* (fma (- (* b a) (* i c)) y (fma t_2 y2 (* (- (* y1 i) (* y0 b)) j))) x)
(if (<= y2 -7.6e-175)
(* (fma y1 (fma j x (* (- k) z)) (* (fma j t (* (- k) y)) (- y5))) i)
(if (<= y2 -8.8e-277)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y2 3.3e-17)
(*
(fma
(- (* i c) (* b a))
z
(fma j (- (* y4 b) (* y5 i)) (* t_1 y2)))
t)
(if (<= y2 2.1e+169)
(*
(fma
(- (* y x) (* t z))
a
(fma (- (* j t) (* k y)) y4 (* (- (* k z) (* j x)) y0)))
b)
(*
(fma (- (* y4 y1) (* y5 y0)) k (fma t_2 x (* t_1 t)))
y2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y5 * a) - (y4 * c);
double t_2 = (y0 * c) - (y1 * a);
double tmp;
if (y2 <= -3.3e+63) {
tmp = fma(((b * a) - (i * c)), y, fma(t_2, y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y2 <= -7.6e-175) {
tmp = fma(y1, fma(j, x, (-k * z)), (fma(j, t, (-k * y)) * -y5)) * i;
} else if (y2 <= -8.8e-277) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y2 <= 3.3e-17) {
tmp = fma(((i * c) - (b * a)), z, fma(j, ((y4 * b) - (y5 * i)), (t_1 * y2))) * t;
} else if (y2 <= 2.1e+169) {
tmp = fma(((y * x) - (t * z)), a, fma(((j * t) - (k * y)), y4, (((k * z) - (j * x)) * y0))) * b;
} else {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_2, x, (t_1 * t))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y5 * a) - Float64(y4 * c)) t_2 = Float64(Float64(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (y2 <= -3.3e+63) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(t_2, y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y2 <= -7.6e-175) tmp = Float64(fma(y1, fma(j, x, Float64(Float64(-k) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(-y5))) * i); elseif (y2 <= -8.8e-277) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y2 <= 3.3e-17) tmp = Float64(fma(Float64(Float64(i * c) - Float64(b * a)), z, fma(j, Float64(Float64(y4 * b) - Float64(y5 * i)), Float64(t_1 * y2))) * t); elseif (y2 <= 2.1e+169) tmp = 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); else tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_2, x, Float64(t_1 * t))) * y2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -3.3e+63], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(t$95$2 * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, -7.6e-175], N[(N[(y1 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y2, -8.8e-277], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 3.3e-17], N[(N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * z + N[(j * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y2, 2.1e+169], 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], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$2 * x + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot a - y4 \cdot c\\
t_2 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;y2 \leq -3.3 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(t\_2, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y2 \leq -7.6 \cdot 10^{-175}:\\
\;\;\;\;\mathsf{fma}\left(y1, \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(-y5\right)\right) \cdot i\\
\mathbf{elif}\;y2 \leq -8.8 \cdot 10^{-277}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y2 \leq 3.3 \cdot 10^{-17}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot c - b \cdot a, z, \mathsf{fma}\left(j, y4 \cdot b - y5 \cdot i, t\_1 \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;y2 \leq 2.1 \cdot 10^{+169}:\\
\;\;\;\;\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{else}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_2, x, t\_1 \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y2 < -3.3000000000000002e63Initial program 25.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if -3.3000000000000002e63 < y2 < -7.6e-175Initial program 44.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in c around 0
Applied rewrites56.2%
if -7.6e-175 < y2 < -8.79999999999999983e-277Initial program 52.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in b around inf
Applied rewrites59.2%
if -8.79999999999999983e-277 < y2 < 3.3e-17Initial program 40.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.8%
if 3.3e-17 < y2 < 2.1000000000000001e169Initial program 36.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
if 2.1000000000000001e169 < y2 Initial program 29.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.8%
Final simplification61.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2
(*
(fma
(- (* t z) (* y x))
c
(fma (- y5) t_1 (* (- (* j x) (* k z)) y1)))
i))
(t_3 (- (* y x) (* t z))))
(if (<= i -560.0)
t_2
(if (<= i -7.6e-210)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= i 6.6e-185)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma t_3 b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= i 1.2e-6)
(* (fma t_3 a (fma t_1 y4 (* (- (* k z) (* j x)) y0))) b)
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = fma(((t * z) - (y * x)), c, fma(-y5, t_1, (((j * x) - (k * z)) * y1))) * i;
double t_3 = (y * x) - (t * z);
double tmp;
if (i <= -560.0) {
tmp = t_2;
} else if (i <= -7.6e-210) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (i <= 6.6e-185) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(t_3, b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (i <= 1.2e-6) {
tmp = fma(t_3, a, fma(t_1, y4, (((k * z) - (j * x)) * y0))) * b;
} 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(j * t) - Float64(k * y)) t_2 = Float64(fma(Float64(Float64(t * z) - Float64(y * x)), c, fma(Float64(-y5), t_1, Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i) t_3 = Float64(Float64(y * x) - Float64(t * z)) tmp = 0.0 if (i <= -560.0) tmp = t_2; elseif (i <= -7.6e-210) 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 (i <= 6.6e-185) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(t_3, b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (i <= 1.2e-6) tmp = Float64(fma(t_3, a, fma(t_1, y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b); 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[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(t * z), $MachinePrecision] - N[(y * x), $MachinePrecision]), $MachinePrecision] * c + N[((-y5) * t$95$1 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -560.0], t$95$2, If[LessEqual[i, -7.6e-210], 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[i, 6.6e-185], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$3 * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.2e-6], N[(N[(t$95$3 * a + N[(t$95$1 * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := \mathsf{fma}\left(t \cdot z - y \cdot x, c, \mathsf{fma}\left(-y5, t\_1, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
t_3 := y \cdot x - t \cdot z\\
\mathbf{if}\;i \leq -560:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{-210}:\\
\;\;\;\;\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}\;i \leq 6.6 \cdot 10^{-185}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(t\_3, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{-6}:\\
\;\;\;\;\mathsf{fma}\left(t\_3, a, \mathsf{fma}\left(t\_1, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -560 or 1.1999999999999999e-6 < i Initial program 31.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.5%
if -560 < i < -7.60000000000000006e-210Initial program 44.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.4%
if -7.60000000000000006e-210 < i < 6.5999999999999995e-185Initial program 42.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.6%
if 6.5999999999999995e-185 < i < 1.1999999999999999e-6Initial program 37.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.8%
Final simplification62.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y x) (* t z)))
(t_2 (- (* j t) (* k y)))
(t_3
(* (fma (* t z) c (fma (- y5) t_2 (* (- (* j x) (* k z)) y1))) i)))
(if (<= i -7.1e+109)
t_3
(if (<= i -7.6e-210)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= i 6.6e-185)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma t_1 b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= i 3.5e-6)
(* (fma t_1 a (fma t_2 y4 (* (- (* k z) (* j x)) y0))) b)
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 = (y * x) - (t * z);
double t_2 = (j * t) - (k * y);
double t_3 = fma((t * z), c, fma(-y5, t_2, (((j * x) - (k * z)) * y1))) * i;
double tmp;
if (i <= -7.1e+109) {
tmp = t_3;
} else if (i <= -7.6e-210) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (i <= 6.6e-185) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(t_1, b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (i <= 3.5e-6) {
tmp = fma(t_1, a, fma(t_2, y4, (((k * z) - (j * x)) * y0))) * b;
} 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(y * x) - Float64(t * z)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(fma(Float64(t * z), c, fma(Float64(-y5), t_2, Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i) tmp = 0.0 if (i <= -7.1e+109) tmp = t_3; elseif (i <= -7.6e-210) 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 (i <= 6.6e-185) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(t_1, b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (i <= 3.5e-6) tmp = Float64(fma(t_1, a, fma(t_2, y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b); 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[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(t * z), $MachinePrecision] * c + N[((-y5) * t$95$2 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -7.1e+109], t$95$3, If[LessEqual[i, -7.6e-210], 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[i, 6.6e-185], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$1 * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 3.5e-6], N[(N[(t$95$1 * a + N[(t$95$2 * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot x - t \cdot z\\
t_2 := j \cdot t - k \cdot y\\
t_3 := \mathsf{fma}\left(t \cdot z, c, \mathsf{fma}\left(-y5, t\_2, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
\mathbf{if}\;i \leq -7.1 \cdot 10^{+109}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{-210}:\\
\;\;\;\;\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}\;i \leq 6.6 \cdot 10^{-185}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(t\_1, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-6}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(t\_2, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if i < -7.1000000000000003e109 or 3.49999999999999995e-6 < i Initial program 27.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.4%
Taylor expanded in t around inf
Applied rewrites60.5%
if -7.1000000000000003e109 < i < -7.60000000000000006e-210Initial program 46.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
if -7.60000000000000006e-210 < i < 6.5999999999999995e-185Initial program 42.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.6%
if 6.5999999999999995e-185 < i < 3.49999999999999995e-6Initial program 37.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.8%
Final simplification59.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y5 i) (* y4 b))) (t_2 (- (* b a) (* i c))))
(if (<= k -2.1e+209)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(if (<= k -9.8e+117)
(* (fma t_1 k (fma t_2 x (* (- (* y4 c) (* y5 a)) y3))) y)
(if (<= k -7.6e-36)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= k 6.5e+15)
(*
(fma
t_2
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(*
(fma
t_1
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y5 * i) - (y4 * b);
double t_2 = (b * a) - (i * c);
double tmp;
if (k <= -2.1e+209) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else if (k <= -9.8e+117) {
tmp = fma(t_1, k, fma(t_2, x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (k <= -7.6e-36) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (k <= 6.5e+15) {
tmp = fma(t_2, y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else {
tmp = fma(t_1, y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y5 * i) - Float64(y4 * b)) t_2 = Float64(Float64(b * a) - Float64(i * c)) tmp = 0.0 if (k <= -2.1e+209) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); elseif (k <= -9.8e+117) tmp = Float64(fma(t_1, k, fma(t_2, x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (k <= -7.6e-36) 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 (k <= 6.5e+15) tmp = Float64(fma(t_2, y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); else tmp = Float64(fma(t_1, y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); 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[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -2.1e+209], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[k, -9.8e+117], N[(N[(t$95$1 * k + N[(t$95$2 * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[k, -7.6e-36], 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[k, 6.5e+15], N[(N[(t$95$2 * 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], N[(N[(t$95$1 * 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]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y5 \cdot i - y4 \cdot b\\
t_2 := b \cdot a - i \cdot c\\
\mathbf{if}\;k \leq -2.1 \cdot 10^{+209}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{elif}\;k \leq -9.8 \cdot 10^{+117}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, k, \mathsf{fma}\left(t\_2, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;k \leq -7.6 \cdot 10^{-36}:\\
\;\;\;\;\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}\;k \leq 6.5 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, 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{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, 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\\
\end{array}
\end{array}
if k < -2.1e209Initial program 9.1%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in k around inf
Applied rewrites60.3%
if -2.1e209 < k < -9.8000000000000002e117Initial program 40.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites75.2%
if -9.8000000000000002e117 < k < -7.59999999999999942e-36Initial program 43.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.4%
if -7.59999999999999942e-36 < k < 6.5e15Initial program 43.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.4%
if 6.5e15 < k Initial program 28.5%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.3%
Final simplification58.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(* (fma y1 (fma j x (* (- k) z)) (* (fma j t (* (- k) y)) (- y5))) i))
(t_2 (* (* (fma c y0 (* (- a) y1)) y2) x)))
(if (<= y2 -2.75e+162)
t_2
(if (<= y2 -7.6e-175)
t_1
(if (<= y2 -1.15e-276)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y2 2e-240)
(* (* (fma a b (* (- c) i)) y) x)
(if (<= y2 1.15e+50)
(* (* (fma a (/ z j) (- y4)) (- j)) (* b t))
(if (<= y2 5.3e+170)
t_1
(if (<= y2 8e+225)
t_2
(* (* (fma k y1 (* (- c) t)) y2) y4))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y1, fma(j, x, (-k * z)), (fma(j, t, (-k * y)) * -y5)) * i;
double t_2 = (fma(c, y0, (-a * y1)) * y2) * x;
double tmp;
if (y2 <= -2.75e+162) {
tmp = t_2;
} else if (y2 <= -7.6e-175) {
tmp = t_1;
} else if (y2 <= -1.15e-276) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y2 <= 2e-240) {
tmp = (fma(a, b, (-c * i)) * y) * x;
} else if (y2 <= 1.15e+50) {
tmp = (fma(a, (z / j), -y4) * -j) * (b * t);
} else if (y2 <= 5.3e+170) {
tmp = t_1;
} else if (y2 <= 8e+225) {
tmp = t_2;
} else {
tmp = (fma(k, y1, (-c * t)) * y2) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(y1, fma(j, x, Float64(Float64(-k) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(-y5))) * i) t_2 = Float64(Float64(fma(c, y0, Float64(Float64(-a) * y1)) * y2) * x) tmp = 0.0 if (y2 <= -2.75e+162) tmp = t_2; elseif (y2 <= -7.6e-175) tmp = t_1; elseif (y2 <= -1.15e-276) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y2 <= 2e-240) tmp = Float64(Float64(fma(a, b, Float64(Float64(-c) * i)) * y) * x); elseif (y2 <= 1.15e+50) tmp = Float64(Float64(fma(a, Float64(z / j), Float64(-y4)) * Float64(-j)) * Float64(b * t)); elseif (y2 <= 5.3e+170) tmp = t_1; elseif (y2 <= 8e+225) tmp = t_2; else tmp = Float64(Float64(fma(k, y1, Float64(Float64(-c) * t)) * y2) * y4); 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[(y1 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * (-y5)), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y2, -2.75e+162], t$95$2, If[LessEqual[y2, -7.6e-175], t$95$1, If[LessEqual[y2, -1.15e-276], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 2e-240], N[(N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, 1.15e+50], N[(N[(N[(a * N[(z / j), $MachinePrecision] + (-y4)), $MachinePrecision] * (-j)), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.3e+170], t$95$1, If[LessEqual[y2, 8e+225], t$95$2, N[(N[(N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y4), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y1, \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(-y5\right)\right) \cdot i\\
t_2 := \left(\mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right) \cdot y2\right) \cdot x\\
\mathbf{if}\;y2 \leq -2.75 \cdot 10^{+162}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -7.6 \cdot 10^{-175}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-276}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-240}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;y2 \leq 1.15 \cdot 10^{+50}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, \frac{z}{j}, -y4\right) \cdot \left(-j\right)\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y2 \leq 5.3 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{+225}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right) \cdot y2\right) \cdot y4\\
\end{array}
\end{array}
if y2 < -2.74999999999999983e162 or 5.30000000000000003e170 < y2 < 7.99999999999999943e225Initial program 20.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.6%
Taylor expanded in y2 around inf
Applied rewrites69.7%
if -2.74999999999999983e162 < y2 < -7.6e-175 or 1.14999999999999998e50 < y2 < 5.30000000000000003e170Initial program 39.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in c around 0
Applied rewrites47.5%
if -7.6e-175 < y2 < -1.14999999999999991e-276Initial program 52.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in b around inf
Applied rewrites59.2%
if -1.14999999999999991e-276 < y2 < 1.9999999999999999e-240Initial program 49.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in y around inf
Applied rewrites63.3%
if 1.9999999999999999e-240 < y2 < 1.14999999999999998e50Initial program 37.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in b around inf
Applied rewrites45.3%
Taylor expanded in j around -inf
Applied rewrites52.1%
if 7.99999999999999943e225 < y2 Initial program 27.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.4%
Taylor expanded in y3 around -inf
Applied rewrites1.9%
Taylor expanded in y2 around inf
Applied rewrites72.8%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(* t z)
c
(fma (- y5) (- (* j t) (* k y)) (* (- (* j x) (* k z)) y1)))
i)))
(if (<= i -1.8e-36)
t_1
(if (<= i 1.95e-28)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
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((t * z), c, fma(-y5, ((j * t) - (k * y)), (((j * x) - (k * z)) * y1))) * i;
double tmp;
if (i <= -1.8e-36) {
tmp = t_1;
} else if (i <= 1.95e-28) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} 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(t * z), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i) tmp = 0.0 if (i <= -1.8e-36) tmp = t_1; elseif (i <= 1.95e-28) 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); 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[(t * z), $MachinePrecision] * c + N[((-y5) * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -1.8e-36], t$95$1, If[LessEqual[i, 1.95e-28], 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], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t \cdot z, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
\mathbf{if}\;i \leq -1.8 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{-28}:\\
\;\;\;\;\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{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.80000000000000016e-36 or 1.94999999999999999e-28 < i Initial program 32.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in t around inf
Applied rewrites55.1%
if -1.80000000000000016e-36 < i < 1.94999999999999999e-28Initial program 41.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Final simplification52.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma c y0 (* (- a) y1)) y2) x)))
(if (<= y2 -8.5e+160)
t_1
(if (<= y2 -33000.0)
(* (* (fma b y4 (* (- i) y5)) j) t)
(if (<= y2 -6e-173)
(* (* (fma (- c) y (* y1 j)) i) x)
(if (<= y2 -1.15e-276)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= y2 2e-240)
(* (* (fma a b (* (- c) i)) y) x)
(if (<= y2 5e+77)
(* (* (fma a (/ z j) (- y4)) (- j)) (* b t))
(if (<= y2 2.2e+146)
(* (fma (- c) y2 (* j b)) (* y4 t))
(if (<= y2 8e+225)
t_1
(* (* (fma k y1 (* (- c) t)) y2) y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(c, y0, (-a * y1)) * y2) * x;
double tmp;
if (y2 <= -8.5e+160) {
tmp = t_1;
} else if (y2 <= -33000.0) {
tmp = (fma(b, y4, (-i * y5)) * j) * t;
} else if (y2 <= -6e-173) {
tmp = (fma(-c, y, (y1 * j)) * i) * x;
} else if (y2 <= -1.15e-276) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (y2 <= 2e-240) {
tmp = (fma(a, b, (-c * i)) * y) * x;
} else if (y2 <= 5e+77) {
tmp = (fma(a, (z / j), -y4) * -j) * (b * t);
} else if (y2 <= 2.2e+146) {
tmp = fma(-c, y2, (j * b)) * (y4 * t);
} else if (y2 <= 8e+225) {
tmp = t_1;
} else {
tmp = (fma(k, y1, (-c * t)) * y2) * y4;
}
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(c, y0, Float64(Float64(-a) * y1)) * y2) * x) tmp = 0.0 if (y2 <= -8.5e+160) tmp = t_1; elseif (y2 <= -33000.0) tmp = Float64(Float64(fma(b, y4, Float64(Float64(-i) * y5)) * j) * t); elseif (y2 <= -6e-173) tmp = Float64(Float64(fma(Float64(-c), y, Float64(y1 * j)) * i) * x); elseif (y2 <= -1.15e-276) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (y2 <= 2e-240) tmp = Float64(Float64(fma(a, b, Float64(Float64(-c) * i)) * y) * x); elseif (y2 <= 5e+77) tmp = Float64(Float64(fma(a, Float64(z / j), Float64(-y4)) * Float64(-j)) * Float64(b * t)); elseif (y2 <= 2.2e+146) tmp = Float64(fma(Float64(-c), y2, Float64(j * b)) * Float64(y4 * t)); elseif (y2 <= 8e+225) tmp = t_1; else tmp = Float64(Float64(fma(k, y1, Float64(Float64(-c) * t)) * y2) * y4); 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[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y2, -8.5e+160], t$95$1, If[LessEqual[y2, -33000.0], N[(N[(N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y2, -6e-173], N[(N[(N[((-c) * y + N[(y1 * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, -1.15e-276], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 2e-240], N[(N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y2, 5e+77], N[(N[(N[(a * N[(z / j), $MachinePrecision] + (-y4)), $MachinePrecision] * (-j)), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.2e+146], N[(N[((-c) * y2 + N[(j * b), $MachinePrecision]), $MachinePrecision] * N[(y4 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8e+225], t$95$1, N[(N[(N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y4), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right) \cdot y2\right) \cdot x\\
\mathbf{if}\;y2 \leq -8.5 \cdot 10^{+160}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -33000:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right) \cdot j\right) \cdot t\\
\mathbf{elif}\;y2 \leq -6 \cdot 10^{-173}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y, y1 \cdot j\right) \cdot i\right) \cdot x\\
\mathbf{elif}\;y2 \leq -1.15 \cdot 10^{-276}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;y2 \leq 2 \cdot 10^{-240}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;y2 \leq 5 \cdot 10^{+77}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, \frac{z}{j}, -y4\right) \cdot \left(-j\right)\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y2 \leq 2.2 \cdot 10^{+146}:\\
\;\;\;\;\mathsf{fma}\left(-c, y2, j \cdot b\right) \cdot \left(y4 \cdot t\right)\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{+225}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right) \cdot y2\right) \cdot y4\\
\end{array}
\end{array}
if y2 < -8.49999999999999982e160 or 2.1999999999999998e146 < y2 < 7.99999999999999943e225Initial program 20.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.7%
Taylor expanded in y2 around inf
Applied rewrites66.4%
if -8.49999999999999982e160 < y2 < -33000Initial program 43.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.7%
Taylor expanded in j around inf
Applied rewrites43.9%
if -33000 < y2 < -6.0000000000000002e-173Initial program 40.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites31.8%
Taylor expanded in i around inf
Applied rewrites46.1%
if -6.0000000000000002e-173 < y2 < -1.14999999999999991e-276Initial program 52.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in b around inf
Applied rewrites59.2%
if -1.14999999999999991e-276 < y2 < 1.9999999999999999e-240Initial program 49.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in y around inf
Applied rewrites63.3%
if 1.9999999999999999e-240 < y2 < 5.00000000000000004e77Initial program 38.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.0%
Taylor expanded in b around inf
Applied rewrites43.6%
Taylor expanded in j around -inf
Applied rewrites51.9%
if 5.00000000000000004e77 < y2 < 2.1999999999999998e146Initial program 34.9%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.2%
Taylor expanded in t around inf
Applied rewrites40.4%
if 7.99999999999999943e225 < y2 Initial program 27.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.4%
Taylor expanded in y3 around -inf
Applied rewrites1.9%
Taylor expanded in y2 around inf
Applied rewrites72.8%
Final simplification53.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -4.2e+240)
(* (* (fma (- c) y (* y1 j)) i) x)
(if (<= i -5.9e+16)
(* (* (fma k y5 (* (- c) x)) i) y)
(if (<= i -2.5e-289)
(* (* (fma (- i) t (* y3 y0)) y5) j)
(if (<= i 3.4e-269)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= i 7.4e-167)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= i 4.3e-47)
(* (* (fma k y2 (* (- y3) j)) y4) y1)
(if (<= i 6.5e+92)
(* (* (fma (- b) z (* y5 y2)) a) t)
(* (fma (- a) y3 (* k i)) (* y5 y))))))))))
double code(double x, double y, double z, double t, double 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 (i <= -4.2e+240) {
tmp = (fma(-c, y, (y1 * j)) * i) * x;
} else if (i <= -5.9e+16) {
tmp = (fma(k, y5, (-c * x)) * i) * y;
} else if (i <= -2.5e-289) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else if (i <= 3.4e-269) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (i <= 7.4e-167) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (i <= 4.3e-47) {
tmp = (fma(k, y2, (-y3 * j)) * y4) * y1;
} else if (i <= 6.5e+92) {
tmp = (fma(-b, z, (y5 * y2)) * a) * t;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -4.2e+240) tmp = Float64(Float64(fma(Float64(-c), y, Float64(y1 * j)) * i) * x); elseif (i <= -5.9e+16) tmp = Float64(Float64(fma(k, y5, Float64(Float64(-c) * x)) * i) * y); elseif (i <= -2.5e-289) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); elseif (i <= 3.4e-269) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (i <= 7.4e-167) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (i <= 4.3e-47) tmp = Float64(Float64(fma(k, y2, Float64(Float64(-y3) * j)) * y4) * y1); elseif (i <= 6.5e+92) tmp = Float64(Float64(fma(Float64(-b), z, Float64(y5 * y2)) * a) * t); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -4.2e+240], N[(N[(N[((-c) * y + N[(y1 * j), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[i, -5.9e+16], N[(N[(N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -2.5e-289], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 3.4e-269], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 7.4e-167], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 4.3e-47], N[(N[(N[(k * y2 + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 6.5e+92], N[(N[(N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.2 \cdot 10^{+240}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y, y1 \cdot j\right) \cdot i\right) \cdot x\\
\mathbf{elif}\;i \leq -5.9 \cdot 10^{+16}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;i \leq -2.5 \cdot 10^{-289}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-269}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-167}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-47}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y2, \left(-y3\right) \cdot j\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+92}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, z, y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -4.1999999999999998e240Initial program 25.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in i around inf
Applied rewrites75.0%
if -4.1999999999999998e240 < i < -5.9e16Initial program 37.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.8%
Taylor expanded in i around inf
Applied rewrites59.4%
if -5.9e16 < i < -2.50000000000000014e-289Initial program 44.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y5 around inf
Applied rewrites39.4%
if -2.50000000000000014e-289 < i < 3.3999999999999997e-269Initial program 45.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in b around inf
Applied rewrites63.9%
if 3.3999999999999997e-269 < i < 7.4000000000000005e-167Initial program 36.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
Applied rewrites46.4%
if 7.4000000000000005e-167 < i < 4.2999999999999998e-47Initial program 29.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in y4 around inf
Applied rewrites51.1%
if 4.2999999999999998e-47 < i < 6.49999999999999999e92Initial program 32.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in a around inf
Applied rewrites48.8%
if 6.49999999999999999e92 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification51.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- c) y (* y1 j))) (t_2 (* (* t_1 i) x)))
(if (<= i -4.2e+240)
t_2
(if (<= i -5.9e+16)
(* (* (fma k y5 (* (- c) x)) i) y)
(if (<= i -1.4e-291)
(* (* (fma (- i) t (* y3 y0)) y5) j)
(if (<= i 4.8e-21)
(* (* (- y3) t_1) y4)
(if (<= i 2.05e+195)
(* (* (- y4 (/ (* a z) j)) j) (* b t))
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 = fma(-c, y, (y1 * j));
double t_2 = (t_1 * i) * x;
double tmp;
if (i <= -4.2e+240) {
tmp = t_2;
} else if (i <= -5.9e+16) {
tmp = (fma(k, y5, (-c * x)) * i) * y;
} else if (i <= -1.4e-291) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else if (i <= 4.8e-21) {
tmp = (-y3 * t_1) * y4;
} else if (i <= 2.05e+195) {
tmp = ((y4 - ((a * z) / j)) * j) * (b * t);
} 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 = fma(Float64(-c), y, Float64(y1 * j)) t_2 = Float64(Float64(t_1 * i) * x) tmp = 0.0 if (i <= -4.2e+240) tmp = t_2; elseif (i <= -5.9e+16) tmp = Float64(Float64(fma(k, y5, Float64(Float64(-c) * x)) * i) * y); elseif (i <= -1.4e-291) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); elseif (i <= 4.8e-21) tmp = Float64(Float64(Float64(-y3) * t_1) * y4); elseif (i <= 2.05e+195) tmp = Float64(Float64(Float64(y4 - Float64(Float64(a * z) / j)) * j) * Float64(b * t)); 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[((-c) * y + N[(y1 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 * i), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[i, -4.2e+240], t$95$2, If[LessEqual[i, -5.9e+16], N[(N[(N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -1.4e-291], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 4.8e-21], N[(N[((-y3) * t$95$1), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[i, 2.05e+195], N[(N[(N[(y4 - N[(N[(a * z), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, y, y1 \cdot j\right)\\
t_2 := \left(t\_1 \cdot i\right) \cdot x\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+240}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -5.9 \cdot 10^{+16}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-291}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-21}:\\
\;\;\;\;\left(\left(-y3\right) \cdot t\_1\right) \cdot y4\\
\mathbf{elif}\;i \leq 2.05 \cdot 10^{+195}:\\
\;\;\;\;\left(\left(y4 - \frac{a \cdot z}{j}\right) \cdot j\right) \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -4.1999999999999998e240 or 2.05e195 < i Initial program 27.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.4%
Taylor expanded in i around inf
Applied rewrites65.3%
if -4.1999999999999998e240 < i < -5.9e16Initial program 37.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.8%
Taylor expanded in i around inf
Applied rewrites59.4%
if -5.9e16 < i < -1.4e-291Initial program 46.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.4%
Taylor expanded in y5 around inf
Applied rewrites39.7%
if -1.4e-291 < i < 4.7999999999999999e-21Initial program 38.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.4%
Taylor expanded in y3 around -inf
Applied rewrites40.9%
if 4.7999999999999999e-21 < i < 2.05e195Initial program 23.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.0%
Taylor expanded in b around inf
Applied rewrites42.4%
Taylor expanded in y4 around -inf
Applied rewrites42.4%
Taylor expanded in j around inf
Applied rewrites50.7%
Final simplification48.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -5.9e+16)
(* (* (fma k y5 (* (- c) x)) i) y)
(if (<= i -2.5e-289)
(* (* (fma (- i) t (* y3 y0)) y5) j)
(if (<= i 3.4e-269)
(* (* (fma (- x) y0 (* y4 t)) b) j)
(if (<= i 7.4e-167)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= i 4.3e-47)
(* (* (fma k y2 (* (- y3) j)) y4) y1)
(if (<= i 6.5e+92)
(* (* (fma (- b) z (* y5 y2)) a) t)
(* (fma (- a) y3 (* k i)) (* y5 y)))))))))
double code(double x, double y, double z, double t, double 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 (i <= -5.9e+16) {
tmp = (fma(k, y5, (-c * x)) * i) * y;
} else if (i <= -2.5e-289) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else if (i <= 3.4e-269) {
tmp = (fma(-x, y0, (y4 * t)) * b) * j;
} else if (i <= 7.4e-167) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (i <= 4.3e-47) {
tmp = (fma(k, y2, (-y3 * j)) * y4) * y1;
} else if (i <= 6.5e+92) {
tmp = (fma(-b, z, (y5 * y2)) * a) * t;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -5.9e+16) tmp = Float64(Float64(fma(k, y5, Float64(Float64(-c) * x)) * i) * y); elseif (i <= -2.5e-289) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); elseif (i <= 3.4e-269) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * b) * j); elseif (i <= 7.4e-167) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (i <= 4.3e-47) tmp = Float64(Float64(fma(k, y2, Float64(Float64(-y3) * j)) * y4) * y1); elseif (i <= 6.5e+92) tmp = Float64(Float64(fma(Float64(-b), z, Float64(y5 * y2)) * a) * t); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -5.9e+16], N[(N[(N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -2.5e-289], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 3.4e-269], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 7.4e-167], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 4.3e-47], N[(N[(N[(k * y2 + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 6.5e+92], N[(N[(N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.9 \cdot 10^{+16}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;i \leq -2.5 \cdot 10^{-289}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-269}:\\
\;\;\;\;\left(\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot b\right) \cdot j\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-167}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-47}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y2, \left(-y3\right) \cdot j\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+92}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, z, y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -5.9e16Initial program 34.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.9%
Taylor expanded in i around inf
Applied rewrites55.6%
if -5.9e16 < i < -2.50000000000000014e-289Initial program 44.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y5 around inf
Applied rewrites39.4%
if -2.50000000000000014e-289 < i < 3.3999999999999997e-269Initial program 45.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in b around inf
Applied rewrites63.9%
if 3.3999999999999997e-269 < i < 7.4000000000000005e-167Initial program 36.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.7%
Taylor expanded in a around inf
Applied rewrites46.4%
if 7.4000000000000005e-167 < i < 4.2999999999999998e-47Initial program 29.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in y4 around inf
Applied rewrites51.1%
if 4.2999999999999998e-47 < i < 6.49999999999999999e92Initial program 32.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in a around inf
Applied rewrites48.8%
if 6.49999999999999999e92 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* (fma k y5 (* (- c) x)) i) y)
(if (<= i -4.4e-102)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 7.4e-167)
(* (fma y3 z (* (- x) y2)) (* y1 a))
(if (<= i 4.3e-47)
(* (* (fma k y2 (* (- y3) j)) y4) y1)
(if (<= i 6.5e+92)
(* (* (fma (- b) z (* y5 y2)) a) t)
(* (fma (- a) y3 (* k i)) (* y5 y))))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (fma(k, y5, (-c * x)) * i) * y;
} else if (i <= -4.4e-102) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 7.4e-167) {
tmp = fma(y3, z, (-x * y2)) * (y1 * a);
} else if (i <= 4.3e-47) {
tmp = (fma(k, y2, (-y3 * j)) * y4) * y1;
} else if (i <= 6.5e+92) {
tmp = (fma(-b, z, (y5 * y2)) * a) * t;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(fma(k, y5, Float64(Float64(-c) * x)) * i) * y); elseif (i <= -4.4e-102) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 7.4e-167) tmp = Float64(fma(y3, z, Float64(Float64(-x) * y2)) * Float64(y1 * a)); elseif (i <= 4.3e-47) tmp = Float64(Float64(fma(k, y2, Float64(Float64(-y3) * j)) * y4) * y1); elseif (i <= 6.5e+92) tmp = Float64(Float64(fma(Float64(-b), z, Float64(y5 * y2)) * a) * t); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -4.4e-102], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 7.4e-167], N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * N[(y1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.3e-47], N[(N[(N[(k * y2 + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 6.5e+92], N[(N[(N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-102}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-167}:\\
\;\;\;\;\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot \left(y1 \cdot a\right)\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-47}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y2, \left(-y3\right) \cdot j\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+92}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, z, y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.9%
Taylor expanded in i around inf
Applied rewrites56.6%
if -2.2000000000000001e29 < i < -4.40000000000000026e-102Initial program 48.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites16.4%
Taylor expanded in a around 0
Applied rewrites8.9%
Taylor expanded in i around inf
Applied rewrites35.0%
if -4.40000000000000026e-102 < i < 7.4000000000000005e-167Initial program 42.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites19.4%
Taylor expanded in a around inf
Applied rewrites41.0%
if 7.4000000000000005e-167 < i < 4.2999999999999998e-47Initial program 29.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in y4 around inf
Applied rewrites51.1%
if 4.2999999999999998e-47 < i < 6.49999999999999999e92Initial program 32.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in a around inf
Applied rewrites48.8%
if 6.49999999999999999e92 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification47.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= i -4.4e-102)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 7.4e-167)
(* (fma y3 z (* (- x) y2)) (* y1 a))
(if (<= i 4.3e-47)
(* (* (fma k y2 (* (- y3) j)) y4) y1)
(if (<= i 6.5e+92)
(* (* (fma (- b) z (* y5 y2)) a) t)
(* (fma (- a) y3 (* k i)) (* y5 y))))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (i <= -4.4e-102) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 7.4e-167) {
tmp = fma(y3, z, (-x * y2)) * (y1 * a);
} else if (i <= 4.3e-47) {
tmp = (fma(k, y2, (-y3 * j)) * y4) * y1;
} else if (i <= 6.5e+92) {
tmp = (fma(-b, z, (y5 * y2)) * a) * t;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (i <= -4.4e-102) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 7.4e-167) tmp = Float64(fma(y3, z, Float64(Float64(-x) * y2)) * Float64(y1 * a)); elseif (i <= 4.3e-47) tmp = Float64(Float64(fma(k, y2, Float64(Float64(-y3) * j)) * y4) * y1); elseif (i <= 6.5e+92) tmp = Float64(Float64(fma(Float64(-b), z, Float64(y5 * y2)) * a) * t); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-102], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 7.4e-167], N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * N[(y1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.3e-47], N[(N[(N[(k * y2 + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 6.5e+92], N[(N[(N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-102}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 7.4 \cdot 10^{-167}:\\
\;\;\;\;\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot \left(y1 \cdot a\right)\\
\mathbf{elif}\;i \leq 4.3 \cdot 10^{-47}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y2, \left(-y3\right) \cdot j\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{+92}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, z, y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in y around inf
Applied rewrites50.3%
if -2.2000000000000001e29 < i < -4.40000000000000026e-102Initial program 48.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites16.4%
Taylor expanded in a around 0
Applied rewrites8.9%
Taylor expanded in i around inf
Applied rewrites35.0%
if -4.40000000000000026e-102 < i < 7.4000000000000005e-167Initial program 42.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.0%
Taylor expanded in k around inf
Applied rewrites19.4%
Taylor expanded in a around inf
Applied rewrites41.0%
if 7.4000000000000005e-167 < i < 4.2999999999999998e-47Initial program 29.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in y4 around inf
Applied rewrites51.1%
if 4.2999999999999998e-47 < i < 6.49999999999999999e92Initial program 32.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in a around inf
Applied rewrites48.8%
if 6.49999999999999999e92 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification45.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- c) y (* y1 j))))
(if (<= i -4.2e+240)
(* (* t_1 i) x)
(if (<= i -5.9e+16)
(* (* (fma k y5 (* (- c) x)) i) y)
(if (<= i -1.4e-291)
(* (* (fma (- i) t (* y3 y0)) y5) j)
(if (<= i 1.02e+93)
(* (* (- y3) t_1) y4)
(* (fma (- a) y3 (* k i)) (* y5 y))))))))
double code(double x, double y, double z, double t, double 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(-c, y, (y1 * j));
double tmp;
if (i <= -4.2e+240) {
tmp = (t_1 * i) * x;
} else if (i <= -5.9e+16) {
tmp = (fma(k, y5, (-c * x)) * i) * y;
} else if (i <= -1.4e-291) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else if (i <= 1.02e+93) {
tmp = (-y3 * t_1) * y4;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-c), y, Float64(y1 * j)) tmp = 0.0 if (i <= -4.2e+240) tmp = Float64(Float64(t_1 * i) * x); elseif (i <= -5.9e+16) tmp = Float64(Float64(fma(k, y5, Float64(Float64(-c) * x)) * i) * y); elseif (i <= -1.4e-291) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); elseif (i <= 1.02e+93) tmp = Float64(Float64(Float64(-y3) * t_1) * y4); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); 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[((-c) * y + N[(y1 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+240], N[(N[(t$95$1 * i), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[i, -5.9e+16], N[(N[(N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -1.4e-291], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[i, 1.02e+93], N[(N[((-y3) * t$95$1), $MachinePrecision] * y4), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, y, y1 \cdot j\right)\\
\mathbf{if}\;i \leq -4.2 \cdot 10^{+240}:\\
\;\;\;\;\left(t\_1 \cdot i\right) \cdot x\\
\mathbf{elif}\;i \leq -5.9 \cdot 10^{+16}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-291}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{elif}\;i \leq 1.02 \cdot 10^{+93}:\\
\;\;\;\;\left(\left(-y3\right) \cdot t\_1\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -4.1999999999999998e240Initial program 25.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in i around inf
Applied rewrites75.0%
if -4.1999999999999998e240 < i < -5.9e16Initial program 37.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.8%
Taylor expanded in i around inf
Applied rewrites59.4%
if -5.9e16 < i < -1.4e-291Initial program 46.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.4%
Taylor expanded in y5 around inf
Applied rewrites39.7%
if -1.4e-291 < i < 1.0200000000000001e93Initial program 34.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in y3 around -inf
Applied rewrites40.0%
if 1.0200000000000001e93 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification47.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= i -4.4e-102)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 6.3e-185)
(* (fma y3 z (* (- x) y2)) (* y1 a))
(if (<= i 1.55e+94)
(* (* (fma b y4 (* (- i) y5)) j) t)
(* (fma (- a) y3 (* k i)) (* y5 y)))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (i <= -4.4e-102) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 6.3e-185) {
tmp = fma(y3, z, (-x * y2)) * (y1 * a);
} else if (i <= 1.55e+94) {
tmp = (fma(b, y4, (-i * y5)) * j) * t;
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (i <= -4.4e-102) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 6.3e-185) tmp = Float64(fma(y3, z, Float64(Float64(-x) * y2)) * Float64(y1 * a)); elseif (i <= 1.55e+94) tmp = Float64(Float64(fma(b, y4, Float64(Float64(-i) * y5)) * j) * t); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-102], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 6.3e-185], N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * N[(y1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e+94], N[(N[(N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * t), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-102}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 6.3 \cdot 10^{-185}:\\
\;\;\;\;\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot \left(y1 \cdot a\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{+94}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right) \cdot j\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in y around inf
Applied rewrites50.3%
if -2.2000000000000001e29 < i < -4.40000000000000026e-102Initial program 48.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites16.4%
Taylor expanded in a around 0
Applied rewrites8.9%
Taylor expanded in i around inf
Applied rewrites35.0%
if -4.40000000000000026e-102 < i < 6.2999999999999994e-185Initial program 42.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.8%
Taylor expanded in k around inf
Applied rewrites19.8%
Taylor expanded in a around inf
Applied rewrites42.0%
if 6.2999999999999994e-185 < i < 1.54999999999999996e94Initial program 33.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in j around inf
Applied rewrites38.2%
if 1.54999999999999996e94 < i Initial program 27.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in y5 around inf
Applied rewrites51.5%
Final simplification43.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= i -4.4e-102)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 5.8e-185)
(* (fma y3 z (* (- x) y2)) (* y1 a))
(if (<= i 1.75e+92)
(* (fma (- a) z (* y4 j)) (* b t))
(* (fma (- a) y3 (* k i)) (* y5 y)))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (i <= -4.4e-102) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 5.8e-185) {
tmp = fma(y3, z, (-x * y2)) * (y1 * a);
} else if (i <= 1.75e+92) {
tmp = fma(-a, z, (y4 * j)) * (b * t);
} else {
tmp = fma(-a, y3, (k * i)) * (y5 * y);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (i <= -4.4e-102) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 5.8e-185) tmp = Float64(fma(y3, z, Float64(Float64(-x) * y2)) * Float64(y1 * a)); elseif (i <= 1.75e+92) tmp = Float64(fma(Float64(-a), z, Float64(y4 * j)) * Float64(b * t)); else tmp = Float64(fma(Float64(-a), y3, Float64(k * i)) * Float64(y5 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-102], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 5.8e-185], N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * N[(y1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75e+92], N[(N[((-a) * z + N[(y4 * j), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], N[(N[((-a) * y3 + N[(k * i), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-102}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{-185}:\\
\;\;\;\;\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot \left(y1 \cdot a\right)\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+92}:\\
\;\;\;\;\mathsf{fma}\left(-a, z, y4 \cdot j\right) \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, y3, k \cdot i\right) \cdot \left(y5 \cdot y\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in y around inf
Applied rewrites50.3%
if -2.2000000000000001e29 < i < -4.40000000000000026e-102Initial program 48.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites16.4%
Taylor expanded in a around 0
Applied rewrites8.9%
Taylor expanded in i around inf
Applied rewrites35.0%
if -4.40000000000000026e-102 < i < 5.79999999999999989e-185Initial program 42.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.8%
Taylor expanded in k around inf
Applied rewrites19.8%
Taylor expanded in a around inf
Applied rewrites42.0%
if 5.79999999999999989e-185 < i < 1.74999999999999993e92Initial program 32.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.0%
Taylor expanded in b around inf
Applied rewrites37.0%
if 1.74999999999999993e92 < i Initial program 28.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y5 around inf
Applied rewrites50.2%
Final simplification43.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= i -4.4e-102)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 5.8e-185)
(* (fma y3 z (* (- x) y2)) (* y1 a))
(if (<= i 2.3e+83)
(* (fma (- a) z (* y4 j)) (* b t))
(* (fma y y5 (* (- y1) z)) (* k i)))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (i <= -4.4e-102) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 5.8e-185) {
tmp = fma(y3, z, (-x * y2)) * (y1 * a);
} else if (i <= 2.3e+83) {
tmp = fma(-a, z, (y4 * j)) * (b * t);
} else {
tmp = fma(y, y5, (-y1 * z)) * (k * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (i <= -4.4e-102) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 5.8e-185) tmp = Float64(fma(y3, z, Float64(Float64(-x) * y2)) * Float64(y1 * a)); elseif (i <= 2.3e+83) tmp = Float64(fma(Float64(-a), z, Float64(y4 * j)) * Float64(b * t)); else tmp = Float64(fma(y, y5, Float64(Float64(-y1) * z)) * Float64(k * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-102], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 5.8e-185], N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * N[(y1 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+83], N[(N[((-a) * z + N[(y4 * j), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], N[(N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision] * N[(k * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -4.4 \cdot 10^{-102}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{-185}:\\
\;\;\;\;\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot \left(y1 \cdot a\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+83}:\\
\;\;\;\;\mathsf{fma}\left(-a, z, y4 \cdot j\right) \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right) \cdot \left(k \cdot i\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in y around inf
Applied rewrites50.3%
if -2.2000000000000001e29 < i < -4.40000000000000026e-102Initial program 48.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites16.4%
Taylor expanded in a around 0
Applied rewrites8.9%
Taylor expanded in i around inf
Applied rewrites35.0%
if -4.40000000000000026e-102 < i < 5.79999999999999989e-185Initial program 42.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.8%
Taylor expanded in k around inf
Applied rewrites19.8%
Taylor expanded in a around inf
Applied rewrites42.0%
if 5.79999999999999989e-185 < i < 2.29999999999999995e83Initial program 30.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in b around inf
Applied rewrites37.8%
if 2.29999999999999995e83 < i Initial program 30.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.8%
Taylor expanded in k around inf
Applied rewrites46.5%
Final simplification43.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+29)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= i -4e-136)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= i 2.4e-188)
(* (* a t) (fma (- b) z (* y5 y2)))
(if (<= i 2.3e+83)
(* (fma (- a) z (* y4 j)) (* b t))
(* (fma y y5 (* (- y1) z)) (* k i)))))))
double code(double x, double y, double z, double t, double 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 (i <= -2.2e+29) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (i <= -4e-136) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (i <= 2.4e-188) {
tmp = (a * t) * fma(-b, z, (y5 * y2));
} else if (i <= 2.3e+83) {
tmp = fma(-a, z, (y4 * j)) * (b * t);
} else {
tmp = fma(y, y5, (-y1 * z)) * (k * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+29) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (i <= -4e-136) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (i <= 2.4e-188) tmp = Float64(Float64(a * t) * fma(Float64(-b), z, Float64(y5 * y2))); elseif (i <= 2.3e+83) tmp = Float64(fma(Float64(-a), z, Float64(y4 * j)) * Float64(b * t)); else tmp = Float64(fma(y, y5, Float64(Float64(-y1) * z)) * Float64(k * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+29], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4e-136], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 2.4e-188], N[(N[(a * t), $MachinePrecision] * N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+83], N[(N[((-a) * z + N[(y4 * j), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], N[(N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision] * N[(k * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+29}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;i \leq -4 \cdot 10^{-136}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-188}:\\
\;\;\;\;\left(a \cdot t\right) \cdot \mathsf{fma}\left(-b, z, y5 \cdot y2\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+83}:\\
\;\;\;\;\mathsf{fma}\left(-a, z, y4 \cdot j\right) \cdot \left(b \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right) \cdot \left(k \cdot i\right)\\
\end{array}
\end{array}
if i < -2.2000000000000001e29Initial program 32.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in y around inf
Applied rewrites50.3%
if -2.2000000000000001e29 < i < -4.00000000000000001e-136Initial program 42.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
Applied rewrites13.0%
Taylor expanded in a around 0
Applied rewrites10.0%
Taylor expanded in i around inf
Applied rewrites30.1%
if -4.00000000000000001e-136 < i < 2.4e-188Initial program 43.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in b around inf
Applied rewrites19.2%
Taylor expanded in a around 0
Applied rewrites17.9%
Taylor expanded in a around inf
Applied rewrites33.9%
if 2.4e-188 < i < 2.29999999999999995e83Initial program 31.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in b around inf
Applied rewrites38.4%
if 2.29999999999999995e83 < i Initial program 30.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.8%
Taylor expanded in k around inf
Applied rewrites46.5%
Final simplification40.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1700000000.0)
(* (* (* b t) j) y4)
(if (<= t 4.2e-300)
(* (* (* (- k) z) i) y1)
(if (<= t 2.55e-65)
(* (* (* y3 y) c) y4)
(if (<= t 2.5e+110) (* (* (* (- y1) y3) j) y4) (* (* (* j t) y4) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1700000000.0) {
tmp = ((b * t) * j) * y4;
} else if (t <= 4.2e-300) {
tmp = ((-k * z) * i) * y1;
} else if (t <= 2.55e-65) {
tmp = ((y3 * y) * c) * y4;
} else if (t <= 2.5e+110) {
tmp = ((-y1 * y3) * j) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-1700000000.0d0)) then
tmp = ((b * t) * j) * y4
else if (t <= 4.2d-300) then
tmp = ((-k * z) * i) * y1
else if (t <= 2.55d-65) then
tmp = ((y3 * y) * c) * y4
else if (t <= 2.5d+110) then
tmp = ((-y1 * y3) * j) * y4
else
tmp = ((j * t) * y4) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1700000000.0) {
tmp = ((b * t) * j) * y4;
} else if (t <= 4.2e-300) {
tmp = ((-k * z) * i) * y1;
} else if (t <= 2.55e-65) {
tmp = ((y3 * y) * c) * y4;
} else if (t <= 2.5e+110) {
tmp = ((-y1 * y3) * j) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -1700000000.0: tmp = ((b * t) * j) * y4 elif t <= 4.2e-300: tmp = ((-k * z) * i) * y1 elif t <= 2.55e-65: tmp = ((y3 * y) * c) * y4 elif t <= 2.5e+110: tmp = ((-y1 * y3) * j) * y4 else: tmp = ((j * t) * y4) * b return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -1700000000.0) tmp = Float64(Float64(Float64(b * t) * j) * y4); elseif (t <= 4.2e-300) tmp = Float64(Float64(Float64(Float64(-k) * z) * i) * y1); elseif (t <= 2.55e-65) tmp = Float64(Float64(Float64(y3 * y) * c) * y4); elseif (t <= 2.5e+110) tmp = Float64(Float64(Float64(Float64(-y1) * y3) * j) * y4); else tmp = Float64(Float64(Float64(j * t) * y4) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -1700000000.0) tmp = ((b * t) * j) * y4; elseif (t <= 4.2e-300) tmp = ((-k * z) * i) * y1; elseif (t <= 2.55e-65) tmp = ((y3 * y) * c) * y4; elseif (t <= 2.5e+110) tmp = ((-y1 * y3) * j) * y4; else tmp = ((j * t) * y4) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1700000000.0], N[(N[(N[(b * t), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 4.2e-300], N[(N[(N[((-k) * z), $MachinePrecision] * i), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 2.55e-65], N[(N[(N[(y3 * y), $MachinePrecision] * c), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 2.5e+110], N[(N[(N[((-y1) * y3), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1700000000:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot j\right) \cdot y4\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-300}:\\
\;\;\;\;\left(\left(\left(-k\right) \cdot z\right) \cdot i\right) \cdot y1\\
\mathbf{elif}\;t \leq 2.55 \cdot 10^{-65}:\\
\;\;\;\;\left(\left(y3 \cdot y\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+110}:\\
\;\;\;\;\left(\left(\left(-y1\right) \cdot y3\right) \cdot j\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if t < -1.7e9Initial program 30.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.3%
Taylor expanded in b around inf
Applied rewrites33.1%
Taylor expanded in a around 0
Applied rewrites26.3%
Applied rewrites31.0%
if -1.7e9 < t < 4.20000000000000007e-300Initial program 33.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.6%
Taylor expanded in k around inf
Applied rewrites42.1%
Taylor expanded in y4 around 0
Applied rewrites35.8%
if 4.20000000000000007e-300 < t < 2.55e-65Initial program 50.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Taylor expanded in y3 around -inf
Applied rewrites25.2%
Taylor expanded in c around inf
Applied rewrites23.4%
if 2.55e-65 < t < 2.49999999999999989e110Initial program 37.1%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.4%
Taylor expanded in y3 around -inf
Applied rewrites40.4%
Taylor expanded in c around 0
Applied rewrites35.9%
if 2.49999999999999989e110 < t Initial program 34.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.2%
Taylor expanded in b around inf
Applied rewrites33.1%
Taylor expanded in a around 0
Applied rewrites45.4%
Final simplification33.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -5.2e+71)
(* (* (* (- y1) y3) j) y4)
(if (<= y2 -2.15e-97)
(* (fma y y5 (* (- y1) z)) (* k i))
(if (<= y2 1.4e+125)
(* (* (fma (- j) y5 (* c z)) t) i)
(* (* (* y2 k) y4) y1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -5.2e+71) {
tmp = ((-y1 * y3) * j) * y4;
} else if (y2 <= -2.15e-97) {
tmp = fma(y, y5, (-y1 * z)) * (k * i);
} else if (y2 <= 1.4e+125) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else {
tmp = ((y2 * k) * y4) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -5.2e+71) tmp = Float64(Float64(Float64(Float64(-y1) * y3) * j) * y4); elseif (y2 <= -2.15e-97) tmp = Float64(fma(y, y5, Float64(Float64(-y1) * z)) * Float64(k * i)); elseif (y2 <= 1.4e+125) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); else tmp = Float64(Float64(Float64(y2 * k) * y4) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -5.2e+71], N[(N[(N[((-y1) * y3), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y2, -2.15e-97], N[(N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision] * N[(k * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.4e+125], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], N[(N[(N[(y2 * k), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -5.2 \cdot 10^{+71}:\\
\;\;\;\;\left(\left(\left(-y1\right) \cdot y3\right) \cdot j\right) \cdot y4\\
\mathbf{elif}\;y2 \leq -2.15 \cdot 10^{-97}:\\
\;\;\;\;\mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right) \cdot \left(k \cdot i\right)\\
\mathbf{elif}\;y2 \leq 1.4 \cdot 10^{+125}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y2 \cdot k\right) \cdot y4\right) \cdot y1\\
\end{array}
\end{array}
if y2 < -5.19999999999999983e71Initial program 23.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.4%
Taylor expanded in y3 around -inf
Applied rewrites45.1%
Taylor expanded in c around 0
Applied rewrites36.2%
if -5.19999999999999983e71 < y2 < -2.15e-97Initial program 50.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in k around inf
Applied rewrites40.4%
if -2.15e-97 < y2 < 1.4e125Initial program 41.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.3%
Taylor expanded in b around inf
Applied rewrites31.5%
Taylor expanded in a around 0
Applied rewrites19.1%
Taylor expanded in i around inf
Applied rewrites37.7%
if 1.4e125 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in k around inf
Applied rewrites31.9%
Taylor expanded in y4 around inf
Applied rewrites36.5%
Final simplification37.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -5.8e+88)
(* (* (fma (- j) y5 (* c z)) t) i)
(if (<= j 4.8e+29)
(* (* a t) (fma (- b) z (* y5 y2)))
(if (<= j 1.6e+282) (* (* (* (- y3) j) y1) y4) (* (* (* y5 y3) y0) 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 (j <= -5.8e+88) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else if (j <= 4.8e+29) {
tmp = (a * t) * fma(-b, z, (y5 * y2));
} else if (j <= 1.6e+282) {
tmp = ((-y3 * j) * y1) * y4;
} else {
tmp = ((y5 * y3) * y0) * 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 (j <= -5.8e+88) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); elseif (j <= 4.8e+29) tmp = Float64(Float64(a * t) * fma(Float64(-b), z, Float64(y5 * y2))); elseif (j <= 1.6e+282) tmp = Float64(Float64(Float64(Float64(-y3) * j) * y1) * y4); else tmp = Float64(Float64(Float64(y5 * y3) * y0) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -5.8e+88], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, 4.8e+29], N[(N[(a * t), $MachinePrecision] * N[((-b) * z + N[(y5 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e+282], N[(N[(N[((-y3) * j), $MachinePrecision] * y1), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5.8 \cdot 10^{+88}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+29}:\\
\;\;\;\;\left(a \cdot t\right) \cdot \mathsf{fma}\left(-b, z, y5 \cdot y2\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+282}:\\
\;\;\;\;\left(\left(\left(-y3\right) \cdot j\right) \cdot y1\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\end{array}
\end{array}
if j < -5.7999999999999999e88Initial program 30.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.8%
Taylor expanded in b around inf
Applied rewrites32.6%
Taylor expanded in a around 0
Applied rewrites23.5%
Taylor expanded in i around inf
Applied rewrites47.8%
if -5.7999999999999999e88 < j < 4.8000000000000002e29Initial program 41.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.6%
Taylor expanded in b around inf
Applied rewrites19.5%
Taylor expanded in a around 0
Applied rewrites10.9%
Taylor expanded in a around inf
Applied rewrites27.2%
if 4.8000000000000002e29 < j < 1.6000000000000001e282Initial program 30.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in y3 around -inf
Applied rewrites48.7%
Taylor expanded in c around 0
Applied rewrites42.1%
Applied rewrites46.4%
if 1.6000000000000001e282 < j Initial program 33.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.7%
Taylor expanded in y3 around inf
Applied rewrites66.7%
Taylor expanded in y4 around 0
Applied rewrites83.4%
Final simplification36.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -105000.0)
(* (* (* (- y1) y3) j) y4)
(if (<= y2 1.4e+125)
(* (* (fma (- j) y5 (* c z)) t) i)
(* (* (* y2 k) y4) y1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -105000.0) {
tmp = ((-y1 * y3) * j) * y4;
} else if (y2 <= 1.4e+125) {
tmp = (fma(-j, y5, (c * z)) * t) * i;
} else {
tmp = ((y2 * k) * y4) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -105000.0) tmp = Float64(Float64(Float64(Float64(-y1) * y3) * j) * y4); elseif (y2 <= 1.4e+125) tmp = Float64(Float64(fma(Float64(-j), y5, Float64(c * z)) * t) * i); else tmp = Float64(Float64(Float64(y2 * k) * y4) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -105000.0], N[(N[(N[((-y1) * y3), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y2, 1.4e+125], N[(N[(N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * i), $MachinePrecision], N[(N[(N[(y2 * k), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -105000:\\
\;\;\;\;\left(\left(\left(-y1\right) \cdot y3\right) \cdot j\right) \cdot y4\\
\mathbf{elif}\;y2 \leq 1.4 \cdot 10^{+125}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y5, c \cdot z\right) \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y2 \cdot k\right) \cdot y4\right) \cdot y1\\
\end{array}
\end{array}
if y2 < -105000Initial program 30.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.0%
Taylor expanded in y3 around -inf
Applied rewrites43.8%
Taylor expanded in c around 0
Applied rewrites34.5%
if -105000 < y2 < 1.4e125Initial program 41.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in b around inf
Applied rewrites29.0%
Taylor expanded in a around 0
Applied rewrites17.0%
Taylor expanded in i around inf
Applied rewrites33.5%
if 1.4e125 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in k around inf
Applied rewrites31.9%
Taylor expanded in y4 around inf
Applied rewrites36.5%
Final simplification34.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1700000000.0)
(* (* (* b t) j) y4)
(if (<= t 4.2e-300)
(* (* (* (- k) z) i) y1)
(if (<= t 1.45e+70) (* (* (* y3 y) c) y4) (* (* (* j t) y4) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1700000000.0) {
tmp = ((b * t) * j) * y4;
} else if (t <= 4.2e-300) {
tmp = ((-k * z) * i) * y1;
} else if (t <= 1.45e+70) {
tmp = ((y3 * y) * c) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-1700000000.0d0)) then
tmp = ((b * t) * j) * y4
else if (t <= 4.2d-300) then
tmp = ((-k * z) * i) * y1
else if (t <= 1.45d+70) then
tmp = ((y3 * y) * c) * y4
else
tmp = ((j * t) * y4) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1700000000.0) {
tmp = ((b * t) * j) * y4;
} else if (t <= 4.2e-300) {
tmp = ((-k * z) * i) * y1;
} else if (t <= 1.45e+70) {
tmp = ((y3 * y) * c) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -1700000000.0: tmp = ((b * t) * j) * y4 elif t <= 4.2e-300: tmp = ((-k * z) * i) * y1 elif t <= 1.45e+70: tmp = ((y3 * y) * c) * y4 else: tmp = ((j * t) * y4) * b return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -1700000000.0) tmp = Float64(Float64(Float64(b * t) * j) * y4); elseif (t <= 4.2e-300) tmp = Float64(Float64(Float64(Float64(-k) * z) * i) * y1); elseif (t <= 1.45e+70) tmp = Float64(Float64(Float64(y3 * y) * c) * y4); else tmp = Float64(Float64(Float64(j * t) * y4) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -1700000000.0) tmp = ((b * t) * j) * y4; elseif (t <= 4.2e-300) tmp = ((-k * z) * i) * y1; elseif (t <= 1.45e+70) tmp = ((y3 * y) * c) * y4; else tmp = ((j * t) * y4) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1700000000.0], N[(N[(N[(b * t), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 4.2e-300], N[(N[(N[((-k) * z), $MachinePrecision] * i), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 1.45e+70], N[(N[(N[(y3 * y), $MachinePrecision] * c), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1700000000:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot j\right) \cdot y4\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-300}:\\
\;\;\;\;\left(\left(\left(-k\right) \cdot z\right) \cdot i\right) \cdot y1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{+70}:\\
\;\;\;\;\left(\left(y3 \cdot y\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if t < -1.7e9Initial program 30.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.3%
Taylor expanded in b around inf
Applied rewrites33.1%
Taylor expanded in a around 0
Applied rewrites26.3%
Applied rewrites31.0%
if -1.7e9 < t < 4.20000000000000007e-300Initial program 33.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.6%
Taylor expanded in k around inf
Applied rewrites42.1%
Taylor expanded in y4 around 0
Applied rewrites35.8%
if 4.20000000000000007e-300 < t < 1.4499999999999999e70Initial program 45.1%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.9%
Taylor expanded in y3 around -inf
Applied rewrites28.5%
Taylor expanded in c around inf
Applied rewrites21.4%
if 1.4499999999999999e70 < t Initial program 35.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.6%
Taylor expanded in b around inf
Applied rewrites34.7%
Taylor expanded in a around 0
Applied rewrites41.8%
Final simplification31.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.8e+57)
(* (* (* b t) y4) j)
(if (<= b -5e-193)
(* (* (* y2 k) y4) y1)
(if (<= b 3.9e+71) (* (* (* y5 y3) y0) j) (* (* (* b t) j) y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.8e+57) {
tmp = ((b * t) * y4) * j;
} else if (b <= -5e-193) {
tmp = ((y2 * k) * y4) * y1;
} else if (b <= 3.9e+71) {
tmp = ((y5 * y3) * y0) * j;
} else {
tmp = ((b * t) * j) * y4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-1.8d+57)) then
tmp = ((b * t) * y4) * j
else if (b <= (-5d-193)) then
tmp = ((y2 * k) * y4) * y1
else if (b <= 3.9d+71) then
tmp = ((y5 * y3) * y0) * j
else
tmp = ((b * t) * j) * y4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.8e+57) {
tmp = ((b * t) * y4) * j;
} else if (b <= -5e-193) {
tmp = ((y2 * k) * y4) * y1;
} else if (b <= 3.9e+71) {
tmp = ((y5 * y3) * y0) * j;
} else {
tmp = ((b * t) * j) * y4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -1.8e+57: tmp = ((b * t) * y4) * j elif b <= -5e-193: tmp = ((y2 * k) * y4) * y1 elif b <= 3.9e+71: tmp = ((y5 * y3) * y0) * j else: tmp = ((b * t) * j) * y4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -1.8e+57) tmp = Float64(Float64(Float64(b * t) * y4) * j); elseif (b <= -5e-193) tmp = Float64(Float64(Float64(y2 * k) * y4) * y1); elseif (b <= 3.9e+71) tmp = Float64(Float64(Float64(y5 * y3) * y0) * j); else tmp = Float64(Float64(Float64(b * t) * j) * y4); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -1.8e+57) tmp = ((b * t) * y4) * j; elseif (b <= -5e-193) tmp = ((y2 * k) * y4) * y1; elseif (b <= 3.9e+71) tmp = ((y5 * y3) * y0) * j; else tmp = ((b * t) * j) * y4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.8e+57], N[(N[(N[(b * t), $MachinePrecision] * y4), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, -5e-193], N[(N[(N[(y2 * k), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[b, 3.9e+71], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision], N[(N[(N[(b * t), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.8 \cdot 10^{+57}:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot y4\right) \cdot j\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-193}:\\
\;\;\;\;\left(\left(y2 \cdot k\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;b \leq 3.9 \cdot 10^{+71}:\\
\;\;\;\;\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot j\right) \cdot y4\\
\end{array}
\end{array}
if b < -1.8000000000000001e57Initial program 24.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.8%
Taylor expanded in b around inf
Applied rewrites32.9%
Taylor expanded in a around 0
Applied rewrites27.3%
Applied rewrites29.2%
if -1.8000000000000001e57 < b < -5.0000000000000005e-193Initial program 40.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.3%
Taylor expanded in k around inf
Applied rewrites34.5%
Taylor expanded in y4 around inf
Applied rewrites28.3%
if -5.0000000000000005e-193 < b < 3.9000000000000001e71Initial program 42.8%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.1%
Taylor expanded in y3 around inf
Applied rewrites22.2%
Taylor expanded in y4 around 0
Applied rewrites19.2%
if 3.9000000000000001e71 < b Initial program 33.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in b around inf
Applied rewrites44.5%
Taylor expanded in a around 0
Applied rewrites28.9%
Applied rewrites40.2%
Final simplification27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* y3 y) c) y4))) (if (<= y -1.5e+202) t_1 (if (<= y 1.5e-120) (* (* (* y5 y3) y0) j) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y3 * y) * c) * y4;
double tmp;
if (y <= -1.5e+202) {
tmp = t_1;
} else if (y <= 1.5e-120) {
tmp = ((y5 * y3) * y0) * j;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((y3 * y) * c) * y4
if (y <= (-1.5d+202)) then
tmp = t_1
else if (y <= 1.5d-120) then
tmp = ((y5 * y3) * y0) * j
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y3 * y) * c) * y4;
double tmp;
if (y <= -1.5e+202) {
tmp = t_1;
} else if (y <= 1.5e-120) {
tmp = ((y5 * y3) * y0) * j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((y3 * y) * c) * y4 tmp = 0 if y <= -1.5e+202: tmp = t_1 elif y <= 1.5e-120: tmp = ((y5 * y3) * y0) * j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(y3 * y) * c) * y4) tmp = 0.0 if (y <= -1.5e+202) tmp = t_1; elseif (y <= 1.5e-120) tmp = Float64(Float64(Float64(y5 * y3) * y0) * j); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((y3 * y) * c) * y4; tmp = 0.0; if (y <= -1.5e+202) tmp = t_1; elseif (y <= 1.5e-120) tmp = ((y5 * y3) * y0) * j; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(y3 * y), $MachinePrecision] * c), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y, -1.5e+202], t$95$1, If[LessEqual[y, 1.5e-120], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y3 \cdot y\right) \cdot c\right) \cdot y4\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-120}:\\
\;\;\;\;\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.5000000000000001e202 or 1.50000000000000005e-120 < y Initial program 36.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.6%
Taylor expanded in y3 around -inf
Applied rewrites37.5%
Taylor expanded in c around inf
Applied rewrites32.9%
if -1.5000000000000001e202 < y < 1.50000000000000005e-120Initial program 36.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.2%
Taylor expanded in y3 around inf
Applied rewrites31.5%
Taylor expanded in y4 around 0
Applied rewrites22.7%
Final simplification27.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* y2 k) y4) y1))) (if (<= y2 -2.05e-69) t_1 (if (<= y2 6.2e+121) (* (* (* y4 j) b) t) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y2 * k) * y4) * y1;
double tmp;
if (y2 <= -2.05e-69) {
tmp = t_1;
} else if (y2 <= 6.2e+121) {
tmp = ((y4 * j) * b) * t;
} 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 = ((y2 * k) * y4) * y1
if (y2 <= (-2.05d-69)) then
tmp = t_1
else if (y2 <= 6.2d+121) then
tmp = ((y4 * j) * b) * t
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 = ((y2 * k) * y4) * y1;
double tmp;
if (y2 <= -2.05e-69) {
tmp = t_1;
} else if (y2 <= 6.2e+121) {
tmp = ((y4 * j) * b) * t;
} 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 = ((y2 * k) * y4) * y1 tmp = 0 if y2 <= -2.05e-69: tmp = t_1 elif y2 <= 6.2e+121: tmp = ((y4 * j) * b) * t 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(y2 * k) * y4) * y1) tmp = 0.0 if (y2 <= -2.05e-69) tmp = t_1; elseif (y2 <= 6.2e+121) tmp = Float64(Float64(Float64(y4 * j) * b) * t); 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 = ((y2 * k) * y4) * y1; tmp = 0.0; if (y2 <= -2.05e-69) tmp = t_1; elseif (y2 <= 6.2e+121) tmp = ((y4 * j) * b) * t; 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[(y2 * k), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[y2, -2.05e-69], t$95$1, If[LessEqual[y2, 6.2e+121], N[(N[(N[(y4 * j), $MachinePrecision] * b), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y2 \cdot k\right) \cdot y4\right) \cdot y1\\
\mathbf{if}\;y2 \leq -2.05 \cdot 10^{-69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 6.2 \cdot 10^{+121}:\\
\;\;\;\;\left(\left(y4 \cdot j\right) \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -2.04999999999999995e-69 or 6.20000000000000016e121 < y2 Initial program 32.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.2%
Taylor expanded in k around inf
Applied rewrites32.0%
Taylor expanded in y4 around inf
Applied rewrites29.0%
if -2.04999999999999995e-69 < y2 < 6.20000000000000016e121Initial program 41.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.8%
Taylor expanded in j around inf
Applied rewrites30.6%
Taylor expanded in b around inf
Applied rewrites21.7%
Final simplification25.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z 9.2e-253) (* (* (* y4 j) b) t) (* (* (* b t) j) y4)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= 9.2e-253) {
tmp = ((y4 * j) * b) * t;
} else {
tmp = ((b * t) * j) * y4;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= 9.2d-253) then
tmp = ((y4 * j) * b) * t
else
tmp = ((b * t) * j) * y4
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= 9.2e-253) {
tmp = ((y4 * j) * b) * t;
} else {
tmp = ((b * t) * j) * y4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= 9.2e-253: tmp = ((y4 * j) * b) * t else: tmp = ((b * t) * j) * y4 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= 9.2e-253) tmp = Float64(Float64(Float64(y4 * j) * b) * t); else tmp = Float64(Float64(Float64(b * t) * j) * y4); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= 9.2e-253) tmp = ((y4 * j) * b) * t; else tmp = ((b * t) * j) * y4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, 9.2e-253], N[(N[(N[(y4 * j), $MachinePrecision] * b), $MachinePrecision] * t), $MachinePrecision], N[(N[(N[(b * t), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 9.2 \cdot 10^{-253}:\\
\;\;\;\;\left(\left(y4 \cdot j\right) \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot j\right) \cdot y4\\
\end{array}
\end{array}
if z < 9.2000000000000001e-253Initial program 40.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.7%
Taylor expanded in j around inf
Applied rewrites27.0%
Taylor expanded in b around inf
Applied rewrites17.3%
if 9.2000000000000001e-253 < z Initial program 32.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in b around inf
Applied rewrites24.8%
Taylor expanded in a around 0
Applied rewrites19.8%
Applied rewrites22.1%
Final simplification19.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y4 6.5e-192) (* (* (* b t) j) y4) (* (* (* j t) y4) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= 6.5e-192) {
tmp = ((b * t) * j) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= 6.5d-192) then
tmp = ((b * t) * j) * y4
else
tmp = ((j * t) * y4) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= 6.5e-192) {
tmp = ((b * t) * j) * y4;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= 6.5e-192: tmp = ((b * t) * j) * y4 else: tmp = ((j * t) * y4) * b return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= 6.5e-192) tmp = Float64(Float64(Float64(b * t) * j) * y4); else tmp = Float64(Float64(Float64(j * t) * y4) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= 6.5e-192) tmp = ((b * t) * j) * y4; else tmp = ((j * t) * y4) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, 6.5e-192], N[(N[(N[(b * t), $MachinePrecision] * j), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq 6.5 \cdot 10^{-192}:\\
\;\;\;\;\left(\left(b \cdot t\right) \cdot j\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if y4 < 6.49999999999999966e-192Initial program 42.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.4%
Taylor expanded in b around inf
Applied rewrites22.6%
Taylor expanded in a around 0
Applied rewrites13.6%
Applied rewrites18.0%
if 6.49999999999999966e-192 < y4 Initial program 28.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.7%
Taylor expanded in b around inf
Applied rewrites22.2%
Taylor expanded in a around 0
Applied rewrites22.2%
Final simplification19.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* j t) y4) b))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((j * t) * y4) * b;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = ((j * t) * y4) * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((j * t) * y4) * b;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((j * t) * y4) * b
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(j * t) * y4) * b) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((j * t) * y4) * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(j \cdot t\right) \cdot y4\right) \cdot b
\end{array}
Initial program 36.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in b around inf
Applied rewrites22.5%
Taylor expanded in a around 0
Applied rewrites17.0%
Final simplification17.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 2024240
(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)))))