
(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 31 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 (- (* y2 t) (* y3 y)))
(t_2
(*
(fma
(+ (* (- b) a) (* i c))
z
(fma (- (* y4 b) (* y5 i)) j (* (- y2) (- (* y4 c) (* y5 a)))))
t)))
(if (<= t -1.45e+79)
t_2
(if (<= t -1.72e-264)
(*
(fma
(+ (* (- y4) b) (* y5 i))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
(if (<= t 6.6e-256)
(*
(fma
(fma (- y3) z (* x y2))
(- a)
(fma (fma (- j) y3 (* k y2)) y4 (* (fma (- k) z (* j x)) i)))
y1)
(if (<= t 2e-130)
(*
(- c)
(fma
(+ (* (- y2) x) (* y3 z))
y0
(fma (- (* y x) (* t z)) i (* t_1 y4))))
(if (<= t 5.2e+34)
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- c) t_1)))
y4)
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * t) - (y3 * y);
double t_2 = fma(((-b * a) + (i * c)), z, fma(((y4 * b) - (y5 * i)), j, (-y2 * ((y4 * c) - (y5 * a))))) * t;
double tmp;
if (t <= -1.45e+79) {
tmp = t_2;
} else if (t <= -1.72e-264) {
tmp = fma(((-y4 * b) + (y5 * i)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} else if (t <= 6.6e-256) {
tmp = fma(fma(-y3, z, (x * y2)), -a, fma(fma(-j, y3, (k * y2)), y4, (fma(-k, z, (j * x)) * i))) * y1;
} else if (t <= 2e-130) {
tmp = -c * fma(((-y2 * x) + (y3 * z)), y0, fma(((y * x) - (t * z)), i, (t_1 * y4)));
} else if (t <= 5.2e+34) {
tmp = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (-c * t_1))) * y4;
} 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(y2 * t) - Float64(y3 * y)) t_2 = Float64(fma(Float64(Float64(Float64(-b) * a) + Float64(i * c)), z, fma(Float64(Float64(y4 * b) - Float64(y5 * i)), j, Float64(Float64(-y2) * Float64(Float64(y4 * c) - Float64(y5 * a))))) * t) tmp = 0.0 if (t <= -1.45e+79) tmp = t_2; elseif (t <= -1.72e-264) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); elseif (t <= 6.6e-256) tmp = Float64(fma(fma(Float64(-y3), z, Float64(x * y2)), Float64(-a), fma(fma(Float64(-j), y3, Float64(k * y2)), y4, Float64(fma(Float64(-k), z, Float64(j * x)) * i))) * y1); elseif (t <= 2e-130) tmp = Float64(Float64(-c) * fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), y0, fma(Float64(Float64(y * x) - Float64(t * z)), i, Float64(t_1 * y4)))); elseif (t <= 5.2e+34) tmp = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(-c) * t_1))) * y4); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[((-b) * a), $MachinePrecision] + N[(i * c), $MachinePrecision]), $MachinePrecision] * z + N[(N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision] * j + N[((-y2) * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.45e+79], t$95$2, If[LessEqual[t, -1.72e-264], N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 6.6e-256], N[(N[(N[((-y3) * z + N[(x * y2), $MachinePrecision]), $MachinePrecision] * (-a) + N[(N[((-j) * y3 + N[(k * y2), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 2e-130], N[((-c) * N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $MachinePrecision]), $MachinePrecision] * y0 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * i + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+34], 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[((-c) * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot t - y3 \cdot y\\
t_2 := \mathsf{fma}\left(\left(-b\right) \cdot a + i \cdot c, z, \mathsf{fma}\left(y4 \cdot b - y5 \cdot i, j, \left(-y2\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right)\right) \cdot t\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+79}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.72 \cdot 10^{-264}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{-256}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y3, z, x \cdot y2\right), -a, \mathsf{fma}\left(\mathsf{fma}\left(-j, y3, k \cdot y2\right), y4, \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{-130}:\\
\;\;\;\;\left(-c\right) \cdot \mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, y0, \mathsf{fma}\left(y \cdot x - t \cdot z, i, t\_1 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+34}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(-c\right) \cdot t\_1\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.44999999999999996e79 or 5.19999999999999995e34 < t Initial program 22.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.8%
if -1.44999999999999996e79 < t < -1.7200000000000001e-264Initial program 41.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.7%
if -1.7200000000000001e-264 < t < 6.6e-256Initial program 39.1%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.2%
Applied rewrites57.6%
if 6.6e-256 < t < 2.0000000000000002e-130Initial program 43.2%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites60.9%
if 2.0000000000000002e-130 < t < 5.19999999999999995e34Initial program 35.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.8%
Final simplification64.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a))) (t_2 (- (* y4 b) (* y5 i))))
(if (<=
(+
(-
(+
(+
(-
(* (- (* 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)) t_2))
(* (- (* t y2) (* y y3)) t_1))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
INFINITY)
(fma
(fma (- y3) j (* y2 k))
(fma (- y0) y5 (* y4 y1))
(fma
(- (fma (- a) y5 (* y4 c)))
(fma (- y3) y (* y2 t))
(fma
(fma (- i) y5 (* y4 b))
(fma (- k) y (* j t))
(fma
(fma (- a) y1 (* y0 c))
(fma (- y3) z (* y2 x))
(fma
(- (fma (- i) y1 (* y0 b)))
(fma (- k) z (* j x))
(* (fma (- i) c (* b a)) (fma (- t) z (* y x))))))))
(* (fma (+ (* (- b) a) (* i c)) z (fma t_2 j (* (- y2) t_1))) t))))
double code(double x, double y, double z, double t, double 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 = (y4 * b) - (y5 * i);
double tmp;
if (((((((((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)) * t_2)) - (((t * y2) - (y * y3)) * t_1)) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))) <= ((double) INFINITY)) {
tmp = fma(fma(-y3, j, (y2 * k)), fma(-y0, y5, (y4 * y1)), fma(-fma(-a, y5, (y4 * c)), fma(-y3, y, (y2 * t)), fma(fma(-i, y5, (y4 * b)), fma(-k, y, (j * t)), fma(fma(-a, y1, (y0 * c)), fma(-y3, z, (y2 * x)), fma(-fma(-i, y1, (y0 * b)), fma(-k, z, (j * x)), (fma(-i, c, (b * a)) * fma(-t, z, (y * x))))))));
} else {
tmp = fma(((-b * a) + (i * c)), z, fma(t_2, j, (-y2 * t_1))) * t;
}
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(y4 * b) - Float64(y5 * i)) tmp = 0.0 if (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)) * t_2)) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * t_1)) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) <= Inf) tmp = fma(fma(Float64(-y3), j, Float64(y2 * k)), fma(Float64(-y0), y5, Float64(y4 * y1)), fma(Float64(-fma(Float64(-a), y5, Float64(y4 * c))), fma(Float64(-y3), y, Float64(y2 * t)), fma(fma(Float64(-i), y5, Float64(y4 * b)), fma(Float64(-k), y, Float64(j * t)), fma(fma(Float64(-a), y1, Float64(y0 * c)), fma(Float64(-y3), z, Float64(y2 * x)), fma(Float64(-fma(Float64(-i), y1, Float64(y0 * b))), fma(Float64(-k), z, Float64(j * x)), Float64(fma(Float64(-i), c, Float64(b * a)) * fma(Float64(-t), z, Float64(y * x)))))))); else tmp = Float64(fma(Float64(Float64(Float64(-b) * a) + Float64(i * c)), z, fma(t_2, j, Float64(Float64(-y2) * t_1))) * t); 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[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[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] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * t$95$1), $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], Infinity], N[(N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * N[((-y0) * y5 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] + N[((-N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision]) * N[((-y3) * y + N[(y2 * t), $MachinePrecision]), $MachinePrecision] + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision] + N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * N[((-y3) * z + N[(y2 * x), $MachinePrecision]), $MachinePrecision] + N[((-N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision]) * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] + N[(N[((-i) * c + N[(b * a), $MachinePrecision]), $MachinePrecision] * N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[((-b) * a), $MachinePrecision] + N[(i * c), $MachinePrecision]), $MachinePrecision] * z + N[(t$95$2 * j + N[((-y2) * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := y4 \cdot b - y5 \cdot i\\
\mathbf{if}\;\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 t\_2\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot t\_1\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y3, j, y2 \cdot k\right), \mathsf{fma}\left(-y0, y5, y4 \cdot y1\right), \mathsf{fma}\left(-\mathsf{fma}\left(-a, y5, y4 \cdot c\right), \mathsf{fma}\left(-y3, y, y2 \cdot t\right), \mathsf{fma}\left(\mathsf{fma}\left(-i, y5, y4 \cdot b\right), \mathsf{fma}\left(-k, y, j \cdot t\right), \mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), \mathsf{fma}\left(-y3, z, y2 \cdot x\right), \mathsf{fma}\left(-\mathsf{fma}\left(-i, y1, y0 \cdot b\right), \mathsf{fma}\left(-k, z, j \cdot x\right), \mathsf{fma}\left(-i, c, b \cdot a\right) \cdot \mathsf{fma}\left(-t, z, y \cdot x\right)\right)\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(-b\right) \cdot a + i \cdot c, z, \mathsf{fma}\left(t\_2, j, \left(-y2\right) \cdot t\_1\right)\right) \cdot t\\
\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 97.6%
Applied rewrites97.6%
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 t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.0%
Final simplification63.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y x) (* t z)))
(t_2 (- (* y4 c) (* y5 a)))
(t_3
(*
(fma
(- (* y4 y1) (* y5 y0))
k
(fma (- (* y0 c) (* y1 a)) x (* (- t) t_2)))
y2)))
(if (<= c -8.5e+123)
(*
(fma (+ (* (- y4) b) (* y5 i)) k (fma (- (* b a) (* i c)) x (* t_2 y3)))
y)
(if (<= c -2.26e+67)
(*
(fma
(fma (- y3) z (* x y2))
(- a)
(fma (fma (- j) y3 (* k y2)) y4 (* (fma (- k) z (* j x)) i)))
y1)
(if (<= c -1.45e-133)
t_3
(if (<= c 2.9e-166)
(*
(fma
t_1
a
(fma (- (* j t) (* k y)) y4 (* (- y0) (- (* j x) (* k z)))))
b)
(if (<= c 3.3e+63)
t_3
(*
(- c)
(fma
(+ (* (- y2) x) (* y3 z))
y0
(fma t_1 i (* (- (* y2 t) (* y3 y)) y4)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y * x) - (t * z);
double t_2 = (y4 * c) - (y5 * a);
double t_3 = fma(((y4 * y1) - (y5 * y0)), k, fma(((y0 * c) - (y1 * a)), x, (-t * t_2))) * y2;
double tmp;
if (c <= -8.5e+123) {
tmp = fma(((-y4 * b) + (y5 * i)), k, fma(((b * a) - (i * c)), x, (t_2 * y3))) * y;
} else if (c <= -2.26e+67) {
tmp = fma(fma(-y3, z, (x * y2)), -a, fma(fma(-j, y3, (k * y2)), y4, (fma(-k, z, (j * x)) * i))) * y1;
} else if (c <= -1.45e-133) {
tmp = t_3;
} else if (c <= 2.9e-166) {
tmp = fma(t_1, a, fma(((j * t) - (k * y)), y4, (-y0 * ((j * x) - (k * z))))) * b;
} else if (c <= 3.3e+63) {
tmp = t_3;
} else {
tmp = -c * fma(((-y2 * x) + (y3 * z)), y0, fma(t_1, i, (((y2 * t) - (y3 * y)) * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y * x) - Float64(t * z)) t_2 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_3 = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), x, Float64(Float64(-t) * t_2))) * y2) tmp = 0.0 if (c <= -8.5e+123) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(t_2 * y3))) * y); elseif (c <= -2.26e+67) tmp = Float64(fma(fma(Float64(-y3), z, Float64(x * y2)), Float64(-a), fma(fma(Float64(-j), y3, Float64(k * y2)), y4, Float64(fma(Float64(-k), z, Float64(j * x)) * i))) * y1); elseif (c <= -1.45e-133) tmp = t_3; elseif (c <= 2.9e-166) tmp = Float64(fma(t_1, a, fma(Float64(Float64(j * t) - Float64(k * y)), y4, Float64(Float64(-y0) * Float64(Float64(j * x) - Float64(k * z))))) * b); elseif (c <= 3.3e+63) tmp = t_3; else tmp = Float64(Float64(-c) * fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), y0, fma(t_1, i, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * x + N[((-t) * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -8.5e+123], N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(t$95$2 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[c, -2.26e+67], N[(N[(N[((-y3) * z + N[(x * y2), $MachinePrecision]), $MachinePrecision] * (-a) + N[(N[((-j) * y3 + N[(k * y2), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[c, -1.45e-133], t$95$3, If[LessEqual[c, 2.9e-166], N[(N[(t$95$1 * a + N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * y4 + N[((-y0) * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[c, 3.3e+63], t$95$3, N[((-c) * N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot x - t \cdot z\\
t_2 := y4 \cdot c - y5 \cdot a\\
t_3 := \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, x, \left(-t\right) \cdot t\_2\right)\right) \cdot y2\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{+123}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, t\_2 \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;c \leq -2.26 \cdot 10^{+67}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y3, z, x \cdot y2\right), -a, \mathsf{fma}\left(\mathsf{fma}\left(-j, y3, k \cdot y2\right), y4, \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-133}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 2.9 \cdot 10^{-166}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(j \cdot t - k \cdot y, y4, \left(-y0\right) \cdot \left(j \cdot x - k \cdot z\right)\right)\right) \cdot b\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{+63}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\left(-c\right) \cdot \mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, y0, \mathsf{fma}\left(t\_1, i, \left(y2 \cdot t - y3 \cdot y\right) \cdot y4\right)\right)\\
\end{array}
\end{array}
if c < -8.5e123Initial program 27.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.1%
if -8.5e123 < c < -2.26000000000000009e67Initial program 27.1%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
Applied rewrites73.3%
if -2.26000000000000009e67 < c < -1.4499999999999999e-133 or 2.9e-166 < c < 3.3000000000000002e63Initial program 38.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.1%
if -1.4499999999999999e-133 < c < 2.9e-166Initial program 37.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
if 3.3000000000000002e63 < c Initial program 18.8%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites72.9%
Final simplification61.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* y4 c) (* y5 a)))
(t_3
(*
(fma
(+ (* (- y4) b) (* y5 i))
k
(fma (- (* b a) (* i c)) x (* t_2 y3)))
y)))
(if (<= y -7.2e+111)
t_3
(if (<= y -1.05e-97)
(*
(fma (- (* y x) (* t z)) a (fma t_1 y4 (* (- y0) (- (* j x) (* k z)))))
b)
(if (<= y -2.4e-141)
(* (* a (fma (- x) y1 (* t y5))) y2)
(if (<= y 5.3e-87)
(*
(fma
(- (* y4 y1) (* y5 y0))
k
(fma (- (* y0 c) (* y1 a)) x (* (- t) t_2)))
y2)
(if (<= y 9e+186)
(*
(fma
t_1
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- c) (- (* y2 t) (* y3 y)))))
y4)
t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (y4 * c) - (y5 * a);
double t_3 = fma(((-y4 * b) + (y5 * i)), k, fma(((b * a) - (i * c)), x, (t_2 * y3))) * y;
double tmp;
if (y <= -7.2e+111) {
tmp = t_3;
} else if (y <= -1.05e-97) {
tmp = fma(((y * x) - (t * z)), a, fma(t_1, y4, (-y0 * ((j * x) - (k * z))))) * b;
} else if (y <= -2.4e-141) {
tmp = (a * fma(-x, y1, (t * y5))) * y2;
} else if (y <= 5.3e-87) {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(((y0 * c) - (y1 * a)), x, (-t * t_2))) * y2;
} else if (y <= 9e+186) {
tmp = fma(t_1, b, fma(((y2 * k) - (y3 * j)), y1, (-c * ((y2 * t) - (y3 * y))))) * y4;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_3 = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(t_2 * y3))) * y) tmp = 0.0 if (y <= -7.2e+111) tmp = t_3; elseif (y <= -1.05e-97) tmp = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(t_1, y4, Float64(Float64(-y0) * Float64(Float64(j * x) - Float64(k * z))))) * b); elseif (y <= -2.4e-141) tmp = Float64(Float64(a * fma(Float64(-x), y1, Float64(t * y5))) * y2); elseif (y <= 5.3e-87) tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), x, Float64(Float64(-t) * t_2))) * y2); elseif (y <= 9e+186) tmp = Float64(fma(t_1, b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(-c) * Float64(Float64(y2 * t) - Float64(y3 * y))))) * y4); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(t$95$2 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -7.2e+111], t$95$3, If[LessEqual[y, -1.05e-97], N[(N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4 + N[((-y0) * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, -2.4e-141], N[(N[(a * N[((-x) * y1 + N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y, 5.3e-87], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * x + N[((-t) * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y, 9e+186], N[(N[(t$95$1 * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[((-c) * N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := y4 \cdot c - y5 \cdot a\\
t_3 := \mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, t\_2 \cdot y3\right)\right) \cdot y\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+111}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-97}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(t\_1, y4, \left(-y0\right) \cdot \left(j \cdot x - k \cdot z\right)\right)\right) \cdot b\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-141}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-x, y1, t \cdot y5\right)\right) \cdot y2\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-87}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, x, \left(-t\right) \cdot t\_2\right)\right) \cdot y2\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+186}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(-c\right) \cdot \left(y2 \cdot t - y3 \cdot y\right)\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -7.2000000000000004e111 or 9.0000000000000009e186 < y Initial program 20.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.5%
if -7.2000000000000004e111 < y < -1.0500000000000001e-97Initial program 39.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.7%
if -1.0500000000000001e-97 < y < -2.4000000000000001e-141Initial program 28.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites14.3%
Taylor expanded in a around inf
Applied rewrites71.7%
if -2.4000000000000001e-141 < y < 5.29999999999999986e-87Initial program 39.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
if 5.29999999999999986e-87 < y < 9.0000000000000009e186Initial program 32.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.0%
Final simplification61.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(+ (* (- y2) x) (* y3 z))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a))
(t_2 (* (* (- y3) (fma (- c) y (* j y1))) y4)))
(if (<= y3 -9.6e+44)
t_2
(if (<= y3 -3e-213)
t_1
(if (<= y3 -6e-302)
(* c (* y2 (fma (- t) y4 (* x y0))))
(if (<= y3 4.8e+25)
(*
(- c)
(fma i (fma x y (* (- t) z)) (* y0 (fma (- x) y2 (* y3 z)))))
(if (<= y3 1.15e+198) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((-y2 * x) + (y3 * z)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
double t_2 = (-y3 * fma(-c, y, (j * y1))) * y4;
double tmp;
if (y3 <= -9.6e+44) {
tmp = t_2;
} else if (y3 <= -3e-213) {
tmp = t_1;
} else if (y3 <= -6e-302) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else if (y3 <= 4.8e+25) {
tmp = -c * fma(i, fma(x, y, (-t * z)), (y0 * fma(-x, y2, (y3 * z))));
} else if (y3 <= 1.15e+198) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a) t_2 = Float64(Float64(Float64(-y3) * fma(Float64(-c), y, Float64(j * y1))) * y4) tmp = 0.0 if (y3 <= -9.6e+44) tmp = t_2; elseif (y3 <= -3e-213) tmp = t_1; elseif (y3 <= -6e-302) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); elseif (y3 <= 4.8e+25) tmp = Float64(Float64(-c) * fma(i, fma(x, y, Float64(Float64(-t) * z)), Float64(y0 * fma(Float64(-x), y2, Float64(y3 * z))))); elseif (y3 <= 1.15e+198) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $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]}, Block[{t$95$2 = N[(N[((-y3) * N[((-c) * y + N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y3, -9.6e+44], t$95$2, If[LessEqual[y3, -3e-213], t$95$1, If[LessEqual[y3, -6e-302], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+25], N[((-c) * N[(i * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[((-x) * y2 + N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.15e+198], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
t_2 := \left(\left(-y3\right) \cdot \mathsf{fma}\left(-c, y, j \cdot y1\right)\right) \cdot y4\\
\mathbf{if}\;y3 \leq -9.6 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y3 \leq -3 \cdot 10^{-213}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -6 \cdot 10^{-302}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+25}:\\
\;\;\;\;\left(-c\right) \cdot \mathsf{fma}\left(i, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), y0 \cdot \mathsf{fma}\left(-x, y2, y3 \cdot z\right)\right)\\
\mathbf{elif}\;y3 \leq 1.15 \cdot 10^{+198}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y3 < -9.60000000000000053e44 or 1.15e198 < y3 Initial program 24.2%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in y3 around -inf
Applied rewrites61.9%
if -9.60000000000000053e44 < y3 < -2.99999999999999986e-213 or 4.79999999999999992e25 < y3 < 1.15e198Initial program 32.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.9%
if -2.99999999999999986e-213 < y3 < -5.99999999999999978e-302Initial program 23.2%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites39.6%
Taylor expanded in y3 around -inf
Applied rewrites5.3%
Taylor expanded in y2 around -inf
Applied rewrites58.7%
if -5.99999999999999978e-302 < y3 < 4.79999999999999992e25Initial program 42.9%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites49.3%
Taylor expanded in y4 around 0
Applied rewrites45.6%
Final simplification55.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- j) (- (* y0 b) (* y1 i)))))
x)))
(if (<= x -11000.0)
t_1
(if (<= x -6.5e-73)
(* (fma (+ (* (- y4) b) (* y5 i)) y (* (* b y0) z)) k)
(if (<= x 3.2e+38)
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- c) (- (* y2 t) (* y3 y)))))
y4)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (-j * ((y0 * b) - (y1 * i))))) * x;
double tmp;
if (x <= -11000.0) {
tmp = t_1;
} else if (x <= -6.5e-73) {
tmp = fma(((-y4 * b) + (y5 * i)), y, ((b * y0) * z)) * k;
} else if (x <= 3.2e+38) {
tmp = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (-c * ((y2 * t) - (y3 * y))))) * y4;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(-j) * Float64(Float64(y0 * b) - Float64(y1 * i))))) * x) tmp = 0.0 if (x <= -11000.0) tmp = t_1; elseif (x <= -6.5e-73) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), y, Float64(Float64(b * y0) * z)) * k); elseif (x <= 3.2e+38) tmp = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(-c) * Float64(Float64(y2 * t) - Float64(y3 * y))))) * y4); 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[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[((-j) * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -11000.0], t$95$1, If[LessEqual[x, -6.5e-73], N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * y + N[(N[(b * y0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[x, 3.2e+38], 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[((-c) * N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(-j\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right)\right) \cdot x\\
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-73}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, y, \left(b \cdot y0\right) \cdot z\right) \cdot k\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(-c\right) \cdot \left(y2 \cdot t - y3 \cdot y\right)\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -11000 or 3.19999999999999985e38 < x Initial program 25.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.6%
if -11000 < x < -6.4999999999999999e-73Initial program 39.1%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
Taylor expanded in b around inf
Applied rewrites66.8%
if -6.4999999999999999e-73 < x < 3.19999999999999985e38Initial program 38.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.6%
Final simplification57.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y0 b) (* y1 i))))
(if (<= t -1.02e+79)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t -1.72e-264)
(*
(fma
(+ (* (- y4) b) (* y5 i))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* t_1 z)))
k)
(if (<= t 165000.0)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- j) t_1)))
x)
(* (* t (fma (- c) y2 (* b j))) y4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * b) - (y1 * i);
double tmp;
if (t <= -1.02e+79) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= -1.72e-264) {
tmp = fma(((-y4 * b) + (y5 * i)), y, fma(((y4 * y1) - (y5 * y0)), y2, (t_1 * z))) * k;
} else if (t <= 165000.0) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (-j * t_1))) * x;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y0 * b) - Float64(y1 * i)) tmp = 0.0 if (t <= -1.02e+79) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= -1.72e-264) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(t_1 * z))) * k); elseif (t <= 165000.0) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(-j) * t_1))) * x); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e+79], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.72e-264], N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(t$95$1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 165000.0], 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[((-j) * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot b - y1 \cdot i\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -1.72 \cdot 10^{-264}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, t\_1 \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 165000:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(-j\right) \cdot t\_1\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -1.02000000000000006e79Initial program 17.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.1%
Taylor expanded in c around inf
Applied rewrites53.7%
if -1.02000000000000006e79 < t < -1.7200000000000001e-264Initial program 41.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.7%
if -1.7200000000000001e-264 < t < 165000Initial program 40.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.9%
if 165000 < t Initial program 26.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.4%
Taylor expanded in t around inf
Applied rewrites56.5%
Final simplification55.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.02e+79)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t -1.72e-264)
(*
(fma
(+ (* (- y4) b) (* y5 i))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
(if (<= t 2.25e+88)
(*
(fma
(+ (* (- y2) x) (* y3 z))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(* (* t (fma (- c) y2 (* b j))) y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1.02e+79) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= -1.72e-264) {
tmp = fma(((-y4 * b) + (y5 * i)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} else if (t <= 2.25e+88) {
tmp = fma(((-y2 * x) + (y3 * z)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -1.02e+79) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= -1.72e-264) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); elseif (t <= 2.25e+88) tmp = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.02e+79], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.72e-264], N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 2.25e+88], N[(N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $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], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -1.72 \cdot 10^{-264}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+88}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -1.02000000000000006e79Initial program 17.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.1%
Taylor expanded in c around inf
Applied rewrites53.7%
if -1.02000000000000006e79 < t < -1.7200000000000001e-264Initial program 41.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.7%
if -1.7200000000000001e-264 < t < 2.25e88Initial program 38.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
if 2.25e88 < t Initial program 25.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in t around inf
Applied rewrites63.8%
Final simplification54.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 3.4e-308)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(if (<= t 2.25e+88)
(*
(fma
(+ (* (- y2) x) (* y3 z))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(* (* t (fma (- c) y2 (* b j))) y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 3.4e-308) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else if (t <= 2.25e+88) {
tmp = fma(((-y2 * x) + (y3 * z)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 3.4e-308) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); elseif (t <= 2.25e+88) tmp = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-308], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 2.25e+88], N[(N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $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], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-308}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+88}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 3.39999999999999999e-308Initial program 39.5%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
Taylor expanded in y0 around inf
Applied rewrites57.5%
if 3.39999999999999999e-308 < t < 2.25e88Initial program 37.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
if 2.25e88 < t Initial program 25.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in t around inf
Applied rewrites63.8%
Final simplification51.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 3.4e-289)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(if (<= t 2.8e+57)
(* (- c) (fma i (fma x y (* (- t) z)) (* y0 (fma (- x) y2 (* y3 z)))))
(* (* t (fma (- c) y2 (* b j))) y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 3.4e-289) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else if (t <= 2.8e+57) {
tmp = -c * fma(i, fma(x, y, (-t * z)), (y0 * fma(-x, y2, (y3 * z))));
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 3.4e-289) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); elseif (t <= 2.8e+57) tmp = Float64(Float64(-c) * fma(i, fma(x, y, Float64(Float64(-t) * z)), Float64(y0 * fma(Float64(-x), y2, Float64(y3 * z))))); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-289], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 2.8e+57], N[((-c) * N[(i * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[((-x) * y2 + N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-289}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+57}:\\
\;\;\;\;\left(-c\right) \cdot \mathsf{fma}\left(i, \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right), y0 \cdot \mathsf{fma}\left(-x, y2, y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 3.40000000000000018e-289Initial program 38.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in y0 around inf
Applied rewrites57.0%
if 3.40000000000000018e-289 < t < 2.8e57Initial program 38.5%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites47.8%
Taylor expanded in y4 around 0
Applied rewrites42.2%
if 2.8e57 < t Initial program 25.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in t around inf
Applied rewrites59.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* (* (- t) y2) y4))))
(if (<= t -1.3e+270)
t_1
(if (<= t -2.1e+93)
(* c (* i (* t z)))
(if (<= t -7e-38)
(* (* c y3) (* y y4))
(if (<= t -1.02e-235)
(* (* (- a) (* x y2)) y1)
(if (<= t 1e-146)
(* (* c (* y y3)) y4)
(if (<= t 6.6e+28) (* (* (- j) (* y3 y4)) 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 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.1e+93) {
tmp = c * (i * (t * z));
} else if (t <= -7e-38) {
tmp = (c * y3) * (y * y4);
} else if (t <= -1.02e-235) {
tmp = (-a * (x * y2)) * y1;
} else if (t <= 1e-146) {
tmp = (c * (y * y3)) * y4;
} else if (t <= 6.6e+28) {
tmp = (-j * (y3 * y4)) * y1;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((-t * y2) * y4)
if (t <= (-1.3d+270)) then
tmp = t_1
else if (t <= (-2.1d+93)) then
tmp = c * (i * (t * z))
else if (t <= (-7d-38)) then
tmp = (c * y3) * (y * y4)
else if (t <= (-1.02d-235)) then
tmp = (-a * (x * y2)) * y1
else if (t <= 1d-146) then
tmp = (c * (y * y3)) * y4
else if (t <= 6.6d+28) then
tmp = (-j * (y3 * y4)) * y1
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.1e+93) {
tmp = c * (i * (t * z));
} else if (t <= -7e-38) {
tmp = (c * y3) * (y * y4);
} else if (t <= -1.02e-235) {
tmp = (-a * (x * y2)) * y1;
} else if (t <= 1e-146) {
tmp = (c * (y * y3)) * y4;
} else if (t <= 6.6e+28) {
tmp = (-j * (y3 * y4)) * y1;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((-t * y2) * y4) tmp = 0 if t <= -1.3e+270: tmp = t_1 elif t <= -2.1e+93: tmp = c * (i * (t * z)) elif t <= -7e-38: tmp = (c * y3) * (y * y4) elif t <= -1.02e-235: tmp = (-a * (x * y2)) * y1 elif t <= 1e-146: tmp = (c * (y * y3)) * y4 elif t <= 6.6e+28: tmp = (-j * (y3 * y4)) * 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(c * Float64(Float64(Float64(-t) * y2) * y4)) tmp = 0.0 if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.1e+93) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (t <= -7e-38) tmp = Float64(Float64(c * y3) * Float64(y * y4)); elseif (t <= -1.02e-235) tmp = Float64(Float64(Float64(-a) * Float64(x * y2)) * y1); elseif (t <= 1e-146) tmp = Float64(Float64(c * Float64(y * y3)) * y4); elseif (t <= 6.6e+28) tmp = Float64(Float64(Float64(-j) * Float64(y3 * y4)) * y1); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((-t * y2) * y4); tmp = 0.0; if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.1e+93) tmp = c * (i * (t * z)); elseif (t <= -7e-38) tmp = (c * y3) * (y * y4); elseif (t <= -1.02e-235) tmp = (-a * (x * y2)) * y1; elseif (t <= 1e-146) tmp = (c * (y * y3)) * y4; elseif (t <= 6.6e+28) tmp = (-j * (y3 * y4)) * y1; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[((-t) * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+270], t$95$1, If[LessEqual[t, -2.1e+93], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7e-38], N[(N[(c * y3), $MachinePrecision] * N[(y * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.02e-235], N[(N[((-a) * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 1e-146], N[(N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 6.6e+28], N[(N[((-j) * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(\left(\left(-t\right) \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+93}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-38}:\\
\;\;\;\;\left(c \cdot y3\right) \cdot \left(y \cdot y4\right)\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{-235}:\\
\;\;\;\;\left(\left(-a\right) \cdot \left(x \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;t \leq 10^{-146}:\\
\;\;\;\;\left(c \cdot \left(y \cdot y3\right)\right) \cdot y4\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+28}:\\
\;\;\;\;\left(\left(-j\right) \cdot \left(y3 \cdot y4\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.30000000000000006e270 or 6.6e28 < t Initial program 24.4%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.5%
Taylor expanded in c around inf
Applied rewrites48.1%
Taylor expanded in z around 0
Applied rewrites42.8%
if -1.30000000000000006e270 < t < -2.0999999999999998e93Initial program 20.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.9%
Taylor expanded in c around inf
Applied rewrites51.9%
Taylor expanded in z around inf
Applied rewrites39.9%
if -2.0999999999999998e93 < t < -7.0000000000000003e-38Initial program 39.9%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites36.6%
Taylor expanded in y3 around -inf
Applied rewrites41.5%
Taylor expanded in y around inf
Applied rewrites41.6%
if -7.0000000000000003e-38 < t < -1.02e-235Initial program 36.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in a around inf
Applied rewrites44.4%
Taylor expanded in x around inf
Applied rewrites37.8%
if -1.02e-235 < t < 1.00000000000000003e-146Initial program 43.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.4%
Taylor expanded in y3 around -inf
Applied rewrites34.5%
Taylor expanded in y around inf
Applied rewrites29.6%
if 1.00000000000000003e-146 < t < 6.6e28Initial program 36.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in j around inf
Applied rewrites37.3%
Taylor expanded in x around 0
Applied rewrites34.5%
Final simplification37.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 6.2e-284)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(if (<= t 2.4e-173)
(* (* y (fma (- b) k (* c y3))) y4)
(if (<= t 6.2e+32)
(* (- y0) (* y2 (fma (- c) x (* k y5))))
(if (<= t 2.5e+95)
(* (* a (fma (- x) y1 (* t y5))) y2)
(* (* t (fma (- c) y2 (* b j))) y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 6.2e-284) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else if (t <= 2.4e-173) {
tmp = (y * fma(-b, k, (c * y3))) * y4;
} else if (t <= 6.2e+32) {
tmp = -y0 * (y2 * fma(-c, x, (k * y5)));
} else if (t <= 2.5e+95) {
tmp = (a * fma(-x, y1, (t * y5))) * y2;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 6.2e-284) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); elseif (t <= 2.4e-173) tmp = Float64(Float64(y * fma(Float64(-b), k, Float64(c * y3))) * y4); elseif (t <= 6.2e+32) tmp = Float64(Float64(-y0) * Float64(y2 * fma(Float64(-c), x, Float64(k * y5)))); elseif (t <= 2.5e+95) tmp = Float64(Float64(a * fma(Float64(-x), y1, Float64(t * y5))) * y2); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e-284], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 2.4e-173], N[(N[(y * N[((-b) * k + N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 6.2e+32], N[((-y0) * N[(y2 * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e+95], N[(N[(a * N[((-x) * y1 + N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-284}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-173}:\\
\;\;\;\;\left(y \cdot \mathsf{fma}\left(-b, k, c \cdot y3\right)\right) \cdot y4\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+32}:\\
\;\;\;\;\left(-y0\right) \cdot \left(y2 \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+95}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-x, y1, t \cdot y5\right)\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 6.1999999999999996e-284Initial program 37.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
Taylor expanded in y0 around inf
Applied rewrites56.0%
if 6.1999999999999996e-284 < t < 2.40000000000000017e-173Initial program 43.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.0%
Taylor expanded in y around inf
Applied rewrites45.0%
if 2.40000000000000017e-173 < t < 6.19999999999999986e32Initial program 35.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in y0 around -inf
Applied rewrites46.6%
if 6.19999999999999986e32 < t < 2.50000000000000012e95Initial program 28.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.3%
Taylor expanded in a around inf
Applied rewrites65.3%
if 2.50000000000000012e95 < t Initial program 26.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.4%
Taylor expanded in t around inf
Applied rewrites63.7%
Final simplification53.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* (* (- t) y2) y4))))
(if (<= t -1.3e+270)
t_1
(if (<= t -2.1e+93)
(* c (* i (* t z)))
(if (<= t -7e-38)
(* (* c y3) (* y y4))
(if (<= t -1.02e-235)
(* (* (- a) (* x y2)) y1)
(if (<= t 3.7e-37) (* (* c (* y y3)) y4) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.1e+93) {
tmp = c * (i * (t * z));
} else if (t <= -7e-38) {
tmp = (c * y3) * (y * y4);
} else if (t <= -1.02e-235) {
tmp = (-a * (x * y2)) * y1;
} else if (t <= 3.7e-37) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((-t * y2) * y4)
if (t <= (-1.3d+270)) then
tmp = t_1
else if (t <= (-2.1d+93)) then
tmp = c * (i * (t * z))
else if (t <= (-7d-38)) then
tmp = (c * y3) * (y * y4)
else if (t <= (-1.02d-235)) then
tmp = (-a * (x * y2)) * y1
else if (t <= 3.7d-37) then
tmp = (c * (y * y3)) * y4
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.1e+93) {
tmp = c * (i * (t * z));
} else if (t <= -7e-38) {
tmp = (c * y3) * (y * y4);
} else if (t <= -1.02e-235) {
tmp = (-a * (x * y2)) * y1;
} else if (t <= 3.7e-37) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((-t * y2) * y4) tmp = 0 if t <= -1.3e+270: tmp = t_1 elif t <= -2.1e+93: tmp = c * (i * (t * z)) elif t <= -7e-38: tmp = (c * y3) * (y * y4) elif t <= -1.02e-235: tmp = (-a * (x * y2)) * y1 elif t <= 3.7e-37: tmp = (c * (y * y3)) * y4 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(Float64(-t) * y2) * y4)) tmp = 0.0 if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.1e+93) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (t <= -7e-38) tmp = Float64(Float64(c * y3) * Float64(y * y4)); elseif (t <= -1.02e-235) tmp = Float64(Float64(Float64(-a) * Float64(x * y2)) * y1); elseif (t <= 3.7e-37) tmp = Float64(Float64(c * Float64(y * y3)) * y4); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((-t * y2) * y4); tmp = 0.0; if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.1e+93) tmp = c * (i * (t * z)); elseif (t <= -7e-38) tmp = (c * y3) * (y * y4); elseif (t <= -1.02e-235) tmp = (-a * (x * y2)) * y1; elseif (t <= 3.7e-37) tmp = (c * (y * y3)) * y4; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[((-t) * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+270], t$95$1, If[LessEqual[t, -2.1e+93], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7e-38], N[(N[(c * y3), $MachinePrecision] * N[(y * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.02e-235], N[(N[((-a) * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 3.7e-37], N[(N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(\left(\left(-t\right) \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{+93}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-38}:\\
\;\;\;\;\left(c \cdot y3\right) \cdot \left(y \cdot y4\right)\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{-235}:\\
\;\;\;\;\left(\left(-a\right) \cdot \left(x \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-37}:\\
\;\;\;\;\left(c \cdot \left(y \cdot y3\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.30000000000000006e270 or 3.7e-37 < t Initial program 24.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in c around inf
Applied rewrites48.1%
Taylor expanded in z around 0
Applied rewrites41.1%
if -1.30000000000000006e270 < t < -2.0999999999999998e93Initial program 20.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.9%
Taylor expanded in c around inf
Applied rewrites51.9%
Taylor expanded in z around inf
Applied rewrites39.9%
if -2.0999999999999998e93 < t < -7.0000000000000003e-38Initial program 39.9%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites36.6%
Taylor expanded in y3 around -inf
Applied rewrites41.5%
Taylor expanded in y around inf
Applied rewrites41.6%
if -7.0000000000000003e-38 < t < -1.02e-235Initial program 36.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in a around inf
Applied rewrites44.4%
Taylor expanded in x around inf
Applied rewrites37.8%
if -1.02e-235 < t < 3.7e-37Initial program 42.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.7%
Taylor expanded in y3 around -inf
Applied rewrites37.8%
Taylor expanded in y around inf
Applied rewrites25.9%
Final simplification35.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y0 (fma (- y2) y5 (* b z))) k)))
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 6.2e-284)
t_1
(if (<= t 2.4e-173)
(* (* y (fma (- b) k (* c y3))) y4)
(if (<= t 7.5e-81) t_1 (* (* t (fma (- c) y2 (* b j))) y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * fma(-y2, y5, (b * z))) * k;
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 6.2e-284) {
tmp = t_1;
} else if (t <= 2.4e-173) {
tmp = (y * fma(-b, k, (c * y3))) * y4;
} else if (t <= 7.5e-81) {
tmp = t_1;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 6.2e-284) tmp = t_1; elseif (t <= 2.4e-173) tmp = Float64(Float64(y * fma(Float64(-b), k, Float64(c * y3))) * y4); elseif (t <= 7.5e-81) tmp = t_1; else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]}, If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e-284], t$95$1, If[LessEqual[t, 2.4e-173], N[(N[(y * N[((-b) * k + N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[t, 7.5e-81], t$95$1, N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-284}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-173}:\\
\;\;\;\;\left(y \cdot \mathsf{fma}\left(-b, k, c \cdot y3\right)\right) \cdot y4\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 6.1999999999999996e-284 or 2.40000000000000017e-173 < t < 7.50000000000000018e-81Initial program 36.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.5%
Taylor expanded in y0 around inf
Applied rewrites53.8%
if 6.1999999999999996e-284 < t < 2.40000000000000017e-173Initial program 43.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.0%
Taylor expanded in y around inf
Applied rewrites45.0%
if 7.50000000000000018e-81 < t Initial program 29.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in t around inf
Applied rewrites53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 5e-284)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(if (<= t 7.5e-81)
(* (* (- y3) (fma (- c) y (* j y1))) y4)
(* (* t (fma (- c) y2 (* b j))) y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 5e-284) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else if (t <= 7.5e-81) {
tmp = (-y3 * fma(-c, y, (j * y1))) * y4;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 5e-284) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); elseif (t <= 7.5e-81) tmp = Float64(Float64(Float64(-y3) * fma(Float64(-c), y, Float64(j * y1))) * y4); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e-284], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 7.5e-81], N[(N[((-y3) * N[((-c) * y + N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-284}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-81}:\\
\;\;\;\;\left(\left(-y3\right) \cdot \mathsf{fma}\left(-c, y, j \cdot y1\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 4.99999999999999973e-284Initial program 37.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
Taylor expanded in y0 around inf
Applied rewrites56.0%
if 4.99999999999999973e-284 < t < 7.50000000000000018e-81Initial program 39.1%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in y3 around -inf
Applied rewrites44.7%
if 7.50000000000000018e-81 < t Initial program 29.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in t around inf
Applied rewrites53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* t (fma (- y2) y4 (* i z))))))
(if (<= t -8e-78)
t_1
(if (<= t 8e-104)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(if (<= t 5.5e+96) t_1 (* (* j (fma b y4 (* (- i) y5))) t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * fma(-y2, y4, (i * z)));
double tmp;
if (t <= -8e-78) {
tmp = t_1;
} else if (t <= 8e-104) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else if (t <= 5.5e+96) {
tmp = t_1;
} else {
tmp = (j * fma(b, y4, (-i * y5))) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))) tmp = 0.0 if (t <= -8e-78) tmp = t_1; elseif (t <= 8e-104) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); elseif (t <= 5.5e+96) tmp = t_1; else tmp = Float64(Float64(j * fma(b, y4, Float64(Float64(-i) * y5))) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e-78], t$95$1, If[LessEqual[t, 8e-104], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 5.5e+96], t$95$1, N[(N[(j * N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 8 \cdot 10^{-104}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right)\right) \cdot t\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78 or 7.99999999999999941e-104 < t < 5.5000000000000002e96Initial program 30.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in c around inf
Applied rewrites46.1%
if -7.99999999999999999e-78 < t < 7.99999999999999941e-104Initial program 38.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.8%
Taylor expanded in y0 around inf
Applied rewrites45.1%
if 5.5000000000000002e96 < t Initial program 26.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.6%
Taylor expanded in j around inf
Applied rewrites54.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* t (fma (- y2) y4 (* i z))))))
(if (<= t -2.05e-79)
t_1
(if (<= t 4.6e-88)
(* (* k (fma (- y0) y2 (* i y))) y5)
(if (<= t 5.5e+96) t_1 (* (* j (fma b y4 (* (- i) y5))) t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * fma(-y2, y4, (i * z)));
double tmp;
if (t <= -2.05e-79) {
tmp = t_1;
} else if (t <= 4.6e-88) {
tmp = (k * fma(-y0, y2, (i * y))) * y5;
} else if (t <= 5.5e+96) {
tmp = t_1;
} else {
tmp = (j * fma(b, y4, (-i * y5))) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))) tmp = 0.0 if (t <= -2.05e-79) tmp = t_1; elseif (t <= 4.6e-88) tmp = Float64(Float64(k * fma(Float64(-y0), y2, Float64(i * y))) * y5); elseif (t <= 5.5e+96) tmp = t_1; else tmp = Float64(Float64(j * fma(b, y4, Float64(Float64(-i) * y5))) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.05e-79], t$95$1, If[LessEqual[t, 4.6e-88], N[(N[(k * N[((-y0) * y2 + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[t, 5.5e+96], t$95$1, N[(N[(j * N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{if}\;t \leq -2.05 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-88}:\\
\;\;\;\;\left(k \cdot \mathsf{fma}\left(-y0, y2, i \cdot y\right)\right) \cdot y5\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right)\right) \cdot t\\
\end{array}
\end{array}
if t < -2.04999999999999997e-79 or 4.59999999999999972e-88 < t < 5.5000000000000002e96Initial program 30.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.9%
Taylor expanded in c around inf
Applied rewrites47.3%
if -2.04999999999999997e-79 < t < 4.59999999999999972e-88Initial program 38.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in k around inf
Applied rewrites35.4%
if 5.5000000000000002e96 < t Initial program 26.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites65.6%
Taylor expanded in j around inf
Applied rewrites54.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -3.3e+21)
(* (* k z) (fma b y0 (* (- i) y1)))
(if (<= i 1.95e-14)
(* c (* y2 (fma (- t) y4 (* x y0))))
(if (<= i 1e+123)
(* (* a (fma (- b) z (* y2 y5))) t)
(* (* c z) (fma i t (* (- y0) y3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -3.3e+21) {
tmp = (k * z) * fma(b, y0, (-i * y1));
} else if (i <= 1.95e-14) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else if (i <= 1e+123) {
tmp = (a * fma(-b, z, (y2 * y5))) * t;
} else {
tmp = (c * z) * fma(i, t, (-y0 * y3));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -3.3e+21) tmp = Float64(Float64(k * z) * fma(b, y0, Float64(Float64(-i) * y1))); elseif (i <= 1.95e-14) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); elseif (i <= 1e+123) tmp = Float64(Float64(a * fma(Float64(-b), z, Float64(y2 * y5))) * t); else tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -3.3e+21], N[(N[(k * z), $MachinePrecision] * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.95e-14], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1e+123], N[(N[(a * N[((-b) * z + N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{+21}:\\
\;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{-14}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 10^{+123}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-b, z, y2 \cdot y5\right)\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\end{array}
\end{array}
if i < -3.3e21Initial program 26.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in z around inf
Applied rewrites45.4%
if -3.3e21 < i < 1.9499999999999999e-14Initial program 34.0%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites42.6%
Taylor expanded in y3 around -inf
Applied rewrites22.3%
Taylor expanded in y2 around -inf
Applied rewrites42.1%
if 1.9499999999999999e-14 < i < 9.99999999999999978e122Initial program 41.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
Taylor expanded in a around inf
Applied rewrites42.6%
if 9.99999999999999978e122 < i Initial program 28.1%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites34.7%
Taylor expanded in z around -inf
Applied rewrites47.4%
Final simplification43.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.88e+28)
(* (* (- j) (* y3 y4)) y1)
(if (<= y3 -1.5e-160)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= y3 0.00185)
(* c (* y2 (fma (- t) y4 (* x y0))))
(* (* j y5) (fma y0 y3 (* (- i) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.88e+28) {
tmp = (-j * (y3 * y4)) * y1;
} else if (y3 <= -1.5e-160) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (y3 <= 0.00185) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else {
tmp = (j * y5) * fma(y0, y3, (-i * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.88e+28) tmp = Float64(Float64(Float64(-j) * Float64(y3 * y4)) * y1); elseif (y3 <= -1.5e-160) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (y3 <= 0.00185) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); else tmp = Float64(Float64(j * y5) * fma(y0, y3, Float64(Float64(-i) * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.88e+28], N[(N[((-j) * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y3, -1.5e-160], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 0.00185], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * y5), $MachinePrecision] * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.88 \cdot 10^{+28}:\\
\;\;\;\;\left(\left(-j\right) \cdot \left(y3 \cdot y4\right)\right) \cdot y1\\
\mathbf{elif}\;y3 \leq -1.5 \cdot 10^{-160}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;y3 \leq 0.00185:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot y5\right) \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\\
\end{array}
\end{array}
if y3 < -1.8799999999999999e28Initial program 28.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.6%
Taylor expanded in j around inf
Applied rewrites48.4%
Taylor expanded in x around 0
Applied rewrites46.2%
if -1.8799999999999999e28 < y3 < -1.49999999999999998e-160Initial program 30.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in c around inf
Applied rewrites36.4%
if -1.49999999999999998e-160 < y3 < 0.0018500000000000001Initial program 38.1%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites45.6%
Taylor expanded in y3 around -inf
Applied rewrites11.6%
Taylor expanded in y2 around -inf
Applied rewrites40.4%
if 0.0018500000000000001 < y3 Initial program 27.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.1%
Taylor expanded in j around inf
Applied rewrites45.4%
Final simplification41.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* t (fma (- y2) y4 (* i z))))))
(if (<= t -1e-88)
t_1
(if (<= t -7.2e-241)
(* (* (- a) (* x y2)) y1)
(if (<= t 4e-88) (* (* c x) (fma y0 y2 (* (- i) y))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (t * fma(-y2, y4, (i * z)));
double tmp;
if (t <= -1e-88) {
tmp = t_1;
} else if (t <= -7.2e-241) {
tmp = (-a * (x * y2)) * y1;
} else if (t <= 4e-88) {
tmp = (c * x) * fma(y0, y2, (-i * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))) tmp = 0.0 if (t <= -1e-88) tmp = t_1; elseif (t <= -7.2e-241) tmp = Float64(Float64(Float64(-a) * Float64(x * y2)) * y1); elseif (t <= 4e-88) tmp = Float64(Float64(c * x) * fma(y0, y2, Float64(Float64(-i) * y))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-88], t$95$1, If[LessEqual[t, -7.2e-241], N[(N[((-a) * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 4e-88], N[(N[(c * x), $MachinePrecision] * N[(y0 * y2 + N[((-i) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{if}\;t \leq -1 \cdot 10^{-88}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -7.2 \cdot 10^{-241}:\\
\;\;\;\;\left(\left(-a\right) \cdot \left(x \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;t \leq 4 \cdot 10^{-88}:\\
\;\;\;\;\left(c \cdot x\right) \cdot \mathsf{fma}\left(y0, y2, \left(-i\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -9.99999999999999934e-89 or 3.99999999999999974e-88 < t Initial program 29.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.9%
Taylor expanded in c around inf
Applied rewrites45.9%
if -9.99999999999999934e-89 < t < -7.1999999999999998e-241Initial program 29.1%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.7%
Taylor expanded in a around inf
Applied rewrites50.6%
Taylor expanded in x around inf
Applied rewrites42.5%
if -7.1999999999999998e-241 < t < 3.99999999999999974e-88Initial program 40.5%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites40.1%
Taylor expanded in x around -inf
Applied rewrites30.3%
Final simplification41.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -8.2e+177)
(* c (* i (* t z)))
(if (<= i 3e-20)
(* c (* y2 (fma (- t) y4 (* x y0))))
(if (<= i 2.4e+155)
(* (* c x) (fma y0 y2 (* (- i) y)))
(* (* (* i j) 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 (i <= -8.2e+177) {
tmp = c * (i * (t * z));
} else if (i <= 3e-20) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else if (i <= 2.4e+155) {
tmp = (c * x) * fma(y0, y2, (-i * y));
} else {
tmp = ((i * j) * 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 (i <= -8.2e+177) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (i <= 3e-20) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); elseif (i <= 2.4e+155) tmp = Float64(Float64(c * x) * fma(y0, y2, Float64(Float64(-i) * y))); else tmp = Float64(Float64(Float64(i * j) * 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[i, -8.2e+177], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3e-20], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e+155], N[(N[(c * x), $MachinePrecision] * N[(y0 * y2 + N[((-i) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(i * j), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8.2 \cdot 10^{+177}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-20}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+155}:\\
\;\;\;\;\left(c \cdot x\right) \cdot \mathsf{fma}\left(y0, y2, \left(-i\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot j\right) \cdot x\right) \cdot y1\\
\end{array}
\end{array}
if i < -8.20000000000000029e177Initial program 12.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites25.3%
Taylor expanded in c around inf
Applied rewrites54.9%
Taylor expanded in z around inf
Applied rewrites59.3%
if -8.20000000000000029e177 < i < 3.00000000000000029e-20Initial program 34.2%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites39.8%
Taylor expanded in y3 around -inf
Applied rewrites21.4%
Taylor expanded in y2 around -inf
Applied rewrites37.8%
if 3.00000000000000029e-20 < i < 2.40000000000000021e155Initial program 44.3%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites53.6%
Taylor expanded in x around -inf
Applied rewrites33.6%
if 2.40000000000000021e155 < i Initial program 21.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites44.2%
Taylor expanded in x around inf
Applied rewrites44.1%
Final simplification39.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= i -1e+28) (not (<= i 1.6e-14))) (* (* c z) (fma i t (* (- y0) y3))) (* c (* y2 (fma (- t) y4 (* x y0))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((i <= -1e+28) || !(i <= 1.6e-14)) {
tmp = (c * z) * fma(i, t, (-y0 * y3));
} else {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((i <= -1e+28) || !(i <= 1.6e-14)) tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); else tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[i, -1e+28], N[Not[LessEqual[i, 1.6e-14]], $MachinePrecision]], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1 \cdot 10^{+28} \lor \neg \left(i \leq 1.6 \cdot 10^{-14}\right):\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\end{array}
\end{array}
if i < -9.99999999999999958e27 or 1.6000000000000001e-14 < i Initial program 29.4%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites39.1%
Taylor expanded in z around -inf
Applied rewrites36.1%
if -9.99999999999999958e27 < i < 1.6000000000000001e-14Initial program 34.6%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites42.4%
Taylor expanded in y3 around -inf
Applied rewrites21.9%
Taylor expanded in y2 around -inf
Applied rewrites41.3%
Final simplification39.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* (* (- t) y2) y4))))
(if (<= t -1.3e+270)
t_1
(if (<= t -2.8e-172)
(* c (* i (* t z)))
(if (<= t 3.7e-37) (* (* c (* y y3)) y4) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.8e-172) {
tmp = c * (i * (t * z));
} else if (t <= 3.7e-37) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((-t * y2) * y4)
if (t <= (-1.3d+270)) then
tmp = t_1
else if (t <= (-2.8d-172)) then
tmp = c * (i * (t * z))
else if (t <= 3.7d-37) then
tmp = (c * (y * y3)) * y4
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((-t * y2) * y4);
double tmp;
if (t <= -1.3e+270) {
tmp = t_1;
} else if (t <= -2.8e-172) {
tmp = c * (i * (t * z));
} else if (t <= 3.7e-37) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * ((-t * y2) * y4) tmp = 0 if t <= -1.3e+270: tmp = t_1 elif t <= -2.8e-172: tmp = c * (i * (t * z)) elif t <= 3.7e-37: tmp = (c * (y * y3)) * y4 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(Float64(-t) * y2) * y4)) tmp = 0.0 if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.8e-172) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (t <= 3.7e-37) tmp = Float64(Float64(c * Float64(y * y3)) * y4); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * ((-t * y2) * y4); tmp = 0.0; if (t <= -1.3e+270) tmp = t_1; elseif (t <= -2.8e-172) tmp = c * (i * (t * z)); elseif (t <= 3.7e-37) tmp = (c * (y * y3)) * y4; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(N[((-t) * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+270], t$95$1, If[LessEqual[t, -2.8e-172], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.7e-37], N[(N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(\left(\left(-t\right) \cdot y2\right) \cdot y4\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-172}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 3.7 \cdot 10^{-37}:\\
\;\;\;\;\left(c \cdot \left(y \cdot y3\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.30000000000000006e270 or 3.7e-37 < t Initial program 24.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in c around inf
Applied rewrites48.1%
Taylor expanded in z around 0
Applied rewrites41.1%
if -1.30000000000000006e270 < t < -2.80000000000000011e-172Initial program 32.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.9%
Taylor expanded in c around inf
Applied rewrites40.0%
Taylor expanded in z around inf
Applied rewrites29.0%
if -2.80000000000000011e-172 < t < 3.7e-37Initial program 39.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.0%
Taylor expanded in y3 around -inf
Applied rewrites35.4%
Taylor expanded in y around inf
Applied rewrites24.6%
Final simplification31.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -8e-78)
(* c (* t (fma (- y2) y4 (* i z))))
(if (<= t 7.5e-81)
(* (* y0 (fma (- y2) y5 (* b z))) k)
(* (* t (fma (- c) y2 (* b j))) y4))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -8e-78) {
tmp = c * (t * fma(-y2, y4, (i * z)));
} else if (t <= 7.5e-81) {
tmp = (y0 * fma(-y2, y5, (b * z))) * k;
} else {
tmp = (t * fma(-c, y2, (b * j))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -8e-78) tmp = Float64(c * Float64(t * fma(Float64(-y2), y4, Float64(i * z)))); elseif (t <= 7.5e-81) tmp = Float64(Float64(y0 * fma(Float64(-y2), y5, Float64(b * z))) * k); else tmp = Float64(Float64(t * fma(Float64(-c), y2, Float64(b * j))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -8e-78], N[(c * N[(t * N[((-y2) * y4 + N[(i * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-81], N[(N[(y0 * N[((-y2) * y5 + N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], N[(N[(t * N[((-c) * y2 + N[(b * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-78}:\\
\;\;\;\;c \cdot \left(t \cdot \mathsf{fma}\left(-y2, y4, i \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-81}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(-y2, y5, b \cdot z\right)\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(-c, y2, b \cdot j\right)\right) \cdot y4\\
\end{array}
\end{array}
if t < -7.99999999999999999e-78Initial program 28.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in c around inf
Applied rewrites49.1%
if -7.99999999999999999e-78 < t < 7.50000000000000018e-81Initial program 38.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.8%
Taylor expanded in y0 around inf
Applied rewrites43.6%
if 7.50000000000000018e-81 < t Initial program 29.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in t around inf
Applied rewrites53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -3.3e+21)
(* (* k z) (fma b y0 (* (- i) y1)))
(if (<= i 1.6e-14)
(* c (* y2 (fma (- t) y4 (* x y0))))
(* (* c z) (fma i t (* (- y0) y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -3.3e+21) {
tmp = (k * z) * fma(b, y0, (-i * y1));
} else if (i <= 1.6e-14) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else {
tmp = (c * z) * fma(i, t, (-y0 * y3));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -3.3e+21) tmp = Float64(Float64(k * z) * fma(b, y0, Float64(Float64(-i) * y1))); elseif (i <= 1.6e-14) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); else tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -3.3e+21], N[(N[(k * z), $MachinePrecision] * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e-14], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{+21}:\\
\;\;\;\;\left(k \cdot z\right) \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-14}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\end{array}
\end{array}
if i < -3.3e21Initial program 26.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in z around inf
Applied rewrites45.4%
if -3.3e21 < i < 1.6000000000000001e-14Initial program 34.0%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites42.6%
Taylor expanded in y3 around -inf
Applied rewrites22.3%
Taylor expanded in y2 around -inf
Applied rewrites42.1%
if 1.6000000000000001e-14 < i Initial program 34.0%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites38.0%
Taylor expanded in z around -inf
Applied rewrites35.1%
Final simplification41.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -2.55e+32)
(* (* (- j) (* y3 y4)) y1)
(if (<= y3 3.15e+31)
(* c (* y2 (fma (- t) y4 (* x y0))))
(* (* c y3) (fma y y4 (* (- y0) z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -2.55e+32) {
tmp = (-j * (y3 * y4)) * y1;
} else if (y3 <= 3.15e+31) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else {
tmp = (c * y3) * fma(y, y4, (-y0 * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -2.55e+32) tmp = Float64(Float64(Float64(-j) * Float64(y3 * y4)) * y1); elseif (y3 <= 3.15e+31) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); else tmp = Float64(Float64(c * y3) * fma(y, y4, Float64(Float64(-y0) * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.55e+32], N[(N[((-j) * N[(y3 * y4), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y3, 3.15e+31], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * y3), $MachinePrecision] * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.55 \cdot 10^{+32}:\\
\;\;\;\;\left(\left(-j\right) \cdot \left(y3 \cdot y4\right)\right) \cdot y1\\
\mathbf{elif}\;y3 \leq 3.15 \cdot 10^{+31}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y3\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\\
\end{array}
\end{array}
if y3 < -2.55000000000000002e32Initial program 28.6%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.6%
Taylor expanded in j around inf
Applied rewrites48.4%
Taylor expanded in x around 0
Applied rewrites46.2%
if -2.55000000000000002e32 < y3 < 3.1499999999999999e31Initial program 35.3%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites42.6%
Taylor expanded in y3 around -inf
Applied rewrites13.6%
Taylor expanded in y2 around -inf
Applied rewrites36.5%
if 3.1499999999999999e31 < y3 Initial program 27.8%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites41.7%
Taylor expanded in y3 around -inf
Applied rewrites37.3%
Final simplification38.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -8.2e+177)
(* c (* i (* t z)))
(if (<= i 2.1e+155)
(* c (* y2 (fma (- t) y4 (* x y0))))
(* (* (* i j) 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 (i <= -8.2e+177) {
tmp = c * (i * (t * z));
} else if (i <= 2.1e+155) {
tmp = c * (y2 * fma(-t, y4, (x * y0)));
} else {
tmp = ((i * j) * 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 (i <= -8.2e+177) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (i <= 2.1e+155) tmp = Float64(c * Float64(y2 * fma(Float64(-t), y4, Float64(x * y0)))); else tmp = Float64(Float64(Float64(i * j) * 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[i, -8.2e+177], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.1e+155], N[(c * N[(y2 * N[((-t) * y4 + N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(i * j), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8.2 \cdot 10^{+177}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 2.1 \cdot 10^{+155}:\\
\;\;\;\;c \cdot \left(y2 \cdot \mathsf{fma}\left(-t, y4, x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot j\right) \cdot x\right) \cdot y1\\
\end{array}
\end{array}
if i < -8.20000000000000029e177Initial program 12.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites25.3%
Taylor expanded in c around inf
Applied rewrites54.9%
Taylor expanded in z around inf
Applied rewrites59.3%
if -8.20000000000000029e177 < i < 2.1e155Initial program 35.9%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites42.0%
Taylor expanded in y3 around -inf
Applied rewrites21.8%
Taylor expanded in y2 around -inf
Applied rewrites34.8%
if 2.1e155 < i Initial program 21.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites44.2%
Taylor expanded in x around inf
Applied rewrites44.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= i -2.45e+30) (* c (* i (* t z))) (if (<= i 5.3e+107) (* c (* (- t) (* y2 y4))) (* (* (* i j) 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 (i <= -2.45e+30) {
tmp = c * (i * (t * z));
} else if (i <= 5.3e+107) {
tmp = c * (-t * (y2 * y4));
} else {
tmp = ((i * j) * x) * y1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (i <= (-2.45d+30)) then
tmp = c * (i * (t * z))
else if (i <= 5.3d+107) then
tmp = c * (-t * (y2 * y4))
else
tmp = ((i * j) * x) * y1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -2.45e+30) {
tmp = c * (i * (t * z));
} else if (i <= 5.3e+107) {
tmp = c * (-t * (y2 * y4));
} else {
tmp = ((i * j) * x) * y1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if i <= -2.45e+30: tmp = c * (i * (t * z)) elif i <= 5.3e+107: tmp = c * (-t * (y2 * y4)) else: tmp = ((i * j) * 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 (i <= -2.45e+30) tmp = Float64(c * Float64(i * Float64(t * z))); elseif (i <= 5.3e+107) tmp = Float64(c * Float64(Float64(-t) * Float64(y2 * y4))); else tmp = Float64(Float64(Float64(i * j) * x) * y1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (i <= -2.45e+30) tmp = c * (i * (t * z)); elseif (i <= 5.3e+107) tmp = c * (-t * (y2 * y4)); else tmp = ((i * j) * x) * y1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.45e+30], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.3e+107], N[(c * N[((-t) * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(i * j), $MachinePrecision] * x), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.45 \cdot 10^{+30}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 5.3 \cdot 10^{+107}:\\
\;\;\;\;c \cdot \left(\left(-t\right) \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot j\right) \cdot x\right) \cdot y1\\
\end{array}
\end{array}
if i < -2.44999999999999992e30Initial program 25.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
Applied rewrites39.5%
Taylor expanded in z around inf
Applied rewrites37.6%
if -2.44999999999999992e30 < i < 5.3e107Initial program 35.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.8%
Taylor expanded in c around inf
Applied rewrites30.3%
Taylor expanded in z around inf
Applied rewrites11.3%
Taylor expanded in z around 0
Applied rewrites27.4%
if 5.3e107 < i Initial program 29.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.8%
Taylor expanded in j around inf
Applied rewrites39.1%
Taylor expanded in x around inf
Applied rewrites39.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y3 -2.6e+100) (not (<= y3 3.3e+36))) (* (* c (* y y3)) y4) (* c (* i (* t z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y3 <= -2.6e+100) || !(y3 <= 3.3e+36)) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y3 <= (-2.6d+100)) .or. (.not. (y3 <= 3.3d+36))) then
tmp = (c * (y * y3)) * y4
else
tmp = c * (i * (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y3 <= -2.6e+100) || !(y3 <= 3.3e+36)) {
tmp = (c * (y * y3)) * y4;
} else {
tmp = c * (i * (t * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y3 <= -2.6e+100) or not (y3 <= 3.3e+36): tmp = (c * (y * y3)) * y4 else: tmp = c * (i * (t * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y3 <= -2.6e+100) || !(y3 <= 3.3e+36)) tmp = Float64(Float64(c * Float64(y * y3)) * y4); else tmp = Float64(c * Float64(i * Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y3 <= -2.6e+100) || ~((y3 <= 3.3e+36))) tmp = (c * (y * y3)) * y4; else tmp = c * (i * (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y3, -2.6e+100], N[Not[LessEqual[y3, 3.3e+36]], $MachinePrecision]], N[(N[(c * N[(y * y3), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.6 \cdot 10^{+100} \lor \neg \left(y3 \leq 3.3 \cdot 10^{+36}\right):\\
\;\;\;\;\left(c \cdot \left(y \cdot y3\right)\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\end{array}
\end{array}
if y3 < -2.6000000000000002e100 or 3.2999999999999999e36 < y3 Initial program 27.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.3%
Taylor expanded in y3 around -inf
Applied rewrites51.6%
Taylor expanded in y around inf
Applied rewrites37.1%
if -2.6000000000000002e100 < y3 < 3.2999999999999999e36Initial program 34.9%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in c around inf
Applied rewrites35.6%
Taylor expanded in z around inf
Applied rewrites22.2%
Final simplification27.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y3 -2.6e+100) (* c (* (* y y3) y4)) (if (<= y3 4.5e+131) (* c (* i (* t z))) (* (* c y3) (* y y4)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -2.6e+100) {
tmp = c * ((y * y3) * y4);
} else if (y3 <= 4.5e+131) {
tmp = c * (i * (t * z));
} else {
tmp = (c * y3) * (y * y4);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-2.6d+100)) then
tmp = c * ((y * y3) * y4)
else if (y3 <= 4.5d+131) then
tmp = c * (i * (t * z))
else
tmp = (c * y3) * (y * y4)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -2.6e+100) {
tmp = c * ((y * y3) * y4);
} else if (y3 <= 4.5e+131) {
tmp = c * (i * (t * z));
} else {
tmp = (c * y3) * (y * y4);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -2.6e+100: tmp = c * ((y * y3) * y4) elif y3 <= 4.5e+131: tmp = c * (i * (t * z)) else: tmp = (c * y3) * (y * y4) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -2.6e+100) tmp = Float64(c * Float64(Float64(y * y3) * y4)); elseif (y3 <= 4.5e+131) tmp = Float64(c * Float64(i * Float64(t * z))); else tmp = Float64(Float64(c * y3) * Float64(y * y4)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -2.6e+100) tmp = c * ((y * y3) * y4); elseif (y3 <= 4.5e+131) tmp = c * (i * (t * z)); else tmp = (c * y3) * (y * y4); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -2.6e+100], N[(c * N[(N[(y * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.5e+131], N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * y3), $MachinePrecision] * N[(y * y4), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -2.6 \cdot 10^{+100}:\\
\;\;\;\;c \cdot \left(\left(y \cdot y3\right) \cdot y4\right)\\
\mathbf{elif}\;y3 \leq 4.5 \cdot 10^{+131}:\\
\;\;\;\;c \cdot \left(i \cdot \left(t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot y3\right) \cdot \left(y \cdot y4\right)\\
\end{array}
\end{array}
if y3 < -2.6000000000000002e100Initial program 25.0%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites39.7%
Taylor expanded in y3 around -inf
Applied rewrites44.1%
Taylor expanded in y around inf
Applied rewrites40.6%
if -2.6000000000000002e100 < y3 < 4.5000000000000002e131Initial program 34.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.9%
Taylor expanded in c around inf
Applied rewrites34.4%
Taylor expanded in z around inf
Applied rewrites22.4%
if 4.5000000000000002e131 < y3 Initial program 25.0%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites38.2%
Taylor expanded in y3 around -inf
Applied rewrites44.6%
Taylor expanded in y around inf
Applied rewrites41.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* c (* (* y y3) y4)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * ((y * y3) * y4);
}
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 = c * ((y * y3) * y4)
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 c * ((y * y3) * y4);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * ((y * y3) * y4)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(Float64(y * y3) * y4)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * ((y * y3) * y4); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(N[(y * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(\left(y \cdot y3\right) \cdot y4\right)
\end{array}
Initial program 32.4%
Taylor expanded in c around -inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
associate--l+N/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites41.0%
Taylor expanded in y3 around -inf
Applied rewrites21.9%
Taylor expanded in y around inf
Applied rewrites16.9%
(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 2024324
(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)))))