
(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 38 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 (- (* j t) (* k y)))
(t_2 (- (* y2 k) (* y3 j)))
(t_3 (- (* j x) (* k z)))
(t_4 (- (* y3 y) (* y2 t)))
(t_5 (* (fma t_1 b (fma t_2 y1 (* t_4 c))) y4)))
(if (<= y5 -1.6e-40)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 -2.1e-225)
t_5
(if (<= y5 7.6e-241)
(* (fma (- (* y3 z) (* y2 x)) a (fma t_2 y4 (* t_3 i))) y1)
(if (<= y5 1.92e-115)
(*
(*
(fma
(- b)
x
(fma
-1.0
(/
(fma
(- b)
(* t z)
(fma (* y2 t) y5 (* (fma y3 z (* (- x) y2)) y1)))
y)
(* y5 y3)))
(- y))
a)
(if (<= y5 0.06)
(-
(-
(-
(* (fma (- c) (- (* y x) (* t z)) (* t_3 y1)) i)
(* (- (* y5 i) (* y4 b)) t_1))
(* (- (* y5 a) (* y4 c)) t_4))
(* (- (* y5 y0) (* y4 y1)) t_2))
(if (<= y5 4.2e+101)
t_5
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_2 (* (- (* y2 t) (* y3 y)) a)))
y5)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (y2 * k) - (y3 * j);
double t_3 = (j * x) - (k * z);
double t_4 = (y3 * y) - (y2 * t);
double t_5 = fma(t_1, b, fma(t_2, y1, (t_4 * c))) * y4;
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -2.1e-225) {
tmp = t_5;
} else if (y5 <= 7.6e-241) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(t_2, y4, (t_3 * i))) * y1;
} else if (y5 <= 1.92e-115) {
tmp = (fma(-b, x, fma(-1.0, (fma(-b, (t * z), fma((y2 * t), y5, (fma(y3, z, (-x * y2)) * y1))) / y), (y5 * y3))) * -y) * a;
} else if (y5 <= 0.06) {
tmp = (((fma(-c, ((y * x) - (t * z)), (t_3 * y1)) * i) - (((y5 * i) - (y4 * b)) * t_1)) - (((y5 * a) - (y4 * c)) * t_4)) - (((y5 * y0) - (y4 * y1)) * t_2);
} else if (y5 <= 4.2e+101) {
tmp = t_5;
} else {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, t_2, (((y2 * t) - (y3 * y)) * a))) * y5;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_3 = Float64(Float64(j * x) - Float64(k * z)) t_4 = Float64(Float64(y3 * y) - Float64(y2 * t)) t_5 = Float64(fma(t_1, b, fma(t_2, y1, Float64(t_4 * c))) * y4) tmp = 0.0 if (y5 <= -1.6e-40) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= -2.1e-225) tmp = t_5; elseif (y5 <= 7.6e-241) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(t_2, y4, Float64(t_3 * i))) * y1); elseif (y5 <= 1.92e-115) tmp = Float64(Float64(fma(Float64(-b), x, fma(-1.0, Float64(fma(Float64(-b), Float64(t * z), fma(Float64(y2 * t), y5, Float64(fma(y3, z, Float64(Float64(-x) * y2)) * y1))) / y), Float64(y5 * y3))) * Float64(-y)) * a); elseif (y5 <= 0.06) tmp = Float64(Float64(Float64(Float64(fma(Float64(-c), Float64(Float64(y * x) - Float64(t * z)), Float64(t_3 * y1)) * i) - Float64(Float64(Float64(y5 * i) - Float64(y4 * b)) * t_1)) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * t_4)) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * t_2)); elseif (y5 <= 4.2e+101) tmp = t_5; else tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_2, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5); 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[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(t$95$1 * b + N[(t$95$2 * y1 + N[(t$95$4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, -2.1e-225], t$95$5, If[LessEqual[y5, 7.6e-241], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4 + N[(t$95$3 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 1.92e-115], N[(N[(N[((-b) * x + N[(-1.0 * N[(N[((-b) * N[(t * z), $MachinePrecision] + N[(N[(y2 * t), $MachinePrecision] * y5 + N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(y5 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, 0.06], N[(N[(N[(N[(N[((-c) * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(t$95$3 * y1), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] - N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4.2e+101], t$95$5, N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$2 + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := y2 \cdot k - y3 \cdot j\\
t_3 := j \cdot x - k \cdot z\\
t_4 := y3 \cdot y - y2 \cdot t\\
t_5 := \mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(t\_2, y1, t\_4 \cdot c\right)\right) \cdot y4\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq -2.1 \cdot 10^{-225}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-241}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(t\_2, y4, t\_3 \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 1.92 \cdot 10^{-115}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, x, \mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-b, t \cdot z, \mathsf{fma}\left(y2 \cdot t, y5, \mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot y1\right)\right)}{y}, y5 \cdot y3\right)\right) \cdot \left(-y\right)\right) \cdot a\\
\mathbf{elif}\;y5 \leq 0.06:\\
\;\;\;\;\left(\left(\mathsf{fma}\left(-c, y \cdot x - t \cdot z, t\_3 \cdot y1\right) \cdot i - \left(y5 \cdot i - y4 \cdot b\right) \cdot t\_1\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot t\_4\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot t\_2\\
\mathbf{elif}\;y5 \leq 4.2 \cdot 10^{+101}:\\
\;\;\;\;t\_5\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_2, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -2.1e-225 or 0.059999999999999998 < y5 < 4.2e101Initial program 32.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.3%
if -2.1e-225 < y5 < 7.5999999999999998e-241Initial program 32.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.6%
if 7.5999999999999998e-241 < y5 < 1.91999999999999994e-115Initial program 26.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.7%
Taylor expanded in y around -inf
Applied rewrites65.3%
if 1.91999999999999994e-115 < y5 < 0.059999999999999998Initial program 68.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.7%
if 4.2e101 < y5 Initial program 28.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.9%
Final simplification64.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(-
(-
(-
(-
(-
(* (- (* y1 i) (* y0 b)) (- (* j x) (* k z)))
(* (- (* t z) (* y x)) (- (* b a) (* i c))))
(* (- (* y1 a) (* y0 c)) (- (* y2 x) (* y3 z))))
(* (- (* y5 i) (* y4 b)) (- (* j t) (* k y))))
(* (- (* y5 a) (* y4 c)) (- (* y3 y) (* y2 t))))
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))))
(if (<= t_1 INFINITY)
t_1
(*
(fma
(- (* i c) (* b a))
t
(fma (- y3) (- (* y0 c) (* y1 a)) (* (- (* y0 b) (* y1 i)) k)))
z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((y1 * i) - (y0 * b)) * ((j * x) - (k * z))) - (((t * z) - (y * x)) * ((b * a) - (i * c)))) - (((y1 * a) - (y0 * c)) * ((y2 * x) - (y3 * z)))) - (((y5 * i) - (y4 * b)) * ((j * t) - (k * y)))) - (((y5 * a) - (y4 * c)) * ((y3 * y) - (y2 * t)))) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(((i * c) - (b * a)), t, fma(-y3, ((y0 * c) - (y1 * a)), (((y0 * b) - (y1 * i)) * k))) * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * Float64(Float64(j * x) - Float64(k * z))) - Float64(Float64(Float64(t * z) - Float64(y * x)) * Float64(Float64(b * a) - Float64(i * c)))) - Float64(Float64(Float64(y1 * a) - Float64(y0 * c)) * Float64(Float64(y2 * x) - Float64(y3 * z)))) - Float64(Float64(Float64(y5 * i) - Float64(y4 * b)) * Float64(Float64(j * t) - Float64(k * y)))) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * Float64(Float64(y3 * y) - Float64(y2 * t)))) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(Float64(i * c) - Float64(b * a)), t, fma(Float64(-y3), Float64(Float64(y0 * c) - Float64(y1 * a)), Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * k))) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * z), $MachinePrecision] - N[(y * x), $MachinePrecision]), $MachinePrecision] * N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * a), $MachinePrecision] - N[(y0 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * t + N[((-y3) * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(y1 \cdot i - y0 \cdot b\right) \cdot \left(j \cdot x - k \cdot z\right) - \left(t \cdot z - y \cdot x\right) \cdot \left(b \cdot a - i \cdot c\right)\right) - \left(y1 \cdot a - y0 \cdot c\right) \cdot \left(y2 \cdot x - y3 \cdot z\right)\right) - \left(y5 \cdot i - y4 \cdot b\right) \cdot \left(j \cdot t - k \cdot y\right)\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot \left(y3 \cdot y - y2 \cdot t\right)\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot c - b \cdot a, t, \mathsf{fma}\left(-y3, y0 \cdot c - y1 \cdot a, \left(y0 \cdot b - y1 \cdot i\right) \cdot k\right)\right) \cdot z\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 92.9%
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 z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.2%
Final simplification62.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y2 k) (* y3 j))))
(if (<= y5 -1.6e-40)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 -2.1e-225)
(*
(fma (- (* j t) (* k y)) b (fma t_1 y1 (* (- (* y3 y) (* y2 t)) c)))
y4)
(if (<= y5 7.6e-241)
(*
(fma (- (* y3 z) (* y2 x)) a (fma t_1 y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= y5 3.5e+101)
(*
(*
(fma
(- b)
x
(fma
-1.0
(/
(fma
(- b)
(* t z)
(fma (* y2 t) y5 (* (fma y3 z (* (- x) y2)) y1)))
y)
(* y5 y3)))
(- y))
a)
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_1 (* (- (* y2 t) (* y3 y)) a)))
y5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * k) - (y3 * j);
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -2.1e-225) {
tmp = fma(((j * t) - (k * y)), b, fma(t_1, y1, (((y3 * y) - (y2 * t)) * c))) * y4;
} else if (y5 <= 7.6e-241) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(t_1, y4, (((j * x) - (k * z)) * i))) * y1;
} else if (y5 <= 3.5e+101) {
tmp = (fma(-b, x, fma(-1.0, (fma(-b, (t * z), fma((y2 * t), y5, (fma(y3, z, (-x * y2)) * y1))) / y), (y5 * y3))) * -y) * a;
} else {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, t_1, (((y2 * t) - (y3 * y)) * a))) * y5;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * k) - Float64(y3 * j)) tmp = 0.0 if (y5 <= -1.6e-40) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= -2.1e-225) tmp = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(t_1, y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4); elseif (y5 <= 7.6e-241) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(t_1, y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (y5 <= 3.5e+101) tmp = Float64(Float64(fma(Float64(-b), x, fma(-1.0, Float64(fma(Float64(-b), Float64(t * z), fma(Float64(y2 * t), y5, Float64(fma(y3, z, Float64(Float64(-x) * y2)) * y1))) / y), Float64(y5 * y3))) * Float64(-y)) * a); else tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_1, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, -2.1e-225], N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$1 * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 7.6e-241], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 3.5e+101], N[(N[(N[((-b) * x + N[(-1.0 * N[(N[((-b) * N[(t * z), $MachinePrecision] + N[(N[(y2 * t), $MachinePrecision] * y5 + N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] + N[(y5 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision] * a), $MachinePrecision], N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$1 + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq -2.1 \cdot 10^{-225}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(t\_1, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 7.6 \cdot 10^{-241}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(t\_1, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 3.5 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, x, \mathsf{fma}\left(-1, \frac{\mathsf{fma}\left(-b, t \cdot z, \mathsf{fma}\left(y2 \cdot t, y5, \mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot y1\right)\right)}{y}, y5 \cdot y3\right)\right) \cdot \left(-y\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_1, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -2.1e-225Initial program 42.9%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.4%
if -2.1e-225 < y5 < 7.5999999999999998e-241Initial program 32.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.6%
if 7.5999999999999998e-241 < y5 < 3.50000000000000023e101Initial program 33.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.1%
Taylor expanded in y around -inf
Applied rewrites53.2%
if 3.50000000000000023e101 < y5 Initial program 28.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.9%
Final simplification61.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4))
(t_2 (- (* y0 c) (* y1 a))))
(if (<= y5 -1.6e-40)
(* (fma (- (* b a) (* i c)) y (fma t_2 y2 (* (- (* y1 i) (* y0 b)) j))) x)
(if (<= y5 -1.6e-146)
t_1
(if (<= y5 3.4e-111)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= y5 0.046)
(*
(-
(* (fma j x (* (- k) z)) y1)
(fma c (fma x y (* (- t) z)) (* (fma j t (* (- k) y)) y5)))
i)
(if (<= y5 3e+59)
t_1
(if (<= y5 5.6e+230)
(*
(fma
(- (* i c) (* b a))
t
(fma (- y3) t_2 (* (- (* y0 b) (* y1 i)) k)))
z)
(* (* (* y5 y2) y0) (- 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 = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double t_2 = (y0 * c) - (y1 * a);
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(t_2, y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -1.6e-146) {
tmp = t_1;
} else if (y5 <= 3.4e-111) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (y5 <= 0.046) {
tmp = ((fma(j, x, (-k * z)) * y1) - fma(c, fma(x, y, (-t * z)), (fma(j, t, (-k * y)) * y5))) * i;
} else if (y5 <= 3e+59) {
tmp = t_1;
} else if (y5 <= 5.6e+230) {
tmp = fma(((i * c) - (b * a)), t, fma(-y3, t_2, (((y0 * b) - (y1 * i)) * k))) * z;
} else {
tmp = ((y5 * y2) * y0) * -k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) t_2 = Float64(Float64(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (y5 <= -1.6e-40) 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 (y5 <= -1.6e-146) tmp = t_1; elseif (y5 <= 3.4e-111) 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 (y5 <= 0.046) tmp = Float64(Float64(Float64(fma(j, x, Float64(Float64(-k) * z)) * y1) - fma(c, fma(x, y, Float64(Float64(-t) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * y5))) * i); elseif (y5 <= 3e+59) tmp = t_1; elseif (y5 <= 5.6e+230) tmp = Float64(fma(Float64(Float64(i * c) - Float64(b * a)), t, fma(Float64(-y3), t_2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * k))) * z); else tmp = Float64(Float64(Float64(y5 * y2) * y0) * Float64(-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[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], 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[y5, -1.6e-146], t$95$1, If[LessEqual[y5, 3.4e-111], 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[y5, 0.046], N[(N[(N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision] - N[(c * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y5, 3e+59], t$95$1, If[LessEqual[y5, 5.6e+230], N[(N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * t + N[((-y3) * t$95$2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[(N[(y5 * y2), $MachinePrecision] * y0), $MachinePrecision] * (-k)), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
t_2 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\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}\;y5 \leq -1.6 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 3.4 \cdot 10^{-111}:\\
\;\;\;\;\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}\;y5 \leq 0.046:\\
\;\;\;\;\left(\mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1 - \mathsf{fma}\left(c, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right)\right) \cdot i\\
\mathbf{elif}\;y5 \leq 3 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 5.6 \cdot 10^{+230}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot c - b \cdot a, t, \mathsf{fma}\left(-y3, t\_2, \left(y0 \cdot b - y1 \cdot i\right) \cdot k\right)\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot y0\right) \cdot \left(-k\right)\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -1.6e-146 or 0.045999999999999999 < y5 < 3e59Initial program 33.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.0%
if -1.6e-146 < y5 < 3.39999999999999997e-111Initial program 34.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.0%
if 3.39999999999999997e-111 < y5 < 0.045999999999999999Initial program 64.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in i around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites71.2%
if 3e59 < y5 < 5.6000000000000004e230Initial program 28.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.3%
if 5.6000000000000004e230 < y5 Initial program 20.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites80.0%
Taylor expanded in y2 around inf
Applied rewrites56.7%
Taylor expanded in t around 0
Applied rewrites64.3%
Final simplification61.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y2 k) (* y3 j)))
(t_2 (- (* y2 t) (* y3 y)))
(t_3
(*
(fma (- (* j t) (* k y)) b (fma t_1 y1 (* (- (* y3 y) (* y2 t)) c)))
y4)))
(if (<= y5 -1.6e-40)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 -1.6e-146)
t_3
(if (<= y5 3.4e-111)
(*
(fma (- (* y3 z) (* y2 x)) y1 (fma (- (* y x) (* t z)) b (* t_2 y5)))
a)
(if (<= y5 0.046)
(*
(-
(* (fma j x (* (- k) z)) y1)
(fma c (fma x y (* (- t) z)) (* (fma j t (* (- k) y)) y5)))
i)
(if (<= y5 4.2e+101)
t_3
(*
(fma (- (* k y) (* j t)) i (fma (- y0) t_1 (* t_2 a)))
y5))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * k) - (y3 * j);
double t_2 = (y2 * t) - (y3 * y);
double t_3 = fma(((j * t) - (k * y)), b, fma(t_1, y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -1.6e-146) {
tmp = t_3;
} else if (y5 <= 3.4e-111) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (t_2 * y5))) * a;
} else if (y5 <= 0.046) {
tmp = ((fma(j, x, (-k * z)) * y1) - fma(c, fma(x, y, (-t * z)), (fma(j, t, (-k * y)) * y5))) * i;
} else if (y5 <= 4.2e+101) {
tmp = t_3;
} else {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, t_1, (t_2 * a))) * y5;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_2 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_3 = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(t_1, y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) tmp = 0.0 if (y5 <= -1.6e-40) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= -1.6e-146) tmp = t_3; elseif (y5 <= 3.4e-111) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(t_2 * y5))) * a); elseif (y5 <= 0.046) tmp = Float64(Float64(Float64(fma(j, x, Float64(Float64(-k) * z)) * y1) - fma(c, fma(x, y, Float64(Float64(-t) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * y5))) * i); elseif (y5 <= 4.2e+101) tmp = t_3; else tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_1, Float64(t_2 * a))) * y5); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$1 * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, -1.6e-146], t$95$3, If[LessEqual[y5, 3.4e-111], 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[(t$95$2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, 0.046], N[(N[(N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision] - N[(c * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y5, 4.2e+101], t$95$3, N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$1 + N[(t$95$2 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
t_2 := y2 \cdot t - y3 \cdot y\\
t_3 := \mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(t\_1, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq -1.6 \cdot 10^{-146}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq 3.4 \cdot 10^{-111}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, t\_2 \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y5 \leq 0.046:\\
\;\;\;\;\left(\mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1 - \mathsf{fma}\left(c, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right)\right) \cdot i\\
\mathbf{elif}\;y5 \leq 4.2 \cdot 10^{+101}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_1, t\_2 \cdot a\right)\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -1.6e-146 or 0.045999999999999999 < y5 < 4.2e101Initial program 28.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.3%
if -1.6e-146 < y5 < 3.39999999999999997e-111Initial program 34.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.0%
if 3.39999999999999997e-111 < y5 < 0.045999999999999999Initial program 64.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in i around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites71.2%
if 4.2e101 < y5 Initial program 28.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.9%
Final simplification62.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4)))
(if (<= y5 -1.6e-40)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 -1.6e-146)
t_1
(if (<= y5 3.4e-111)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= y5 0.046)
(*
(-
(* (fma j x (* (- k) z)) y1)
(fma c (fma x y (* (- t) z)) (* (fma j t (* (- k) y)) y5)))
i)
(if (<= y5 3.65e+112)
t_1
(* (* (fma -1.0 (* y2 y0) (* i y)) y5) 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 = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -1.6e-146) {
tmp = t_1;
} else if (y5 <= 3.4e-111) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (y5 <= 0.046) {
tmp = ((fma(j, x, (-k * z)) * y1) - fma(c, fma(x, y, (-t * z)), (fma(j, t, (-k * y)) * y5))) * i;
} else if (y5 <= 3.65e+112) {
tmp = t_1;
} else {
tmp = (fma(-1.0, (y2 * y0), (i * y)) * y5) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) tmp = 0.0 if (y5 <= -1.6e-40) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= -1.6e-146) tmp = t_1; elseif (y5 <= 3.4e-111) 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 (y5 <= 0.046) tmp = Float64(Float64(Float64(fma(j, x, Float64(Float64(-k) * z)) * y1) - fma(c, fma(x, y, Float64(Float64(-t) * z)), Float64(fma(j, t, Float64(Float64(-k) * y)) * y5))) * i); elseif (y5 <= 3.65e+112) tmp = t_1; else tmp = Float64(Float64(fma(-1.0, Float64(y2 * y0), Float64(i * y)) * y5) * 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[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, -1.6e-146], t$95$1, If[LessEqual[y5, 3.4e-111], 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[y5, 0.046], N[(N[(N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision] - N[(c * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y5, 3.65e+112], t$95$1, N[(N[(N[(-1.0 * N[(y2 * y0), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq -1.6 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 3.4 \cdot 10^{-111}:\\
\;\;\;\;\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}\;y5 \leq 0.046:\\
\;\;\;\;\left(\mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1 - \mathsf{fma}\left(c, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right)\right) \cdot i\\
\mathbf{elif}\;y5 \leq 3.65 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y2 \cdot y0, i \cdot y\right) \cdot y5\right) \cdot k\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -1.6e-146 or 0.045999999999999999 < y5 < 3.65e112Initial program 31.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.6%
if -1.6e-146 < y5 < 3.39999999999999997e-111Initial program 34.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.0%
if 3.39999999999999997e-111 < y5 < 0.045999999999999999Initial program 64.7%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in i around -inf
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites71.2%
if 3.65e112 < y5 Initial program 25.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.5%
Taylor expanded in k around inf
Applied rewrites52.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 (- (* b a) (* i c)))
(t_2 (- (* y3 z) (* y2 x)))
(t_3
(*
(fma t_2 a (fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1))
(t_4
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma t_1 x (* (- (* y4 c) (* y5 a)) y3)))
y)))
(if (<= y1 -4.4e-120)
t_3
(if (<= y1 -5.6e-251)
t_4
(if (<= y1 3.8e-250)
(*
(fma
t_1
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y1 1.66e-62)
t_4
(if (<= y1 1.4e+150)
(*
(fma
t_2
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
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 = (b * a) - (i * c);
double t_2 = (y3 * z) - (y2 * x);
double t_3 = fma(t_2, a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
double t_4 = fma(((y5 * i) - (y4 * b)), k, fma(t_1, x, (((y4 * c) - (y5 * a)) * y3))) * y;
double tmp;
if (y1 <= -4.4e-120) {
tmp = t_3;
} else if (y1 <= -5.6e-251) {
tmp = t_4;
} else if (y1 <= 3.8e-250) {
tmp = fma(t_1, y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y1 <= 1.66e-62) {
tmp = t_4;
} else if (y1 <= 1.4e+150) {
tmp = fma(t_2, y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} 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(b * a) - Float64(i * c)) t_2 = Float64(Float64(y3 * z) - Float64(y2 * x)) t_3 = Float64(fma(t_2, a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1) t_4 = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(t_1, x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y) tmp = 0.0 if (y1 <= -4.4e-120) tmp = t_3; elseif (y1 <= -5.6e-251) tmp = t_4; elseif (y1 <= 3.8e-250) tmp = Float64(fma(t_1, y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y1 <= 1.66e-62) tmp = t_4; elseif (y1 <= 1.4e+150) tmp = Float64(fma(t_2, y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); 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[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$1 * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y1, -4.4e-120], t$95$3, If[LessEqual[y1, -5.6e-251], t$95$4, If[LessEqual[y1, 3.8e-250], N[(N[(t$95$1 * 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[y1, 1.66e-62], t$95$4, If[LessEqual[y1, 1.4e+150], N[(N[(t$95$2 * 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$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot a - i \cdot c\\
t_2 := y3 \cdot z - y2 \cdot x\\
t_3 := \mathsf{fma}\left(t\_2, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
t_4 := \mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(t\_1, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{if}\;y1 \leq -4.4 \cdot 10^{-120}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y1 \leq -5.6 \cdot 10^{-251}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y1 \leq 3.8 \cdot 10^{-250}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, 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}\;y1 \leq 1.66 \cdot 10^{-62}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{+150}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, 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\_3\\
\end{array}
\end{array}
if y1 < -4.40000000000000025e-120 or 1.40000000000000005e150 < y1 Initial program 37.2%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.8%
if -4.40000000000000025e-120 < y1 < -5.59999999999999978e-251 or 3.79999999999999971e-250 < y1 < 1.65999999999999992e-62Initial program 26.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.6%
if -5.59999999999999978e-251 < y1 < 3.79999999999999971e-250Initial program 40.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.4%
if 1.65999999999999992e-62 < y1 < 1.40000000000000005e150Initial program 31.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.8%
Final simplification59.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* y x) (* t z)))
(t_3 (- (* y0 c) (* y1 a))))
(if (<= y2 -1.65e-21)
(* (fma (- (* b a) (* i c)) y (fma t_3 y2 (* (- (* y1 i) (* y0 b)) j))) x)
(if (<= y2 -2.55e-136)
(*
(fma (- (* y3 z) (* y2 x)) y1 (fma t_2 b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= y2 1.8e-266)
(* (fma t_2 a (fma t_1 y4 (* (- (* k z) (* j x)) y0))) b)
(if (<= y2 2.8e+218)
(*
(fma
t_1
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4)
(*
(fma
(- (* y4 y1) (* y5 y0))
k
(fma t_3 x (* (- (* y5 a) (* y4 c)) 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 = (j * t) - (k * y);
double t_2 = (y * x) - (t * z);
double t_3 = (y0 * c) - (y1 * a);
double tmp;
if (y2 <= -1.65e-21) {
tmp = fma(((b * a) - (i * c)), y, fma(t_3, y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y2 <= -2.55e-136) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(t_2, b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (y2 <= 1.8e-266) {
tmp = fma(t_2, a, fma(t_1, y4, (((k * z) - (j * x)) * y0))) * b;
} else if (y2 <= 2.8e+218) {
tmp = fma(t_1, b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
} else {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_3, x, (((y5 * a) - (y4 * c)) * 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(j * t) - Float64(k * y)) t_2 = Float64(Float64(y * x) - Float64(t * z)) t_3 = Float64(Float64(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (y2 <= -1.65e-21) 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 <= -2.55e-136) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(t_2, b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (y2 <= 1.8e-266) tmp = Float64(fma(t_2, a, fma(t_1, y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b); elseif (y2 <= 2.8e+218) tmp = Float64(fma(t_1, b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4); else tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_3, x, Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * 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[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.65e-21], 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, -2.55e-136], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y2, 1.8e-266], N[(N[(t$95$2 * a + N[(t$95$1 * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y2, 2.8e+218], N[(N[(t$95$1 * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x + N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := y \cdot x - t \cdot z\\
t_3 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;y2 \leq -1.65 \cdot 10^{-21}:\\
\;\;\;\;\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 -2.55 \cdot 10^{-136}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(t\_2, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-266}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, a, \mathsf{fma}\left(t\_1, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;y2 \leq 2.8 \cdot 10^{+218}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_3, x, \left(y5 \cdot a - y4 \cdot c\right) \cdot t\right)\right) \cdot y2\\
\end{array}
\end{array}
if y2 < -1.65000000000000004e-21Initial program 28.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
if -1.65000000000000004e-21 < y2 < -2.54999999999999984e-136Initial program 33.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.5%
if -2.54999999999999984e-136 < y2 < 1.8e-266Initial program 29.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
if 1.8e-266 < y2 < 2.7999999999999998e218Initial program 43.2%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.3%
if 2.7999999999999998e218 < y2 Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites87.2%
Final simplification58.1%
(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 (- (* y2 k) (* y3 j))))
(if (<= y5 -1.6e-40)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(if (<= y5 -2.1e-225)
(* (fma t_1 b (fma t_2 y1 (* (- (* y3 y) (* y2 t)) c))) y4)
(if (<= y5 2.6e-201)
(*
(fma (- (* y3 z) (* y2 x)) a (fma t_2 y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= y5 7.5e+115)
(*
(fma (- (* y x) (* t z)) a (fma t_1 y4 (* (- (* k z) (* j x)) y0)))
b)
(* (* (fma -1.0 (* y2 y0) (* i y)) y5) 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 = (j * t) - (k * y);
double t_2 = (y2 * k) - (y3 * j);
double tmp;
if (y5 <= -1.6e-40) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= -2.1e-225) {
tmp = fma(t_1, b, fma(t_2, y1, (((y3 * y) - (y2 * t)) * c))) * y4;
} else if (y5 <= 2.6e-201) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(t_2, y4, (((j * x) - (k * z)) * i))) * y1;
} else if (y5 <= 7.5e+115) {
tmp = fma(((y * x) - (t * z)), a, fma(t_1, y4, (((k * z) - (j * x)) * y0))) * b;
} else {
tmp = (fma(-1.0, (y2 * y0), (i * y)) * y5) * 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(j * t) - Float64(k * y)) t_2 = Float64(Float64(y2 * k) - Float64(y3 * j)) tmp = 0.0 if (y5 <= -1.6e-40) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= -2.1e-225) tmp = Float64(fma(t_1, b, fma(t_2, y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4); elseif (y5 <= 2.6e-201) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(t_2, y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (y5 <= 7.5e+115) tmp = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(t_1, y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b); else tmp = Float64(Float64(fma(-1.0, Float64(y2 * y0), Float64(i * y)) * y5) * 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[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.6e-40], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, -2.1e-225], N[(N[(t$95$1 * b + N[(t$95$2 * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 2.6e-201], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 7.5e+115], N[(N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(N[(-1.0 * N[(y2 * y0), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := y2 \cdot k - y3 \cdot j\\
\mathbf{if}\;y5 \leq -1.6 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq -2.1 \cdot 10^{-225}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(t\_2, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 2.6 \cdot 10^{-201}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(t\_2, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 7.5 \cdot 10^{+115}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(t\_1, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y2 \cdot y0, i \cdot y\right) \cdot y5\right) \cdot k\\
\end{array}
\end{array}
if y5 < -1.60000000000000001e-40Initial program 35.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
if -1.60000000000000001e-40 < y5 < -2.1e-225Initial program 42.9%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.4%
if -2.1e-225 < y5 < 2.59999999999999982e-201Initial program 29.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.3%
if 2.59999999999999982e-201 < y5 < 7.4999999999999997e115Initial program 36.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
if 7.4999999999999997e115 < y5 Initial program 25.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.5%
Taylor expanded in k around inf
Applied rewrites52.8%
Final simplification57.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y3 z) (* y2 x)))
(t_2
(*
(fma t_1 a (fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)))
(if (<= y1 -4.4e-120)
t_2
(if (<= y1 1.66e-62)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= y1 1.4e+150)
(*
(fma t_1 y1 (fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
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 = (y3 * z) - (y2 * x);
double t_2 = fma(t_1, a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
double tmp;
if (y1 <= -4.4e-120) {
tmp = t_2;
} else if (y1 <= 1.66e-62) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (y1 <= 1.4e+150) {
tmp = fma(t_1, y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} 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(y3 * z) - Float64(y2 * x)) t_2 = Float64(fma(t_1, a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1) tmp = 0.0 if (y1 <= -4.4e-120) tmp = t_2; elseif (y1 <= 1.66e-62) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (y1 <= 1.4e+150) tmp = Float64(fma(t_1, y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); 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[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[y1, -4.4e-120], t$95$2, If[LessEqual[y1, 1.66e-62], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 1.4e+150], N[(N[(t$95$1 * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot z - y2 \cdot x\\
t_2 := \mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{if}\;y1 \leq -4.4 \cdot 10^{-120}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq 1.66 \cdot 10^{-62}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{+150}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y1 < -4.40000000000000025e-120 or 1.40000000000000005e150 < y1 Initial program 37.2%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.8%
if -4.40000000000000025e-120 < y1 < 1.65999999999999992e-62Initial program 30.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.9%
if 1.65999999999999992e-62 < y1 < 1.40000000000000005e150Initial program 31.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.8%
Final simplification56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.95e+79)
t_1
(if (<= i 5e+48)
(*
(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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.95e+79) {
tmp = t_1;
} else if (i <= 5e+48) {
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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.95e+79) tmp = t_1; elseif (i <= 5e+48) 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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.95e+79], t$95$1, If[LessEqual[i, 5e+48], 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 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.95 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+48}:\\
\;\;\;\;\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.9499999999999999e79 or 4.99999999999999973e48 < i Initial program 26.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in i around inf
Applied rewrites55.9%
if -1.9499999999999999e79 < i < 4.99999999999999973e48Initial program 38.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.7%
Final simplification53.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)))
(if (<= y1 -2.5e-9)
t_1
(if (<= y1 8.5e+49)
(* (fma (- k) (* y4 y) (fma a (fma x y (* (- t) z)) (* (* y0 z) k))) b)
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
double tmp;
if (y1 <= -2.5e-9) {
tmp = t_1;
} else if (y1 <= 8.5e+49) {
tmp = fma(-k, (y4 * y), fma(a, fma(x, y, (-t * z)), ((y0 * z) * k))) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1) tmp = 0.0 if (y1 <= -2.5e-9) tmp = t_1; elseif (y1 <= 8.5e+49) tmp = Float64(fma(Float64(-k), Float64(y4 * y), fma(a, fma(x, y, Float64(Float64(-t) * z)), Float64(Float64(y0 * z) * k))) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[y1, -2.5e-9], t$95$1, If[LessEqual[y1, 8.5e+49], N[(N[((-k) * N[(y4 * y), $MachinePrecision] + N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * z), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{if}\;y1 \leq -2.5 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 8.5 \cdot 10^{+49}:\\
\;\;\;\;\mathsf{fma}\left(-k, y4 \cdot y, \mathsf{fma}\left(a, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), \left(y0 \cdot z\right) \cdot k\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -2.5000000000000001e-9 or 8.4999999999999996e49 < y1 Initial program 32.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.5%
if -2.5000000000000001e-9 < y1 < 8.4999999999999996e49Initial program 35.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in j around 0
Applied rewrites48.8%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(* (fma y2 (fma c y0 (* (- a) y1)) (* (fma a b (* (- c) i)) y)) x)))
(if (<= x -3.8e+86)
t_1
(if (<= x -4.1e-109)
(* (* (fma (- y) y4 (* y0 z)) y3) (- c))
(if (<= x 6.3e-40)
(*
(fma (- k) (* y4 y) (fma a (fma x y (* (- t) z)) (* (* y0 z) k)))
b)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y2, fma(c, y0, (-a * y1)), (fma(a, b, (-c * i)) * y)) * x;
double tmp;
if (x <= -3.8e+86) {
tmp = t_1;
} else if (x <= -4.1e-109) {
tmp = (fma(-y, y4, (y0 * z)) * y3) * -c;
} else if (x <= 6.3e-40) {
tmp = fma(-k, (y4 * y), fma(a, fma(x, y, (-t * z)), ((y0 * z) * k))) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(y2, fma(c, y0, Float64(Float64(-a) * y1)), Float64(fma(a, b, Float64(Float64(-c) * i)) * y)) * x) tmp = 0.0 if (x <= -3.8e+86) tmp = t_1; elseif (x <= -4.1e-109) tmp = Float64(Float64(fma(Float64(-y), y4, Float64(y0 * z)) * y3) * Float64(-c)); elseif (x <= 6.3e-40) tmp = Float64(fma(Float64(-k), Float64(y4 * y), fma(a, fma(x, y, Float64(Float64(-t) * z)), Float64(Float64(y0 * z) * k))) * b); 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[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] + N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -3.8e+86], t$95$1, If[LessEqual[x, -4.1e-109], N[(N[(N[((-y) * y4 + N[(y0 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[x, 6.3e-40], N[(N[((-k) * N[(y4 * y), $MachinePrecision] + N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y0 * z), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y2, \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right), \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -3.8 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.1 \cdot 10^{-109}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y4, y0 \cdot z\right) \cdot y3\right) \cdot \left(-c\right)\\
\mathbf{elif}\;x \leq 6.3 \cdot 10^{-40}:\\
\;\;\;\;\mathsf{fma}\left(-k, y4 \cdot y, \mathsf{fma}\left(a, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), \left(y0 \cdot z\right) \cdot k\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.79999999999999978e86 or 6.3000000000000001e-40 < x Initial program 30.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.2%
Taylor expanded in j around 0
Applied rewrites57.0%
if -3.79999999999999978e86 < x < -4.1000000000000002e-109Initial program 41.8%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y3 around -inf
Applied rewrites42.8%
if -4.1000000000000002e-109 < x < 6.3000000000000001e-40Initial program 35.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.9%
Taylor expanded in j around 0
Applied rewrites42.5%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -6.5e+172)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= a -9.2e+38)
(* (* (fma (- y) y5 (* y1 z)) y3) a)
(if (<= a -5e-142)
(* (fma y2 (fma c y0 (* (- a) y1)) (* (fma a b (* (- c) i)) y)) x)
(if (<= a 3.15e-53)
(* (* (fma b j (* (- c) y2)) t) y4)
(* (* (fma (- k) y4 (* a x)) (- y2)) y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -6.5e+172) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (a <= -9.2e+38) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * a;
} else if (a <= -5e-142) {
tmp = fma(y2, fma(c, y0, (-a * y1)), (fma(a, b, (-c * i)) * y)) * x;
} else if (a <= 3.15e-53) {
tmp = (fma(b, j, (-c * y2)) * t) * y4;
} else {
tmp = (fma(-k, y4, (a * x)) * -y2) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -6.5e+172) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (a <= -9.2e+38) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * a); elseif (a <= -5e-142) tmp = Float64(fma(y2, fma(c, y0, Float64(Float64(-a) * y1)), Float64(fma(a, b, Float64(Float64(-c) * i)) * y)) * x); elseif (a <= 3.15e-53) tmp = Float64(Float64(fma(b, j, Float64(Float64(-c) * y2)) * t) * y4); else tmp = Float64(Float64(fma(Float64(-k), y4, Float64(a * x)) * Float64(-y2)) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -6.5e+172], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -9.2e+38], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -5e-142], N[(N[(y2 * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] + N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 3.15e-53], N[(N[(N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision] * (-y2)), $MachinePrecision] * y1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+172}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{+38}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-142}:\\
\;\;\;\;\mathsf{fma}\left(y2, \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right), \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right) \cdot t\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y4, a \cdot x\right) \cdot \left(-y2\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -6.4999999999999997e172Initial program 30.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites57.6%
if -6.4999999999999997e172 < a < -9.2000000000000005e38Initial program 37.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.3%
Taylor expanded in y3 around inf
Applied rewrites57.8%
if -9.2000000000000005e38 < a < -5.0000000000000002e-142Initial program 36.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.6%
Taylor expanded in j around 0
Applied rewrites43.7%
if -5.0000000000000002e-142 < a < 3.14999999999999989e-53Initial program 38.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.4%
Taylor expanded in y2 around -inf
Applied rewrites25.1%
Taylor expanded in t around -inf
Applied rewrites43.8%
Taylor expanded in t around inf
Applied rewrites43.8%
if 3.14999999999999989e-53 < a Initial program 25.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in y2 around -inf
Applied rewrites58.3%
Final simplification50.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -6.5e+172)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= a -2.6e+54)
(* (* (fma (- y) y5 (* y1 z)) y3) a)
(if (<= a -1.12e-71)
(* (* (fma -1.0 (* y4 j) (/ (* (* j i) x) y3)) y3) y1)
(if (<= a -5.4e-104)
(* (* (fma -1.0 (* y2 y0) (* i y)) y5) k)
(if (<= a 3.15e-53)
(* (* (fma b j (* (- c) y2)) t) y4)
(* (* (fma (- k) y4 (* a x)) (- y2)) y1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -6.5e+172) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (a <= -2.6e+54) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * a;
} else if (a <= -1.12e-71) {
tmp = (fma(-1.0, (y4 * j), (((j * i) * x) / y3)) * y3) * y1;
} else if (a <= -5.4e-104) {
tmp = (fma(-1.0, (y2 * y0), (i * y)) * y5) * k;
} else if (a <= 3.15e-53) {
tmp = (fma(b, j, (-c * y2)) * t) * y4;
} else {
tmp = (fma(-k, y4, (a * x)) * -y2) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -6.5e+172) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (a <= -2.6e+54) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * a); elseif (a <= -1.12e-71) tmp = Float64(Float64(fma(-1.0, Float64(y4 * j), Float64(Float64(Float64(j * i) * x) / y3)) * y3) * y1); elseif (a <= -5.4e-104) tmp = Float64(Float64(fma(-1.0, Float64(y2 * y0), Float64(i * y)) * y5) * k); elseif (a <= 3.15e-53) tmp = Float64(Float64(fma(b, j, Float64(Float64(-c) * y2)) * t) * y4); else tmp = Float64(Float64(fma(Float64(-k), y4, Float64(a * x)) * Float64(-y2)) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -6.5e+172], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -2.6e+54], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -1.12e-71], N[(N[(N[(-1.0 * N[(y4 * j), $MachinePrecision] + N[(N[(N[(j * i), $MachinePrecision] * x), $MachinePrecision] / y3), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -5.4e-104], N[(N[(N[(-1.0 * N[(y2 * y0), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[a, 3.15e-53], N[(N[(N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision] * (-y2)), $MachinePrecision] * y1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+172}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{+54}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;a \leq -1.12 \cdot 10^{-71}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y4 \cdot j, \frac{\left(j \cdot i\right) \cdot x}{y3}\right) \cdot y3\right) \cdot y1\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y2 \cdot y0, i \cdot y\right) \cdot y5\right) \cdot k\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right) \cdot t\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y4, a \cdot x\right) \cdot \left(-y2\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -6.4999999999999997e172Initial program 30.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites57.6%
if -6.4999999999999997e172 < a < -2.60000000000000007e54Initial program 39.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.2%
Taylor expanded in y3 around inf
Applied rewrites61.8%
if -2.60000000000000007e54 < a < -1.1199999999999999e-71Initial program 25.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.0%
Taylor expanded in j around inf
Applied rewrites37.1%
Taylor expanded in y3 around inf
Applied rewrites39.9%
if -1.1199999999999999e-71 < a < -5.3999999999999997e-104Initial program 70.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.2%
Taylor expanded in k around inf
Applied rewrites70.7%
if -5.3999999999999997e-104 < a < 3.14999999999999989e-53Initial program 38.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in y2 around -inf
Applied rewrites26.0%
Taylor expanded in t around -inf
Applied rewrites44.7%
Taylor expanded in t around inf
Applied rewrites44.7%
if 3.14999999999999989e-53 < a Initial program 25.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in y2 around -inf
Applied rewrites58.3%
Final simplification51.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e+52)
t_1
(if (<= i -1.4e-59)
(* (* (fma (- b) t (* y3 y1)) z) a)
(if (<= i -1.4e-284)
(* (fma j t (* (- k) y)) (* y4 b))
(if (<= i 7.6e-277)
(* (fma x y2 (* (- y3) z)) (* y0 c))
(if (<= i 1.05e-198)
(* (* (fma (- y3) y4 (* i x)) j) y1)
(if (<= i 32500.0)
(* (* (fma y3 z (* (- x) y2)) a) y1)
t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e+52) {
tmp = t_1;
} else if (i <= -1.4e-59) {
tmp = (fma(-b, t, (y3 * y1)) * z) * a;
} else if (i <= -1.4e-284) {
tmp = fma(j, t, (-k * y)) * (y4 * b);
} else if (i <= 7.6e-277) {
tmp = fma(x, y2, (-y3 * z)) * (y0 * c);
} else if (i <= 1.05e-198) {
tmp = (fma(-y3, y4, (i * x)) * j) * y1;
} else if (i <= 32500.0) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e+52) tmp = t_1; elseif (i <= -1.4e-59) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a); elseif (i <= -1.4e-284) tmp = Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(y4 * b)); elseif (i <= 7.6e-277) tmp = Float64(fma(x, y2, Float64(Float64(-y3) * z)) * Float64(y0 * c)); elseif (i <= 1.05e-198) tmp = Float64(Float64(fma(Float64(-y3), y4, Float64(i * x)) * j) * y1); elseif (i <= 32500.0) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e+52], t$95$1, If[LessEqual[i, -1.4e-59], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, -1.4e-284], N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * N[(y4 * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.6e-277], N[(N[(x * y2 + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * N[(y0 * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e-198], N[(N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[i, 32500.0], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-59}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-284}:\\
\;\;\;\;\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(y4 \cdot b\right)\\
\mathbf{elif}\;i \leq 7.6 \cdot 10^{-277}:\\
\;\;\;\;\mathsf{fma}\left(x, y2, \left(-y3\right) \cdot z\right) \cdot \left(y0 \cdot c\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-198}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot j\right) \cdot y1\\
\mathbf{elif}\;i \leq 32500:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.3e52 or 32500 < i Initial program 26.8%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.0%
Taylor expanded in i around inf
Applied rewrites52.4%
if -1.3e52 < i < -1.3999999999999999e-59Initial program 43.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in y around -inf
Applied rewrites56.8%
Taylor expanded in z around inf
Applied rewrites44.6%
if -1.3999999999999999e-59 < i < -1.4000000000000001e-284Initial program 39.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.7%
Taylor expanded in b around inf
Applied rewrites50.7%
if -1.4000000000000001e-284 < i < 7.59999999999999972e-277Initial program 37.5%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.3%
Taylor expanded in y0 around inf
Applied rewrites57.3%
if 7.59999999999999972e-277 < i < 1.04999999999999996e-198Initial program 43.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.7%
Taylor expanded in j around inf
Applied rewrites44.4%
if 1.04999999999999996e-198 < i < 32500Initial program 37.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites45.4%
Final simplification49.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- b) t (* y3 y1)) z) a))
(t_2 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e+52)
t_2
(if (<= i -1.4e-59)
t_1
(if (<= i -1.4e-284)
(* (fma j t (* (- k) y)) (* y4 b))
(if (<= i 2.3e-279)
(* (fma x y2 (* (- y3) z)) (* y0 c))
(if (<= i 2.4e-66)
t_1
(if (<= i 1.2e+40)
(* (fma t y2 (* (- y) y3)) (* y5 a))
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(-b, t, (y3 * y1)) * z) * a;
double t_2 = (fma(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e+52) {
tmp = t_2;
} else if (i <= -1.4e-59) {
tmp = t_1;
} else if (i <= -1.4e-284) {
tmp = fma(j, t, (-k * y)) * (y4 * b);
} else if (i <= 2.3e-279) {
tmp = fma(x, y2, (-y3 * z)) * (y0 * c);
} else if (i <= 2.4e-66) {
tmp = t_1;
} else if (i <= 1.2e+40) {
tmp = fma(t, y2, (-y * y3)) * (y5 * a);
} 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(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a) t_2 = Float64(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e+52) tmp = t_2; elseif (i <= -1.4e-59) tmp = t_1; elseif (i <= -1.4e-284) tmp = Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(y4 * b)); elseif (i <= 2.3e-279) tmp = Float64(fma(x, y2, Float64(Float64(-y3) * z)) * Float64(y0 * c)); elseif (i <= 2.4e-66) tmp = t_1; elseif (i <= 1.2e+40) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(y5 * a)); 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[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e+52], t$95$2, If[LessEqual[i, -1.4e-59], t$95$1, If[LessEqual[i, -1.4e-284], N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * N[(y4 * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e-279], N[(N[(x * y2 + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * N[(y0 * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e-66], t$95$1, If[LessEqual[i, 1.2e+40], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
t_2 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+52}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-284}:\\
\;\;\;\;\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(y4 \cdot b\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-279}:\\
\;\;\;\;\mathsf{fma}\left(x, y2, \left(-y3\right) \cdot z\right) \cdot \left(y0 \cdot c\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.3e52 or 1.2e40 < i Initial program 26.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.4%
Taylor expanded in i around inf
Applied rewrites54.8%
if -1.3e52 < i < -1.3999999999999999e-59 or 2.29999999999999995e-279 < i < 2.40000000000000026e-66Initial program 40.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.9%
Taylor expanded in y around -inf
Applied rewrites52.6%
Taylor expanded in z around inf
Applied rewrites40.6%
if -1.3999999999999999e-59 < i < -1.4000000000000001e-284Initial program 39.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.7%
Taylor expanded in b around inf
Applied rewrites50.7%
if -1.4000000000000001e-284 < i < 2.29999999999999995e-279Initial program 40.0%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.4%
Taylor expanded in y0 around inf
Applied rewrites54.5%
if 2.40000000000000026e-66 < i < 1.2e40Initial program 34.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.7%
Taylor expanded in a around inf
Applied rewrites51.3%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -6.5e+172)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= a -5.3e-14)
(* (* (fma (- y) y5 (* y1 z)) y3) a)
(if (<= a -1.45e-71)
(* (* (fma -1.0 (* y4 y) (* y0 z)) k) b)
(if (<= a -5.4e-104)
(* (* (fma -1.0 (* y2 y0) (* i y)) y5) k)
(if (<= a 3.15e-53)
(* (* (fma b j (* (- c) y2)) t) y4)
(* (* (fma (- k) y4 (* a x)) (- y2)) y1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -6.5e+172) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (a <= -5.3e-14) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * a;
} else if (a <= -1.45e-71) {
tmp = (fma(-1.0, (y4 * y), (y0 * z)) * k) * b;
} else if (a <= -5.4e-104) {
tmp = (fma(-1.0, (y2 * y0), (i * y)) * y5) * k;
} else if (a <= 3.15e-53) {
tmp = (fma(b, j, (-c * y2)) * t) * y4;
} else {
tmp = (fma(-k, y4, (a * x)) * -y2) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -6.5e+172) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (a <= -5.3e-14) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * a); elseif (a <= -1.45e-71) tmp = Float64(Float64(fma(-1.0, Float64(y4 * y), Float64(y0 * z)) * k) * b); elseif (a <= -5.4e-104) tmp = Float64(Float64(fma(-1.0, Float64(y2 * y0), Float64(i * y)) * y5) * k); elseif (a <= 3.15e-53) tmp = Float64(Float64(fma(b, j, Float64(Float64(-c) * y2)) * t) * y4); else tmp = Float64(Float64(fma(Float64(-k), y4, Float64(a * x)) * Float64(-y2)) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -6.5e+172], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -5.3e-14], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -1.45e-71], N[(N[(N[(-1.0 * N[(y4 * y), $MachinePrecision] + N[(y0 * z), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, -5.4e-104], N[(N[(N[(-1.0 * N[(y2 * y0), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[a, 3.15e-53], N[(N[(N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision] * (-y2)), $MachinePrecision] * y1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+172}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;a \leq -5.3 \cdot 10^{-14}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;a \leq -1.45 \cdot 10^{-71}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y4 \cdot y, y0 \cdot z\right) \cdot k\right) \cdot b\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y2 \cdot y0, i \cdot y\right) \cdot y5\right) \cdot k\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right) \cdot t\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y4, a \cdot x\right) \cdot \left(-y2\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -6.4999999999999997e172Initial program 30.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites57.6%
if -6.4999999999999997e172 < a < -5.3000000000000001e-14Initial program 36.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.0%
Taylor expanded in y3 around inf
Applied rewrites49.3%
if -5.3000000000000001e-14 < a < -1.4499999999999999e-71Initial program 21.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites27.3%
Taylor expanded in k around inf
Applied rewrites52.5%
if -1.4499999999999999e-71 < a < -5.3999999999999997e-104Initial program 70.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.2%
Taylor expanded in k around inf
Applied rewrites70.7%
if -5.3999999999999997e-104 < a < 3.14999999999999989e-53Initial program 38.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in y2 around -inf
Applied rewrites26.0%
Taylor expanded in t around -inf
Applied rewrites44.7%
Taylor expanded in t around inf
Applied rewrites44.7%
if 3.14999999999999989e-53 < a Initial program 25.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in y2 around -inf
Applied rewrites58.3%
Final simplification51.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e+52)
t_1
(if (<= i -1.4e-59)
(* (* (fma (- b) t (* y3 y1)) z) a)
(if (<= i -1.4e-284)
(* (* (fma j t (* (- k) y)) b) y4)
(if (<= i 1.3e-276)
(* (fma x y2 (* (- y3) z)) (* y0 c))
(if (<= i 9e+44) (* (* (fma (- y) y5 (* y1 z)) y3) 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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e+52) {
tmp = t_1;
} else if (i <= -1.4e-59) {
tmp = (fma(-b, t, (y3 * y1)) * z) * a;
} else if (i <= -1.4e-284) {
tmp = (fma(j, t, (-k * y)) * b) * y4;
} else if (i <= 1.3e-276) {
tmp = fma(x, y2, (-y3 * z)) * (y0 * c);
} else if (i <= 9e+44) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * 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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e+52) tmp = t_1; elseif (i <= -1.4e-59) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a); elseif (i <= -1.4e-284) tmp = Float64(Float64(fma(j, t, Float64(Float64(-k) * y)) * b) * y4); elseif (i <= 1.3e-276) tmp = Float64(fma(x, y2, Float64(Float64(-y3) * z)) * Float64(y0 * c)); elseif (i <= 9e+44) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * 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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e+52], t$95$1, If[LessEqual[i, -1.4e-59], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, -1.4e-284], N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[i, 1.3e-276], N[(N[(x * y2 + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * N[(y0 * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e+44], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-59}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-284}:\\
\;\;\;\;\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot b\right) \cdot y4\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-276}:\\
\;\;\;\;\mathsf{fma}\left(x, y2, \left(-y3\right) \cdot z\right) \cdot \left(y0 \cdot c\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{+44}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.3e52 or 9e44 < i Initial program 26.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.4%
Taylor expanded in i around inf
Applied rewrites54.8%
if -1.3e52 < i < -1.3999999999999999e-59Initial program 43.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in y around -inf
Applied rewrites56.8%
Taylor expanded in z around inf
Applied rewrites44.6%
if -1.3999999999999999e-59 < i < -1.4000000000000001e-284Initial program 39.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.7%
Taylor expanded in b around inf
Applied rewrites53.7%
if -1.4000000000000001e-284 < i < 1.29999999999999992e-276Initial program 35.9%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
Taylor expanded in y0 around inf
Applied rewrites54.1%
if 1.29999999999999992e-276 < i < 9e44Initial program 38.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y3 around inf
Applied rewrites44.8%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e+52)
t_1
(if (<= i -1.4e-59)
(* (* (fma (- b) t (* y3 y1)) z) a)
(if (<= i -1.4e-284)
(* (fma j t (* (- k) y)) (* y4 b))
(if (<= i 1.3e-276)
(* (fma x y2 (* (- y3) z)) (* y0 c))
(if (<= i 9e+44) (* (* (fma (- y) y5 (* y1 z)) y3) 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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e+52) {
tmp = t_1;
} else if (i <= -1.4e-59) {
tmp = (fma(-b, t, (y3 * y1)) * z) * a;
} else if (i <= -1.4e-284) {
tmp = fma(j, t, (-k * y)) * (y4 * b);
} else if (i <= 1.3e-276) {
tmp = fma(x, y2, (-y3 * z)) * (y0 * c);
} else if (i <= 9e+44) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * 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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e+52) tmp = t_1; elseif (i <= -1.4e-59) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a); elseif (i <= -1.4e-284) tmp = Float64(fma(j, t, Float64(Float64(-k) * y)) * Float64(y4 * b)); elseif (i <= 1.3e-276) tmp = Float64(fma(x, y2, Float64(Float64(-y3) * z)) * Float64(y0 * c)); elseif (i <= 9e+44) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * 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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e+52], t$95$1, If[LessEqual[i, -1.4e-59], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, -1.4e-284], N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * N[(y4 * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e-276], N[(N[(x * y2 + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * N[(y0 * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e+44], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-59}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-284}:\\
\;\;\;\;\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot \left(y4 \cdot b\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-276}:\\
\;\;\;\;\mathsf{fma}\left(x, y2, \left(-y3\right) \cdot z\right) \cdot \left(y0 \cdot c\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{+44}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.3e52 or 9e44 < i Initial program 26.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.4%
Taylor expanded in i around inf
Applied rewrites54.8%
if -1.3e52 < i < -1.3999999999999999e-59Initial program 43.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in y around -inf
Applied rewrites56.8%
Taylor expanded in z around inf
Applied rewrites44.6%
if -1.3999999999999999e-59 < i < -1.4000000000000001e-284Initial program 39.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.7%
Taylor expanded in b around inf
Applied rewrites50.7%
if -1.4000000000000001e-284 < i < 1.29999999999999992e-276Initial program 35.9%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
Taylor expanded in y0 around inf
Applied rewrites54.1%
if 1.29999999999999992e-276 < i < 9e44Initial program 38.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y3 around inf
Applied rewrites44.8%
Final simplification50.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma x y (* (- t) z)) b) a))
(t_2 (* (* (fma y3 z (* (- x) y2)) a) y1)))
(if (<= b -6.2e+36)
t_1
(if (<= b -1.75e-34)
(* (* (fma (- y3) y4 (* i x)) j) y1)
(if (<= b -5.8e-260)
t_2
(if (<= b 7.8e-154)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 1.7e+24) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(x, y, (-t * z)) * b) * a;
double t_2 = (fma(y3, z, (-x * y2)) * a) * y1;
double tmp;
if (b <= -6.2e+36) {
tmp = t_1;
} else if (b <= -1.75e-34) {
tmp = (fma(-y3, y4, (i * x)) * j) * y1;
} else if (b <= -5.8e-260) {
tmp = t_2;
} else if (b <= 7.8e-154) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 1.7e+24) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * b) * a) t_2 = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1) tmp = 0.0 if (b <= -6.2e+36) tmp = t_1; elseif (b <= -1.75e-34) tmp = Float64(Float64(fma(Float64(-y3), y4, Float64(i * x)) * j) * y1); elseif (b <= -5.8e-260) tmp = t_2; elseif (b <= 7.8e-154) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 1.7e+24) tmp = t_2; 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[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[b, -6.2e+36], t$95$1, If[LessEqual[b, -1.75e-34], N[(N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[b, -5.8e-260], t$95$2, If[LessEqual[b, 7.8e-154], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 1.7e+24], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
t_2 := \left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-34}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot j\right) \cdot y1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-260}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 7.8 \cdot 10^{-154}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+24}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.1999999999999999e36 or 1.7e24 < b Initial program 34.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in b around inf
Applied rewrites48.5%
if -6.1999999999999999e36 < b < -1.75e-34Initial program 20.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites27.1%
Taylor expanded in j around inf
Applied rewrites67.5%
if -1.75e-34 < b < -5.7999999999999999e-260 or 7.80000000000000065e-154 < b < 1.7e24Initial program 33.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
Taylor expanded in a around inf
Applied rewrites45.1%
if -5.7999999999999999e-260 < b < 7.80000000000000065e-154Initial program 40.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.6%
Taylor expanded in y2 around inf
Applied rewrites48.5%
Final simplification48.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -6.5e+172)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= a -8.6e-40)
(* (* (fma (- y) y5 (* y1 z)) y3) a)
(if (<= a -5.4e-104)
(* (* (fma -1.0 (* y2 y0) (* i y)) y5) k)
(if (<= a 3.15e-53)
(* (* (fma b j (* (- c) y2)) t) y4)
(* (* (fma (- k) y4 (* a x)) (- y2)) y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -6.5e+172) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (a <= -8.6e-40) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * a;
} else if (a <= -5.4e-104) {
tmp = (fma(-1.0, (y2 * y0), (i * y)) * y5) * k;
} else if (a <= 3.15e-53) {
tmp = (fma(b, j, (-c * y2)) * t) * y4;
} else {
tmp = (fma(-k, y4, (a * x)) * -y2) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -6.5e+172) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (a <= -8.6e-40) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * a); elseif (a <= -5.4e-104) tmp = Float64(Float64(fma(-1.0, Float64(y2 * y0), Float64(i * y)) * y5) * k); elseif (a <= 3.15e-53) tmp = Float64(Float64(fma(b, j, Float64(Float64(-c) * y2)) * t) * y4); else tmp = Float64(Float64(fma(Float64(-k), y4, Float64(a * x)) * Float64(-y2)) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -6.5e+172], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -8.6e-40], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -5.4e-104], N[(N[(N[(-1.0 * N[(y2 * y0), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[a, 3.15e-53], N[(N[(N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision] * (-y2)), $MachinePrecision] * y1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+172}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;a \leq -8.6 \cdot 10^{-40}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;a \leq -5.4 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-1, y2 \cdot y0, i \cdot y\right) \cdot y5\right) \cdot k\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right) \cdot t\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y4, a \cdot x\right) \cdot \left(-y2\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -6.4999999999999997e172Initial program 30.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites57.6%
if -6.4999999999999997e172 < a < -8.6000000000000005e-40Initial program 31.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.3%
Taylor expanded in y3 around inf
Applied rewrites46.8%
if -8.6000000000000005e-40 < a < -5.3999999999999997e-104Initial program 50.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in k around inf
Applied rewrites46.2%
if -5.3999999999999997e-104 < a < 3.14999999999999989e-53Initial program 38.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in y2 around -inf
Applied rewrites26.0%
Taylor expanded in t around -inf
Applied rewrites44.7%
Taylor expanded in t around inf
Applied rewrites44.7%
if 3.14999999999999989e-53 < a Initial program 25.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in y2 around -inf
Applied rewrites58.3%
Final simplification50.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -6.5e+172)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= a -1.15e-48)
(* (* (fma (- y) y5 (* y1 z)) y3) a)
(if (<= a -2.5e-141)
(* (* (fma (- b) k (* y3 c)) y4) y)
(if (<= a 3.15e-53)
(* (* (fma b j (* (- c) y2)) t) y4)
(* (* (fma (- k) y4 (* a x)) (- y2)) y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -6.5e+172) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (a <= -1.15e-48) {
tmp = (fma(-y, y5, (y1 * z)) * y3) * a;
} else if (a <= -2.5e-141) {
tmp = (fma(-b, k, (y3 * c)) * y4) * y;
} else if (a <= 3.15e-53) {
tmp = (fma(b, j, (-c * y2)) * t) * y4;
} else {
tmp = (fma(-k, y4, (a * x)) * -y2) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -6.5e+172) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (a <= -1.15e-48) tmp = Float64(Float64(fma(Float64(-y), y5, Float64(y1 * z)) * y3) * a); elseif (a <= -2.5e-141) tmp = Float64(Float64(fma(Float64(-b), k, Float64(y3 * c)) * y4) * y); elseif (a <= 3.15e-53) tmp = Float64(Float64(fma(b, j, Float64(Float64(-c) * y2)) * t) * y4); else tmp = Float64(Float64(fma(Float64(-k), y4, Float64(a * x)) * Float64(-y2)) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -6.5e+172], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[a, -1.15e-48], N[(N[(N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -2.5e-141], N[(N[(N[((-b) * k + N[(y3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 3.15e-53], N[(N[(N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-k) * y4 + N[(a * x), $MachinePrecision]), $MachinePrecision] * (-y2)), $MachinePrecision] * y1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+172}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-48}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, y5, y1 \cdot z\right) \cdot y3\right) \cdot a\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-141}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, k, y3 \cdot c\right) \cdot y4\right) \cdot y\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right) \cdot t\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y4, a \cdot x\right) \cdot \left(-y2\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -6.4999999999999997e172Initial program 30.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in a around inf
Applied rewrites57.6%
if -6.4999999999999997e172 < a < -1.15e-48Initial program 33.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.4%
Taylor expanded in y3 around inf
Applied rewrites46.3%
if -1.15e-48 < a < -2.5e-141Initial program 45.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.0%
Taylor expanded in y2 around -inf
Applied rewrites21.6%
Taylor expanded in y around inf
Applied rewrites46.9%
if -2.5e-141 < a < 3.14999999999999989e-53Initial program 38.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.4%
Taylor expanded in y2 around -inf
Applied rewrites25.1%
Taylor expanded in t around -inf
Applied rewrites43.8%
Taylor expanded in t around inf
Applied rewrites43.8%
if 3.14999999999999989e-53 < a Initial program 25.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.7%
Taylor expanded in y2 around -inf
Applied rewrites58.3%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -2.8e-10)
t_1
(if (<= i 3.4e-202)
(* (fma (- y3) y5 (* b x)) (* a y))
(if (<= i 2.4e-66)
(* (* (fma (- b) t (* y3 y1)) z) a)
(if (<= i 1.2e+40) (* (fma t y2 (* (- y) y3)) (* 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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -2.8e-10) {
tmp = t_1;
} else if (i <= 3.4e-202) {
tmp = fma(-y3, y5, (b * x)) * (a * y);
} else if (i <= 2.4e-66) {
tmp = (fma(-b, t, (y3 * y1)) * z) * a;
} else if (i <= 1.2e+40) {
tmp = fma(t, y2, (-y * y3)) * (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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -2.8e-10) tmp = t_1; elseif (i <= 3.4e-202) tmp = Float64(fma(Float64(-y3), y5, Float64(b * x)) * Float64(a * y)); elseif (i <= 2.4e-66) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a); elseif (i <= 1.2e+40) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -2.8e-10], t$95$1, If[LessEqual[i, 3.4e-202], N[(N[((-y3) * y5 + N[(b * x), $MachinePrecision]), $MachinePrecision] * N[(a * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e-66], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.2e+40], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -2.8 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-202}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y5, b \cdot x\right) \cdot \left(a \cdot y\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-66}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.80000000000000015e-10 or 1.2e40 < i Initial program 28.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
Taylor expanded in i around inf
Applied rewrites51.8%
if -2.80000000000000015e-10 < i < 3.40000000000000012e-202Initial program 40.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.5%
Taylor expanded in y around inf
Applied rewrites34.5%
if 3.40000000000000012e-202 < i < 2.40000000000000026e-66Initial program 38.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.5%
Taylor expanded in y around -inf
Applied rewrites49.5%
Taylor expanded in z around inf
Applied rewrites43.7%
if 2.40000000000000026e-66 < i < 1.2e40Initial program 34.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.7%
Taylor expanded in a around inf
Applied rewrites51.3%
Final simplification45.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e+52)
t_1
(if (<= i 2.4e-66)
(* (* (fma (- b) t (* y3 y1)) z) a)
(if (<= i 1.2e+40) (* (fma t y2 (* (- y) y3)) (* 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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e+52) {
tmp = t_1;
} else if (i <= 2.4e-66) {
tmp = (fma(-b, t, (y3 * y1)) * z) * a;
} else if (i <= 1.2e+40) {
tmp = fma(t, y2, (-y * y3)) * (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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e+52) tmp = t_1; elseif (i <= 2.4e-66) tmp = Float64(Float64(fma(Float64(-b), t, Float64(y3 * y1)) * z) * a); elseif (i <= 1.2e+40) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e+52], t$95$1, If[LessEqual[i, 2.4e-66], N[(N[(N[((-b) * t + N[(y3 * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.2e+40], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-66}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, t, y3 \cdot y1\right) \cdot z\right) \cdot a\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.3e52 or 1.2e40 < i Initial program 26.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.4%
Taylor expanded in i around inf
Applied rewrites54.8%
if -1.3e52 < i < 2.40000000000000026e-66Initial program 40.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.1%
Taylor expanded in y around -inf
Applied rewrites51.9%
Taylor expanded in z around inf
Applied rewrites32.9%
if 2.40000000000000026e-66 < i < 1.2e40Initial program 34.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.7%
Taylor expanded in a around inf
Applied rewrites51.3%
Final simplification43.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -4.3e+55)
(* (* (- y4) (* y3 j)) y1)
(if (<= j 4.8e-67)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= j 1.25e+161)
(* (fma t y2 (* (- y) y3)) (* y5 a))
(* (* (* j i) x) 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 (j <= -4.3e+55) {
tmp = (-y4 * (y3 * j)) * y1;
} else if (j <= 4.8e-67) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (j <= 1.25e+161) {
tmp = fma(t, y2, (-y * y3)) * (y5 * a);
} else {
tmp = ((j * i) * x) * 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 (j <= -4.3e+55) tmp = Float64(Float64(Float64(-y4) * Float64(y3 * j)) * y1); elseif (j <= 4.8e-67) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (j <= 1.25e+161) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(y5 * a)); else tmp = Float64(Float64(Float64(j * i) * x) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -4.3e+55], N[(N[((-y4) * N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[j, 4.8e-67], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[j, 1.25e+161], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(j * i), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.3 \cdot 10^{+55}:\\
\;\;\;\;\left(\left(-y4\right) \cdot \left(y3 \cdot j\right)\right) \cdot y1\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-67}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{+161}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot i\right) \cdot x\right) \cdot y1\\
\end{array}
\end{array}
if j < -4.2999999999999999e55Initial program 27.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in j around inf
Applied rewrites49.8%
Taylor expanded in x around 0
Applied rewrites40.2%
if -4.2999999999999999e55 < j < 4.8e-67Initial program 30.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.0%
Taylor expanded in y2 around inf
Applied rewrites33.9%
if 4.8e-67 < j < 1.2499999999999999e161Initial program 40.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in a around inf
Applied rewrites35.1%
if 1.2499999999999999e161 < j Initial program 49.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.4%
Taylor expanded in j around inf
Applied rewrites51.1%
Taylor expanded in x around inf
Applied rewrites43.8%
Final simplification36.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -1.3e-6)
t_1
(if (<= i 32500.0) (* (* (fma y3 z (* (- x) y2)) a) y1) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -1.3e-6) {
tmp = t_1;
} else if (i <= 32500.0) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -1.3e-6) tmp = t_1; elseif (i <= 32500.0) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -1.3e-6], t$95$1, If[LessEqual[i, 32500.0], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -1.3 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 32500:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.30000000000000005e-6 or 32500 < i Initial program 28.0%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.7%
Taylor expanded in i around inf
Applied rewrites50.3%
if -1.30000000000000005e-6 < i < 32500Initial program 40.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in a around inf
Applied rewrites36.7%
Final simplification43.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- x) y (* t z)) i) c)))
(if (<= i -9e-7)
t_1
(if (<= i 1.2e+40) (* (fma t y2 (* (- y) y3)) (* 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(-x, y, (t * z)) * i) * c;
double tmp;
if (i <= -9e-7) {
tmp = t_1;
} else if (i <= 1.2e+40) {
tmp = fma(t, y2, (-y * y3)) * (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(Float64(fma(Float64(-x), y, Float64(t * z)) * i) * c) tmp = 0.0 if (i <= -9e-7) tmp = t_1; elseif (i <= 1.2e+40) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(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[((-x) * y + N[(t * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[i, -9e-7], t$95$1, If[LessEqual[i, 1.2e+40], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-x, y, t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{if}\;i \leq -9 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{+40}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -8.99999999999999959e-7 or 1.2e40 < i Initial program 28.0%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in i around inf
Applied rewrites52.2%
if -8.99999999999999959e-7 < i < 1.2e40Initial program 39.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.1%
Taylor expanded in a around inf
Applied rewrites32.0%
Final simplification41.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma k y (* (- t) j)) (* y5 i))))
(if (<= i -2.8e-14)
t_1
(if (<= i 4.5e+148) (* (fma t y2 (* (- y) y3)) (* 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(k, y, (-t * j)) * (y5 * i);
double tmp;
if (i <= -2.8e-14) {
tmp = t_1;
} else if (i <= 4.5e+148) {
tmp = fma(t, y2, (-y * y3)) * (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(k, y, Float64(Float64(-t) * j)) * Float64(y5 * i)) tmp = 0.0 if (i <= -2.8e-14) tmp = t_1; elseif (i <= 4.5e+148) tmp = Float64(fma(t, y2, Float64(Float64(-y) * y3)) * Float64(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[(k * y + N[((-t) * j), $MachinePrecision]), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.8e-14], t$95$1, If[LessEqual[i, 4.5e+148], N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(k, y, \left(-t\right) \cdot j\right) \cdot \left(y5 \cdot i\right)\\
\mathbf{if}\;i \leq -2.8 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot \left(y5 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.8000000000000001e-14 or 4.49999999999999994e148 < i Initial program 30.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
Taylor expanded in i around inf
Applied rewrites41.0%
if -2.8000000000000001e-14 < i < 4.49999999999999994e148Initial program 35.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.1%
Taylor expanded in a around inf
Applied rewrites31.7%
Final simplification35.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -4.3e+55)
(* (* (- y4) (* y3 j)) y1)
(if (<= j 3.2e+191)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(* (* (* j i) x) 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 (j <= -4.3e+55) {
tmp = (-y4 * (y3 * j)) * y1;
} else if (j <= 3.2e+191) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else {
tmp = ((j * i) * x) * 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 (j <= -4.3e+55) tmp = Float64(Float64(Float64(-y4) * Float64(y3 * j)) * y1); elseif (j <= 3.2e+191) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); else tmp = Float64(Float64(Float64(j * i) * x) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -4.3e+55], N[(N[((-y4) * N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[j, 3.2e+191], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], N[(N[(N[(j * i), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.3 \cdot 10^{+55}:\\
\;\;\;\;\left(\left(-y4\right) \cdot \left(y3 \cdot j\right)\right) \cdot y1\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{+191}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot i\right) \cdot x\right) \cdot y1\\
\end{array}
\end{array}
if j < -4.2999999999999999e55Initial program 27.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in j around inf
Applied rewrites49.8%
Taylor expanded in x around 0
Applied rewrites40.2%
if -4.2999999999999999e55 < j < 3.2000000000000002e191Initial program 34.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in y2 around inf
Applied rewrites30.7%
if 3.2000000000000002e191 < j Initial program 42.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.8%
Taylor expanded in j around inf
Applied rewrites58.7%
Taylor expanded in x around inf
Applied rewrites48.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 -3.35e+16)
(* (* (* y5 y2) a) t)
(if (<= y2 1800.0)
(* (* (* j t) b) y4)
(if (<= y2 1.45e+144) (* (* (* y2 y1) k) y4) (* (* (* y5 y2) t) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.35e+16) {
tmp = ((y5 * y2) * a) * t;
} else if (y2 <= 1800.0) {
tmp = ((j * t) * b) * y4;
} else if (y2 <= 1.45e+144) {
tmp = ((y2 * y1) * k) * y4;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-3.35d+16)) then
tmp = ((y5 * y2) * a) * t
else if (y2 <= 1800.0d0) then
tmp = ((j * t) * b) * y4
else if (y2 <= 1.45d+144) then
tmp = ((y2 * y1) * k) * y4
else
tmp = ((y5 * y2) * t) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.35e+16) {
tmp = ((y5 * y2) * a) * t;
} else if (y2 <= 1800.0) {
tmp = ((j * t) * b) * y4;
} else if (y2 <= 1.45e+144) {
tmp = ((y2 * y1) * k) * y4;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -3.35e+16: tmp = ((y5 * y2) * a) * t elif y2 <= 1800.0: tmp = ((j * t) * b) * y4 elif y2 <= 1.45e+144: tmp = ((y2 * y1) * k) * y4 else: tmp = ((y5 * y2) * t) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -3.35e+16) tmp = Float64(Float64(Float64(y5 * y2) * a) * t); elseif (y2 <= 1800.0) tmp = Float64(Float64(Float64(j * t) * b) * y4); elseif (y2 <= 1.45e+144) tmp = Float64(Float64(Float64(y2 * y1) * k) * y4); else tmp = Float64(Float64(Float64(y5 * y2) * t) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -3.35e+16) tmp = ((y5 * y2) * a) * t; elseif (y2 <= 1800.0) tmp = ((j * t) * b) * y4; elseif (y2 <= 1.45e+144) tmp = ((y2 * y1) * k) * y4; else tmp = ((y5 * y2) * t) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -3.35e+16], N[(N[(N[(y5 * y2), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y2, 1800.0], N[(N[(N[(j * t), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y2, 1.45e+144], N[(N[(N[(y2 * y1), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(y5 * y2), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.35 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{elif}\;y2 \leq 1800:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot b\right) \cdot y4\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{+144}:\\
\;\;\;\;\left(\left(y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot t\right) \cdot a\\
\end{array}
\end{array}
if y2 < -3.35e16Initial program 26.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in y2 around inf
Applied rewrites37.7%
Taylor expanded in t around inf
Applied rewrites28.8%
Applied rewrites34.4%
if -3.35e16 < y2 < 1800Initial program 40.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.0%
Taylor expanded in y2 around -inf
Applied rewrites14.5%
Taylor expanded in t around -inf
Applied rewrites26.0%
Taylor expanded in b around inf
Applied rewrites24.0%
if 1800 < y2 < 1.44999999999999999e144Initial program 38.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.2%
Taylor expanded in y2 around -inf
Applied rewrites43.8%
Taylor expanded in t around 0
Applied rewrites43.6%
if 1.44999999999999999e144 < y2 Initial program 21.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in y2 around inf
Applied rewrites60.9%
Taylor expanded in t around inf
Applied rewrites44.0%
Applied rewrites58.2%
Final simplification33.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* a t) y5) y2)))
(if (<= t -1.3e+63)
t_1
(if (<= t -6.5e-13)
(* (* (* j i) x) y1)
(if (<= t 8.8e+32) (* (* (* y3 z) y1) 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 = ((a * t) * y5) * y2;
double tmp;
if (t <= -1.3e+63) {
tmp = t_1;
} else if (t <= -6.5e-13) {
tmp = ((j * i) * x) * y1;
} else if (t <= 8.8e+32) {
tmp = ((y3 * z) * y1) * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((a * t) * y5) * y2
if (t <= (-1.3d+63)) then
tmp = t_1
else if (t <= (-6.5d-13)) then
tmp = ((j * i) * x) * y1
else if (t <= 8.8d+32) then
tmp = ((y3 * z) * y1) * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((a * t) * y5) * y2;
double tmp;
if (t <= -1.3e+63) {
tmp = t_1;
} else if (t <= -6.5e-13) {
tmp = ((j * i) * x) * y1;
} else if (t <= 8.8e+32) {
tmp = ((y3 * z) * y1) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((a * t) * y5) * y2 tmp = 0 if t <= -1.3e+63: tmp = t_1 elif t <= -6.5e-13: tmp = ((j * i) * x) * y1 elif t <= 8.8e+32: tmp = ((y3 * z) * y1) * 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(Float64(Float64(a * t) * y5) * y2) tmp = 0.0 if (t <= -1.3e+63) tmp = t_1; elseif (t <= -6.5e-13) tmp = Float64(Float64(Float64(j * i) * x) * y1); elseif (t <= 8.8e+32) tmp = Float64(Float64(Float64(y3 * z) * y1) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((a * t) * y5) * y2; tmp = 0.0; if (t <= -1.3e+63) tmp = t_1; elseif (t <= -6.5e-13) tmp = ((j * i) * x) * y1; elseif (t <= 8.8e+32) tmp = ((y3 * z) * y1) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(a * t), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[t, -1.3e+63], t$95$1, If[LessEqual[t, -6.5e-13], N[(N[(N[(j * i), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 8.8e+32], N[(N[(N[(y3 * z), $MachinePrecision] * y1), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -6.5 \cdot 10^{-13}:\\
\;\;\;\;\left(\left(j \cdot i\right) \cdot x\right) \cdot y1\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+32}:\\
\;\;\;\;\left(\left(y3 \cdot z\right) \cdot y1\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3000000000000001e63 or 8.80000000000000004e32 < t Initial program 20.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in y2 around inf
Applied rewrites40.3%
Taylor expanded in t around inf
Applied rewrites36.7%
if -1.3000000000000001e63 < t < -6.49999999999999957e-13Initial program 40.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in j around inf
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites54.9%
if -6.49999999999999957e-13 < t < 8.80000000000000004e32Initial program 44.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.0%
Taylor expanded in y around -inf
Applied rewrites49.4%
Taylor expanded in z around inf
Applied rewrites25.5%
Taylor expanded in t around 0
Applied rewrites20.8%
Final simplification30.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y2 -3.35e+16) (* (* (* y5 y2) a) t) (if (<= y2 1.95e+39) (* (* (* j t) b) y4) (* (* (* y5 y2) t) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.35e+16) {
tmp = ((y5 * y2) * a) * t;
} else if (y2 <= 1.95e+39) {
tmp = ((j * t) * b) * y4;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y2 <= (-3.35d+16)) then
tmp = ((y5 * y2) * a) * t
else if (y2 <= 1.95d+39) then
tmp = ((j * t) * b) * y4
else
tmp = ((y5 * y2) * t) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -3.35e+16) {
tmp = ((y5 * y2) * a) * t;
} else if (y2 <= 1.95e+39) {
tmp = ((j * t) * b) * y4;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -3.35e+16: tmp = ((y5 * y2) * a) * t elif y2 <= 1.95e+39: tmp = ((j * t) * b) * y4 else: tmp = ((y5 * y2) * t) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -3.35e+16) tmp = Float64(Float64(Float64(y5 * y2) * a) * t); elseif (y2 <= 1.95e+39) tmp = Float64(Float64(Float64(j * t) * b) * y4); else tmp = Float64(Float64(Float64(y5 * y2) * t) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y2 <= -3.35e+16) tmp = ((y5 * y2) * a) * t; elseif (y2 <= 1.95e+39) tmp = ((j * t) * b) * y4; else tmp = ((y5 * y2) * t) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -3.35e+16], N[(N[(N[(y5 * y2), $MachinePrecision] * a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y2, 1.95e+39], N[(N[(N[(j * t), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(y5 * y2), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -3.35 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot a\right) \cdot t\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{+39}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot b\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot t\right) \cdot a\\
\end{array}
\end{array}
if y2 < -3.35e16Initial program 26.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in y2 around inf
Applied rewrites37.7%
Taylor expanded in t around inf
Applied rewrites28.8%
Applied rewrites34.4%
if -3.35e16 < y2 < 1.95e39Initial program 40.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.0%
Taylor expanded in y2 around -inf
Applied rewrites15.5%
Taylor expanded in t around -inf
Applied rewrites25.9%
Taylor expanded in b around inf
Applied rewrites23.1%
if 1.95e39 < y2 Initial program 27.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.0%
Taylor expanded in y2 around inf
Applied rewrites46.9%
Taylor expanded in t around inf
Applied rewrites34.6%
Applied rewrites43.3%
Final simplification30.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* y5 y2) t) a))) (if (<= y5 -5e-6) t_1 (if (<= y5 1.04e-72) (* (* (* y3 z) y1) 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 = ((y5 * y2) * t) * a;
double tmp;
if (y5 <= -5e-6) {
tmp = t_1;
} else if (y5 <= 1.04e-72) {
tmp = ((y3 * z) * y1) * a;
} 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 = ((y5 * y2) * t) * a
if (y5 <= (-5d-6)) then
tmp = t_1
else if (y5 <= 1.04d-72) then
tmp = ((y3 * z) * y1) * a
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 = ((y5 * y2) * t) * a;
double tmp;
if (y5 <= -5e-6) {
tmp = t_1;
} else if (y5 <= 1.04e-72) {
tmp = ((y3 * z) * y1) * a;
} 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 = ((y5 * y2) * t) * a tmp = 0 if y5 <= -5e-6: tmp = t_1 elif y5 <= 1.04e-72: tmp = ((y3 * z) * y1) * 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(Float64(Float64(y5 * y2) * t) * a) tmp = 0.0 if (y5 <= -5e-6) tmp = t_1; elseif (y5 <= 1.04e-72) tmp = Float64(Float64(Float64(y3 * z) * y1) * a); 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 = ((y5 * y2) * t) * a; tmp = 0.0; if (y5 <= -5e-6) tmp = t_1; elseif (y5 <= 1.04e-72) tmp = ((y3 * z) * y1) * a; 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[(y5 * y2), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[y5, -5e-6], t$95$1, If[LessEqual[y5, 1.04e-72], N[(N[(N[(y3 * z), $MachinePrecision] * y1), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y5 \cdot y2\right) \cdot t\right) \cdot a\\
\mathbf{if}\;y5 \leq -5 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 1.04 \cdot 10^{-72}:\\
\;\;\;\;\left(\left(y3 \cdot z\right) \cdot y1\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -5.00000000000000041e-6 or 1.04e-72 < y5 Initial program 30.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y2 around inf
Applied rewrites35.7%
Taylor expanded in t around inf
Applied rewrites25.1%
Applied rewrites31.4%
if -5.00000000000000041e-6 < y5 < 1.04e-72Initial program 38.6%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.6%
Taylor expanded in y around -inf
Applied rewrites48.5%
Taylor expanded in z around inf
Applied rewrites35.6%
Taylor expanded in t around 0
Applied rewrites24.8%
Final simplification28.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= a -1.5e+64) (* (* (* a t) y5) y2) (* (* (* y5 y2) t) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.5e+64) {
tmp = ((a * t) * y5) * y2;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (a <= (-1.5d+64)) then
tmp = ((a * t) * y5) * y2
else
tmp = ((y5 * y2) * t) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.5e+64) {
tmp = ((a * t) * y5) * y2;
} else {
tmp = ((y5 * y2) * t) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if a <= -1.5e+64: tmp = ((a * t) * y5) * y2 else: tmp = ((y5 * y2) * t) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.5e+64) tmp = Float64(Float64(Float64(a * t) * y5) * y2); else tmp = Float64(Float64(Float64(y5 * y2) * t) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (a <= -1.5e+64) tmp = ((a * t) * y5) * y2; else tmp = ((y5 * y2) * t) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.5e+64], N[(N[(N[(a * t), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], N[(N[(N[(y5 * y2), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{+64}:\\
\;\;\;\;\left(\left(a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y5 \cdot y2\right) \cdot t\right) \cdot a\\
\end{array}
\end{array}
if a < -1.5000000000000001e64Initial program 37.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.6%
Taylor expanded in y2 around inf
Applied rewrites33.5%
Taylor expanded in t around inf
Applied rewrites33.6%
if -1.5000000000000001e64 < a Initial program 33.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.9%
Taylor expanded in y2 around inf
Applied rewrites24.1%
Taylor expanded in t around inf
Applied rewrites15.7%
Applied rewrites20.0%
Final simplification23.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y5 y2) t) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * y2) * t) * a;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = ((y5 * y2) * t) * a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * y2) * t) * a;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y5 * y2) * t) * a
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y5 * y2) * t) * a) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y5 * y2) * t) * a; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y5 * y2), $MachinePrecision] * t), $MachinePrecision] * a), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y5 \cdot y2\right) \cdot t\right) \cdot a
\end{array}
Initial program 34.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.1%
Taylor expanded in y2 around inf
Applied rewrites26.3%
Taylor expanded in t around inf
Applied rewrites17.2%
Applied rewrites20.6%
Final simplification20.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y5 t) y2) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * t) * y2) * a;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = ((y5 * t) * y2) * a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * t) * y2) * a;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y5 * t) * y2) * a
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y5 * t) * y2) * a) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y5 * t) * y2) * a; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y5 * t), $MachinePrecision] * y2), $MachinePrecision] * a), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y5 \cdot t\right) \cdot y2\right) \cdot a
\end{array}
Initial program 34.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.1%
Taylor expanded in y2 around inf
Applied rewrites26.3%
Taylor expanded in t around inf
Applied rewrites17.2%
Applied rewrites19.1%
Final simplification19.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y2 t) y5) a))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y2 * t) * y5) * a;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = ((y2 * t) * y5) * a
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y2 * t) * y5) * a;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y2 * t) * y5) * a
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y2 * t) * y5) * a) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y2 * t) * y5) * a; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y2 * t), $MachinePrecision] * y5), $MachinePrecision] * a), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y2 \cdot t\right) \cdot y5\right) \cdot a
\end{array}
Initial program 34.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.1%
Taylor expanded in y2 around inf
Applied rewrites26.3%
Taylor expanded in t around inf
Applied rewrites17.2%
Final simplification17.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2024332
(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)))))