
(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 27 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 (- (* y4 c) (* y5 a)))
(t_2 (- (* j x) (* k z)))
(t_3 (- (* y0 c) (* y1 a)))
(t_4 (* (fma (- (* y4 y1) (* y5 y0)) k (fma t_3 x (* (- t) t_1))) y2)))
(if (<= y2 -225.0)
t_4
(if (<= y2 -6e-184)
(*
(fma
(+ (* (- y2) x) (* y3 z))
a
(fma (- (* y2 k) (* y3 j)) y4 (* t_2 i)))
y1)
(if (<= y2 -8.6e-293)
(* (fma (+ (* (- y4) y1) (* y5 y0)) j (fma (- z) t_3 (* t_1 y))) y3)
(if (<= y2 4.4e+104)
(*
(fma
(+ (* (- y4) b) (* y5 i))
k
(fma (- (* b a) (* i c)) x (* t_1 y3)))
y)
(if (<= y2 1.45e+232)
(*
(fma
(+ (* (- y) x) (* t z))
c
(fma (- y5) (- (* j t) (* k y)) (* t_2 y1)))
i)
t_4)))))))
double code(double x, double y, double z, double t, 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 = (j * x) - (k * z);
double t_3 = (y0 * c) - (y1 * a);
double t_4 = fma(((y4 * y1) - (y5 * y0)), k, fma(t_3, x, (-t * t_1))) * y2;
double tmp;
if (y2 <= -225.0) {
tmp = t_4;
} else if (y2 <= -6e-184) {
tmp = fma(((-y2 * x) + (y3 * z)), a, fma(((y2 * k) - (y3 * j)), y4, (t_2 * i))) * y1;
} else if (y2 <= -8.6e-293) {
tmp = fma(((-y4 * y1) + (y5 * y0)), j, fma(-z, t_3, (t_1 * y))) * y3;
} else if (y2 <= 4.4e+104) {
tmp = fma(((-y4 * b) + (y5 * i)), k, fma(((b * a) - (i * c)), x, (t_1 * y3))) * y;
} else if (y2 <= 1.45e+232) {
tmp = fma(((-y * x) + (t * z)), c, fma(-y5, ((j * t) - (k * y)), (t_2 * y1))) * i;
} else {
tmp = t_4;
}
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(j * x) - Float64(k * z)) t_3 = Float64(Float64(y0 * c) - Float64(y1 * a)) t_4 = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_3, x, Float64(Float64(-t) * t_1))) * y2) tmp = 0.0 if (y2 <= -225.0) tmp = t_4; elseif (y2 <= -6e-184) tmp = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(t_2 * i))) * y1); elseif (y2 <= -8.6e-293) tmp = Float64(fma(Float64(Float64(Float64(-y4) * y1) + Float64(y5 * y0)), j, fma(Float64(-z), t_3, Float64(t_1 * y))) * y3); elseif (y2 <= 4.4e+104) tmp = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(t_1 * y3))) * y); elseif (y2 <= 1.45e+232) tmp = Float64(fma(Float64(Float64(Float64(-y) * x) + Float64(t * z)), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(t_2 * y1))) * i); else tmp = t_4; 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[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x + N[((-t) * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[y2, -225.0], t$95$4, If[LessEqual[y2, -6e-184], 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[(t$95$2 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y2, -8.6e-293], N[(N[(N[(N[((-y4) * y1), $MachinePrecision] + N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * j + N[((-z) * t$95$3 + N[(t$95$1 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y2, 4.4e+104], 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$1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y2, 1.45e+232], N[(N[(N[(N[((-y) * x), $MachinePrecision] + N[(t * z), $MachinePrecision]), $MachinePrecision] * c + N[((-y5) * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], t$95$4]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := j \cdot x - k \cdot z\\
t_3 := y0 \cdot c - y1 \cdot a\\
t_4 := \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_3, x, \left(-t\right) \cdot t\_1\right)\right) \cdot y2\\
\mathbf{if}\;y2 \leq -225:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y2 \leq -6 \cdot 10^{-184}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, t\_2 \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y2 \leq -8.6 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot y1 + y5 \cdot y0, j, \mathsf{fma}\left(-z, t\_3, t\_1 \cdot y\right)\right) \cdot y3\\
\mathbf{elif}\;y2 \leq 4.4 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, t\_1 \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;y2 \leq 1.45 \cdot 10^{+232}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y\right) \cdot x + t \cdot z, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, t\_2 \cdot y1\right)\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y2 < -225 or 1.45000000000000012e232 < y2 Initial program 19.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.3%
if -225 < y2 < -5.99999999999999982e-184Initial program 25.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
if -5.99999999999999982e-184 < y2 < -8.5999999999999996e-293Initial program 35.7%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites75.1%
if -8.5999999999999996e-293 < y2 < 4.40000000000000001e104Initial program 30.9%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
if 4.40000000000000001e104 < y2 < 1.45000000000000012e232Initial program 14.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Final simplification59.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* 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))))))
(if (<= t_1 INFINITY)
t_1
(*
(fma
(+ (* (- y) x) (* t z))
c
(fma (- y5) (- (* j t) (* k y)) (* (- (* j x) (* k z)) y1)))
i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((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 tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(((-y * x) + (t * z)), c, fma(-y5, ((j * t) - (k * y)), (((j * x) - (k * z)) * y1))) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(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)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(Float64(Float64(-y) * x) + Float64(t * z)), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(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]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(N[((-y) * x), $MachinePrecision] + N[(t * z), $MachinePrecision]), $MachinePrecision] * c + N[((-y5) * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y\right) \cdot x + t \cdot z, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
\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 93.1%
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 i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Final simplification55.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* b a) (* i c)))
(t_2 (- (* y2 k) (* y3 j)))
(t_3 (- (* y4 c) (* y5 a)))
(t_4 (- (* y0 c) (* y1 a)))
(t_5 (* (fma (+ (* (- y4) b) (* y5 i)) k (fma t_1 x (* t_3 y3))) y)))
(if (<= y -3.3e+226)
(* (fma t_1 y (fma t_4 y2 (* (- j) (- (* y0 b) (* y1 i))))) x)
(if (<= y -3e+79)
t_5
(if (<= y -9.5e-76)
(*
(fma
(- (* j t) (* k y))
b
(fma t_2 y1 (* (- c) (- (* y2 t) (* y3 y)))))
y4)
(if (<= y 3.5e-33)
(* (fma (- (* y4 y1) (* y5 y0)) k (fma t_4 x (* (- t) t_3))) y2)
(if (<= y 2.25e+55)
(*
(fma
(+ (* (- y2) x) (* y3 z))
a
(fma t_2 y4 (* (- (* j x) (* k z)) i)))
y1)
t_5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * a) - (i * c);
double t_2 = (y2 * k) - (y3 * j);
double t_3 = (y4 * c) - (y5 * a);
double t_4 = (y0 * c) - (y1 * a);
double t_5 = fma(((-y4 * b) + (y5 * i)), k, fma(t_1, x, (t_3 * y3))) * y;
double tmp;
if (y <= -3.3e+226) {
tmp = fma(t_1, y, fma(t_4, y2, (-j * ((y0 * b) - (y1 * i))))) * x;
} else if (y <= -3e+79) {
tmp = t_5;
} else if (y <= -9.5e-76) {
tmp = fma(((j * t) - (k * y)), b, fma(t_2, y1, (-c * ((y2 * t) - (y3 * y))))) * y4;
} else if (y <= 3.5e-33) {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_4, x, (-t * t_3))) * y2;
} else if (y <= 2.25e+55) {
tmp = fma(((-y2 * x) + (y3 * z)), a, fma(t_2, y4, (((j * x) - (k * z)) * i))) * y1;
} else {
tmp = t_5;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * a) - Float64(i * c)) t_2 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_3 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_4 = Float64(Float64(y0 * c) - Float64(y1 * a)) t_5 = Float64(fma(Float64(Float64(Float64(-y4) * b) + Float64(y5 * i)), k, fma(t_1, x, Float64(t_3 * y3))) * y) tmp = 0.0 if (y <= -3.3e+226) tmp = Float64(fma(t_1, y, fma(t_4, y2, Float64(Float64(-j) * Float64(Float64(y0 * b) - Float64(y1 * i))))) * x); elseif (y <= -3e+79) tmp = t_5; elseif (y <= -9.5e-76) tmp = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(t_2, y1, Float64(Float64(-c) * Float64(Float64(y2 * t) - Float64(y3 * y))))) * y4); elseif (y <= 3.5e-33) tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_4, x, Float64(Float64(-t) * t_3))) * y2); elseif (y <= 2.25e+55) tmp = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), a, fma(t_2, y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = t_5; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(N[((-y4) * b), $MachinePrecision] + N[(y5 * i), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$1 * x + N[(t$95$3 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -3.3e+226], N[(N[(t$95$1 * y + N[(t$95$4 * y2 + N[((-j) * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, -3e+79], t$95$5, If[LessEqual[y, -9.5e-76], N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$2 * y1 + N[((-c) * N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y, 3.5e-33], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$4 * x + N[((-t) * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y, 2.25e+55], N[(N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$5]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot a - i \cdot c\\
t_2 := y2 \cdot k - y3 \cdot j\\
t_3 := y4 \cdot c - y5 \cdot a\\
t_4 := y0 \cdot c - y1 \cdot a\\
t_5 := \mathsf{fma}\left(\left(-y4\right) \cdot b + y5 \cdot i, k, \mathsf{fma}\left(t\_1, x, t\_3 \cdot y3\right)\right) \cdot y\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{+226}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y, \mathsf{fma}\left(t\_4, y2, \left(-j\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right)\right) \cdot x\\
\mathbf{elif}\;y \leq -3 \cdot 10^{+79}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{-76}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(t\_2, y1, \left(-c\right) \cdot \left(y2 \cdot t - y3 \cdot y\right)\right)\right) \cdot y4\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-33}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_4, x, \left(-t\right) \cdot t\_3\right)\right) \cdot y2\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, a, \mathsf{fma}\left(t\_2, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y < -3.29999999999999978e226Initial program 24.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.4%
if -3.29999999999999978e226 < y < -2.99999999999999974e79 or 2.24999999999999999e55 < y Initial program 19.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.5%
if -2.99999999999999974e79 < y < -9.49999999999999984e-76Initial program 23.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.3%
if -9.49999999999999984e-76 < y < 3.4999999999999999e-33Initial program 31.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.8%
if 3.4999999999999999e-33 < y < 2.24999999999999999e55Initial program 28.2%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Final simplification58.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -1.4e+221)
(* (* a (fma t y5 (* (- x) y1))) y2)
(if (<= a -2.4e+21)
(* (* a (fma x y (* (- t) z))) b)
(if (<= a -5.2e-15)
(* (* b (fma (- y) y4 (* y0 z))) k)
(if (<= a 1.75e-130)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- j) (- (* y0 b) (* y1 i)))))
x)
(if (<= a 9.8e+45)
(*
(fma j (fma y0 y5 (* (- y1) y4)) (* y (fma c y4 (* (- a) y5))))
y3)
(*
(fma
(+ (* (- y2) x) (* y3 z))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.4e+221) {
tmp = (a * fma(t, y5, (-x * y1))) * y2;
} else if (a <= -2.4e+21) {
tmp = (a * fma(x, y, (-t * z))) * b;
} else if (a <= -5.2e-15) {
tmp = (b * fma(-y, y4, (y0 * z))) * k;
} else if (a <= 1.75e-130) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (-j * ((y0 * b) - (y1 * i))))) * x;
} else if (a <= 9.8e+45) {
tmp = fma(j, fma(y0, y5, (-y1 * y4)), (y * fma(c, y4, (-a * y5)))) * y3;
} else {
tmp = fma(((-y2 * x) + (y3 * z)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.4e+221) tmp = Float64(Float64(a * fma(t, y5, Float64(Float64(-x) * y1))) * y2); elseif (a <= -2.4e+21) tmp = Float64(Float64(a * fma(x, y, Float64(Float64(-t) * z))) * b); elseif (a <= -5.2e-15) tmp = Float64(Float64(b * fma(Float64(-y), y4, Float64(y0 * z))) * k); elseif (a <= 1.75e-130) tmp = 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); elseif (a <= 9.8e+45) tmp = Float64(fma(j, fma(y0, y5, Float64(Float64(-y1) * y4)), Float64(y * fma(c, y4, Float64(Float64(-a) * y5)))) * y3); else tmp = 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); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.4e+221], N[(N[(a * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, -2.4e+21], N[(N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, -5.2e-15], N[(N[(b * N[((-y) * y4 + N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[a, 1.75e-130], 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[a, 9.8e+45], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision] + N[(y * N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], 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]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+221}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{+21}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-15}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(-y, y4, y0 \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-130}:\\
\;\;\;\;\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{elif}\;a \leq 9.8 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right), y \cdot \mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\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\\
\end{array}
\end{array}
if a < -1.39999999999999994e221Initial program 30.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
Taylor expanded in a around inf
Applied rewrites80.4%
if -1.39999999999999994e221 < a < -2.4e21Initial program 22.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in a around inf
Applied rewrites58.1%
if -2.4e21 < a < -5.20000000000000009e-15Initial program 16.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.7%
Taylor expanded in b around inf
Applied rewrites100.0%
if -5.20000000000000009e-15 < a < 1.75e-130Initial program 31.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.5%
if 1.75e-130 < a < 9.8000000000000004e45Initial program 17.5%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.4%
Taylor expanded in z around 0
Applied rewrites58.1%
if 9.8000000000000004e45 < a Initial program 23.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.1%
Final simplification58.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y0 c) (* y1 a))) (t_2 (- (* y x) (* t z))))
(if (<= a -7.6e+257)
(* (* a (fma t y5 (* (- x) y1))) y2)
(if (<= a -2.75e-33)
(*
(fma
t_2
a
(*
t
(fma j y4 (/ (- (fma (* k y) y4 (* y0 (fma j x (* (- k) z))))) t))))
b)
(if (<= a 1.2e-130)
(*
(fma
(- (* b a) (* i c))
y
(fma t_1 y2 (* (- j) (- (* y0 b) (* y1 i)))))
x)
(if (<= a 1.42e+35)
(*
(fma
(+ (* (- y4) y1) (* y5 y0))
j
(fma (- z) t_1 (* (- (* y4 c) (* y5 a)) y)))
y3)
(*
(fma
(+ (* (- y2) x) (* y3 z))
y1
(fma t_2 b (* (- (* y2 t) (* y3 y)) y5)))
a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * c) - (y1 * a);
double t_2 = (y * x) - (t * z);
double tmp;
if (a <= -7.6e+257) {
tmp = (a * fma(t, y5, (-x * y1))) * y2;
} else if (a <= -2.75e-33) {
tmp = fma(t_2, a, (t * fma(j, y4, (-fma((k * y), y4, (y0 * fma(j, x, (-k * z)))) / t)))) * b;
} else if (a <= 1.2e-130) {
tmp = fma(((b * a) - (i * c)), y, fma(t_1, y2, (-j * ((y0 * b) - (y1 * i))))) * x;
} else if (a <= 1.42e+35) {
tmp = fma(((-y4 * y1) + (y5 * y0)), j, fma(-z, t_1, (((y4 * c) - (y5 * a)) * y))) * y3;
} else {
tmp = fma(((-y2 * x) + (y3 * z)), y1, fma(t_2, b, (((y2 * t) - (y3 * y)) * y5))) * a;
}
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 * c) - Float64(y1 * a)) t_2 = Float64(Float64(y * x) - Float64(t * z)) tmp = 0.0 if (a <= -7.6e+257) tmp = Float64(Float64(a * fma(t, y5, Float64(Float64(-x) * y1))) * y2); elseif (a <= -2.75e-33) tmp = Float64(fma(t_2, a, Float64(t * fma(j, y4, Float64(Float64(-fma(Float64(k * y), y4, Float64(y0 * fma(j, x, Float64(Float64(-k) * z))))) / t)))) * b); elseif (a <= 1.2e-130) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(t_1, y2, Float64(Float64(-j) * Float64(Float64(y0 * b) - Float64(y1 * i))))) * x); elseif (a <= 1.42e+35) tmp = Float64(fma(Float64(Float64(Float64(-y4) * y1) + Float64(y5 * y0)), j, fma(Float64(-z), t_1, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y))) * y3); else tmp = Float64(fma(Float64(Float64(Float64(-y2) * x) + Float64(y3 * z)), y1, fma(t_2, b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); 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 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.6e+257], N[(N[(a * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, -2.75e-33], N[(N[(t$95$2 * a + N[(t * N[(j * y4 + N[((-N[(N[(k * y), $MachinePrecision] * y4 + N[(y0 * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 1.2e-130], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(t$95$1 * y2 + N[((-j) * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.42e+35], N[(N[(N[(N[((-y4) * y1), $MachinePrecision] + N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * j + N[((-z) * t$95$1 + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], N[(N[(N[(N[((-y2) * x), $MachinePrecision] + N[(y3 * z), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot c - y1 \cdot a\\
t_2 := y \cdot x - t \cdot z\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+257}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-33}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, a, t \cdot \mathsf{fma}\left(j, y4, \frac{-\mathsf{fma}\left(k \cdot y, y4, y0 \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right)}{t}\right)\right) \cdot b\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-130}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(t\_1, y2, \left(-j\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right)\right) \cdot x\\
\mathbf{elif}\;a \leq 1.42 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y4\right) \cdot y1 + y5 \cdot y0, j, \mathsf{fma}\left(-z, t\_1, \left(y4 \cdot c - y5 \cdot a\right) \cdot y\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y2\right) \cdot x + y3 \cdot z, y1, \mathsf{fma}\left(t\_2, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\end{array}
\end{array}
if a < -7.59999999999999996e257Initial program 41.7%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites92.4%
if -7.59999999999999996e257 < a < -2.75e-33Initial program 19.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
Taylor expanded in t around -inf
Applied rewrites60.8%
if -2.75e-33 < a < 1.19999999999999998e-130Initial program 32.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.1%
if 1.19999999999999998e-130 < a < 1.41999999999999991e35Initial program 15.8%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
if 1.41999999999999991e35 < a Initial program 24.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.8%
Final simplification58.6%
(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))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)))
(if (<= y1 -2.9e+114)
t_1
(if (<= y1 -3.5e-28)
(* (* x (fma (- j) y0 (* a y))) b)
(if (<= y1 2.5e-117)
(* (fma j (fma y0 y5 (* (- y1) y4)) (* y (fma c y4 (* (- a) y5)))) y3)
(if (<= y1 2.05e+229) t_1 (* (* i (fma (- y1) z (* y y5))) k)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((-y2 * x) + (y3 * z)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
double tmp;
if (y1 <= -2.9e+114) {
tmp = t_1;
} else if (y1 <= -3.5e-28) {
tmp = (x * fma(-j, y0, (a * y))) * b;
} else if (y1 <= 2.5e-117) {
tmp = fma(j, fma(y0, y5, (-y1 * y4)), (y * fma(c, y4, (-a * y5)))) * y3;
} else if (y1 <= 2.05e+229) {
tmp = t_1;
} else {
tmp = (i * fma(-y1, z, (y * y5))) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(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) tmp = 0.0 if (y1 <= -2.9e+114) tmp = t_1; elseif (y1 <= -3.5e-28) tmp = Float64(Float64(x * fma(Float64(-j), y0, Float64(a * y))) * b); elseif (y1 <= 2.5e-117) tmp = Float64(fma(j, fma(y0, y5, Float64(Float64(-y1) * y4)), Float64(y * fma(c, y4, Float64(Float64(-a) * y5)))) * y3); elseif (y1 <= 2.05e+229) tmp = t_1; else tmp = Float64(Float64(i * fma(Float64(-y1), z, Float64(y * y5))) * k); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[((-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]}, If[LessEqual[y1, -2.9e+114], t$95$1, If[LessEqual[y1, -3.5e-28], N[(N[(x * N[((-j) * y0 + N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, 2.5e-117], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision] + N[(y * N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y1, 2.05e+229], t$95$1, N[(N[(i * N[((-y1) * z + N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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{if}\;y1 \leq -2.9 \cdot 10^{+114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -3.5 \cdot 10^{-28}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(-j, y0, a \cdot y\right)\right) \cdot b\\
\mathbf{elif}\;y1 \leq 2.5 \cdot 10^{-117}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right), y \cdot \mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right)\right) \cdot y3\\
\mathbf{elif}\;y1 \leq 2.05 \cdot 10^{+229}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(-y1, z, y \cdot y5\right)\right) \cdot k\\
\end{array}
\end{array}
if y1 < -2.9e114 or 2.5e-117 < y1 < 2.0500000000000001e229Initial program 27.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.9%
if -2.9e114 < y1 < -3.5e-28Initial program 33.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.5%
Taylor expanded in z around inf
Applied rewrites37.5%
Taylor expanded in x around inf
Applied rewrites54.0%
if -3.5e-28 < y1 < 2.5e-117Initial program 23.2%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
Taylor expanded in z around 0
Applied rewrites53.3%
if 2.0500000000000001e229 < y1 Initial program 6.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites27.4%
Taylor expanded in i around inf
Applied rewrites60.8%
Final simplification54.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -1.4e+221)
(* (* a (fma t y5 (* (- x) y1))) y2)
(if (<= a -4.8e+35)
(* (* a (fma x y (* (- t) z))) b)
(if (<= a 4e+172)
(* (fma j (fma y0 y5 (* (- y1) y4)) (* y (fma c y4 (* (- a) y5)))) y3)
(* (* z (fma (- i) k (* a y3))) y1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.4e+221) {
tmp = (a * fma(t, y5, (-x * y1))) * y2;
} else if (a <= -4.8e+35) {
tmp = (a * fma(x, y, (-t * z))) * b;
} else if (a <= 4e+172) {
tmp = fma(j, fma(y0, y5, (-y1 * y4)), (y * fma(c, y4, (-a * y5)))) * y3;
} else {
tmp = (z * fma(-i, k, (a * y3))) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.4e+221) tmp = Float64(Float64(a * fma(t, y5, Float64(Float64(-x) * y1))) * y2); elseif (a <= -4.8e+35) tmp = Float64(Float64(a * fma(x, y, Float64(Float64(-t) * z))) * b); elseif (a <= 4e+172) tmp = Float64(fma(j, fma(y0, y5, Float64(Float64(-y1) * y4)), Float64(y * fma(c, y4, Float64(Float64(-a) * y5)))) * y3); else tmp = Float64(Float64(z * fma(Float64(-i), k, Float64(a * y3))) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.4e+221], N[(N[(a * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, -4.8e+35], N[(N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 4e+172], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision] + N[(y * N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], N[(N[(z * N[((-i) * k + N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+221}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{+35}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+172}:\\
\;\;\;\;\mathsf{fma}\left(j, \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right), y \cdot \mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot \mathsf{fma}\left(-i, k, a \cdot y3\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -1.39999999999999994e221Initial program 30.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
Taylor expanded in a around inf
Applied rewrites80.4%
if -1.39999999999999994e221 < a < -4.80000000000000029e35Initial program 20.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in a around inf
Applied rewrites59.5%
if -4.80000000000000029e35 < a < 4.0000000000000003e172Initial program 28.8%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in z around 0
Applied rewrites43.4%
if 4.0000000000000003e172 < a Initial program 10.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in z around inf
Applied rewrites60.5%
Final simplification50.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -1.4e+221)
(* (* a (fma t y5 (* (- x) y1))) y2)
(if (<= a -13500.0)
(* (* a (fma x y (* (- t) z))) b)
(if (<= a 3.9e-171)
(* (* c (fma x y0 (* (- t) y4))) y2)
(if (<= a 9.5e-130)
(* (* i x) (fma (- c) y (* j y1)))
(if (<= a 2.15e-52)
(* (* c (fma (- y0) z (* y y4))) y3)
(if (<= a 5.5e+168)
(* (* j (fma y0 y5 (* (- y1) y4))) y3)
(* (* z (fma (- i) k (* a y3))) y1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -1.4e+221) {
tmp = (a * fma(t, y5, (-x * y1))) * y2;
} else if (a <= -13500.0) {
tmp = (a * fma(x, y, (-t * z))) * b;
} else if (a <= 3.9e-171) {
tmp = (c * fma(x, y0, (-t * y4))) * y2;
} else if (a <= 9.5e-130) {
tmp = (i * x) * fma(-c, y, (j * y1));
} else if (a <= 2.15e-52) {
tmp = (c * fma(-y0, z, (y * y4))) * y3;
} else if (a <= 5.5e+168) {
tmp = (j * fma(y0, y5, (-y1 * y4))) * y3;
} else {
tmp = (z * fma(-i, k, (a * y3))) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -1.4e+221) tmp = Float64(Float64(a * fma(t, y5, Float64(Float64(-x) * y1))) * y2); elseif (a <= -13500.0) tmp = Float64(Float64(a * fma(x, y, Float64(Float64(-t) * z))) * b); elseif (a <= 3.9e-171) tmp = Float64(Float64(c * fma(x, y0, Float64(Float64(-t) * y4))) * y2); elseif (a <= 9.5e-130) tmp = Float64(Float64(i * x) * fma(Float64(-c), y, Float64(j * y1))); elseif (a <= 2.15e-52) tmp = Float64(Float64(c * fma(Float64(-y0), z, Float64(y * y4))) * y3); elseif (a <= 5.5e+168) tmp = Float64(Float64(j * fma(y0, y5, Float64(Float64(-y1) * y4))) * y3); else tmp = Float64(Float64(z * fma(Float64(-i), k, Float64(a * y3))) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -1.4e+221], N[(N[(a * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, -13500.0], N[(N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 3.9e-171], N[(N[(c * N[(x * y0 + N[((-t) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, 9.5e-130], N[(N[(i * x), $MachinePrecision] * N[((-c) * y + N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.15e-52], N[(N[(c * N[((-y0) * z + N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[a, 5.5e+168], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], N[(N[(z * N[((-i) * k + N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+221}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq -13500:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-171}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(x, y0, \left(-t\right) \cdot y4\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-130}:\\
\;\;\;\;\left(i \cdot x\right) \cdot \mathsf{fma}\left(-c, y, j \cdot y1\right)\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-52}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(-y0, z, y \cdot y4\right)\right) \cdot y3\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+168}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot \mathsf{fma}\left(-i, k, a \cdot y3\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -1.39999999999999994e221Initial program 30.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
Taylor expanded in a around inf
Applied rewrites80.4%
if -1.39999999999999994e221 < a < -13500Initial program 24.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in a around inf
Applied rewrites56.8%
if -13500 < a < 3.8999999999999998e-171Initial program 28.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in c around inf
Applied rewrites42.6%
if 3.8999999999999998e-171 < a < 9.49999999999999962e-130Initial program 40.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.2%
Taylor expanded in j around inf
Applied rewrites32.0%
Taylor expanded in x around inf
Applied rewrites60.7%
if 9.49999999999999962e-130 < a < 2.1500000000000002e-52Initial program 12.5%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.5%
Taylor expanded in j around inf
Applied rewrites31.9%
Taylor expanded in c around inf
Applied rewrites69.0%
if 2.1500000000000002e-52 < a < 5.5000000000000001e168Initial program 30.0%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in j around inf
Applied rewrites46.8%
if 5.5000000000000001e168 < a Initial program 10.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in z around inf
Applied rewrites60.5%
Final simplification53.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b z) (fma (- a) t (* k y0)))))
(if (<= b -180000000000.0)
t_1
(if (<= b -1.18e-256)
(* (* a (fma y3 z (* (- x) y2))) y1)
(if (<= b 2.15e-111)
(* a (* y3 (fma (- y) y5 (* y1 z))))
(if (<= b 7e+55)
(* (* c i) (fma t z (* (- x) y)))
(if (<= b 1.5e+149)
(* (* i (fma (- y1) z (* y y5))) k)
(if (<= b 1.1e+280) (* (* (* j y0) y5) y3) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * z) * fma(-a, t, (k * y0));
double tmp;
if (b <= -180000000000.0) {
tmp = t_1;
} else if (b <= -1.18e-256) {
tmp = (a * fma(y3, z, (-x * y2))) * y1;
} else if (b <= 2.15e-111) {
tmp = a * (y3 * fma(-y, y5, (y1 * z)));
} else if (b <= 7e+55) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (b <= 1.5e+149) {
tmp = (i * fma(-y1, z, (y * y5))) * k;
} else if (b <= 1.1e+280) {
tmp = ((j * y0) * y5) * y3;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * z) * fma(Float64(-a), t, Float64(k * y0))) tmp = 0.0 if (b <= -180000000000.0) tmp = t_1; elseif (b <= -1.18e-256) tmp = Float64(Float64(a * fma(y3, z, Float64(Float64(-x) * y2))) * y1); elseif (b <= 2.15e-111) tmp = Float64(a * Float64(y3 * fma(Float64(-y), y5, Float64(y1 * z)))); elseif (b <= 7e+55) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (b <= 1.5e+149) tmp = Float64(Float64(i * fma(Float64(-y1), z, Float64(y * y5))) * k); elseif (b <= 1.1e+280) tmp = Float64(Float64(Float64(j * y0) * y5) * y3); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * z), $MachinePrecision] * N[((-a) * t + N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -180000000000.0], t$95$1, If[LessEqual[b, -1.18e-256], N[(N[(a * N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[b, 2.15e-111], N[(a * N[(y3 * N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+55], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+149], N[(N[(i * N[((-y1) * z + N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[b, 1.1e+280], N[(N[(N[(j * y0), $MachinePrecision] * y5), $MachinePrecision] * y3), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot z\right) \cdot \mathsf{fma}\left(-a, t, k \cdot y0\right)\\
\mathbf{if}\;b \leq -180000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.18 \cdot 10^{-256}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-111}:\\
\;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(-y, y5, y1 \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+55}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+149}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(-y1, z, y \cdot y5\right)\right) \cdot k\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+280}:\\
\;\;\;\;\left(\left(j \cdot y0\right) \cdot y5\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.8e11 or 1.10000000000000008e280 < b Initial program 15.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.5%
Taylor expanded in z around inf
Applied rewrites44.4%
Taylor expanded in z around inf
Applied rewrites47.3%
if -1.8e11 < b < -1.18e-256Initial program 36.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in a around inf
Applied rewrites43.2%
if -1.18e-256 < b < 2.1499999999999999e-111Initial program 27.5%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in a around inf
Applied rewrites48.2%
if 2.1499999999999999e-111 < b < 7.00000000000000021e55Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites29.6%
Taylor expanded in c around inf
Applied rewrites43.2%
if 7.00000000000000021e55 < b < 1.50000000000000002e149Initial program 28.2%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.6%
Taylor expanded in i around inf
Applied rewrites64.8%
if 1.50000000000000002e149 < b < 1.10000000000000008e280Initial program 22.2%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites45.2%
Taylor expanded in y0 around inf
Applied rewrites52.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b z) (fma (- a) t (* k y0)))))
(if (<= b -180000000000.0)
t_1
(if (<= b -1.18e-256)
(* (* a (fma y3 z (* (- x) y2))) y1)
(if (<= b 2.15e-111)
(* a (* y3 (fma (- y) y5 (* y1 z))))
(if (<= b 2.9e+31)
(* (* c i) (fma t z (* (- x) y)))
(if (<= b 3.5e+150)
(* (* k y5) (fma (- y0) y2 (* i y)))
(if (<= b 1.1e+280) (* (* (* j y0) y5) y3) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * z) * fma(-a, t, (k * y0));
double tmp;
if (b <= -180000000000.0) {
tmp = t_1;
} else if (b <= -1.18e-256) {
tmp = (a * fma(y3, z, (-x * y2))) * y1;
} else if (b <= 2.15e-111) {
tmp = a * (y3 * fma(-y, y5, (y1 * z)));
} else if (b <= 2.9e+31) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (b <= 3.5e+150) {
tmp = (k * y5) * fma(-y0, y2, (i * y));
} else if (b <= 1.1e+280) {
tmp = ((j * y0) * y5) * y3;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * z) * fma(Float64(-a), t, Float64(k * y0))) tmp = 0.0 if (b <= -180000000000.0) tmp = t_1; elseif (b <= -1.18e-256) tmp = Float64(Float64(a * fma(y3, z, Float64(Float64(-x) * y2))) * y1); elseif (b <= 2.15e-111) tmp = Float64(a * Float64(y3 * fma(Float64(-y), y5, Float64(y1 * z)))); elseif (b <= 2.9e+31) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (b <= 3.5e+150) tmp = Float64(Float64(k * y5) * fma(Float64(-y0), y2, Float64(i * y))); elseif (b <= 1.1e+280) tmp = Float64(Float64(Float64(j * y0) * y5) * y3); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * z), $MachinePrecision] * N[((-a) * t + N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -180000000000.0], t$95$1, If[LessEqual[b, -1.18e-256], N[(N[(a * N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[b, 2.15e-111], N[(a * N[(y3 * N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+31], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e+150], N[(N[(k * y5), $MachinePrecision] * N[((-y0) * y2 + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.1e+280], N[(N[(N[(j * y0), $MachinePrecision] * y5), $MachinePrecision] * y3), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot z\right) \cdot \mathsf{fma}\left(-a, t, k \cdot y0\right)\\
\mathbf{if}\;b \leq -180000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.18 \cdot 10^{-256}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-111}:\\
\;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(-y, y5, y1 \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+31}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{+150}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \mathsf{fma}\left(-y0, y2, i \cdot y\right)\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+280}:\\
\;\;\;\;\left(\left(j \cdot y0\right) \cdot y5\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.8e11 or 1.10000000000000008e280 < b Initial program 15.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.5%
Taylor expanded in z around inf
Applied rewrites44.4%
Taylor expanded in z around inf
Applied rewrites47.3%
if -1.8e11 < b < -1.18e-256Initial program 36.8%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in a around inf
Applied rewrites43.2%
if -1.18e-256 < b < 2.1499999999999999e-111Initial program 27.5%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in a around inf
Applied rewrites48.2%
if 2.1499999999999999e-111 < b < 2.9e31Initial program 28.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites28.7%
Taylor expanded in c around inf
Applied rewrites49.3%
if 2.9e31 < b < 3.49999999999999984e150Initial program 22.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.3%
Taylor expanded in y5 around inf
Applied rewrites49.7%
if 3.49999999999999984e150 < b < 1.10000000000000008e280Initial program 22.2%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites45.2%
Taylor expanded in y0 around inf
Applied rewrites52.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -130000000000.0)
(* (* x (fma (- j) y0 (* a y))) b)
(if (<= b -1.18e-256)
(* (* a (fma y3 z (* (- x) y2))) y1)
(if (<= b 2.15e-111)
(* a (* y3 (fma (- y) y5 (* y1 z))))
(if (<= b 7e+55)
(* (* c i) (fma t z (* (- x) y)))
(if (<= b 3.1e+149)
(* (* i (fma (- y1) z (* y y5))) k)
(* (* j (fma (- x) y0 (* t y4))) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -130000000000.0) {
tmp = (x * fma(-j, y0, (a * y))) * b;
} else if (b <= -1.18e-256) {
tmp = (a * fma(y3, z, (-x * y2))) * y1;
} else if (b <= 2.15e-111) {
tmp = a * (y3 * fma(-y, y5, (y1 * z)));
} else if (b <= 7e+55) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (b <= 3.1e+149) {
tmp = (i * fma(-y1, z, (y * y5))) * k;
} else {
tmp = (j * fma(-x, y0, (t * y4))) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -130000000000.0) tmp = Float64(Float64(x * fma(Float64(-j), y0, Float64(a * y))) * b); elseif (b <= -1.18e-256) tmp = Float64(Float64(a * fma(y3, z, Float64(Float64(-x) * y2))) * y1); elseif (b <= 2.15e-111) tmp = Float64(a * Float64(y3 * fma(Float64(-y), y5, Float64(y1 * z)))); elseif (b <= 7e+55) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (b <= 3.1e+149) tmp = Float64(Float64(i * fma(Float64(-y1), z, Float64(y * y5))) * k); else tmp = Float64(Float64(j * fma(Float64(-x), y0, Float64(t * y4))) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -130000000000.0], N[(N[(x * N[((-j) * y0 + N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -1.18e-256], N[(N[(a * N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[b, 2.15e-111], N[(a * N[(y3 * N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+55], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e+149], N[(N[(i * N[((-y1) * z + N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], N[(N[(j * N[((-x) * y0 + N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -130000000000:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(-j, y0, a \cdot y\right)\right) \cdot b\\
\mathbf{elif}\;b \leq -1.18 \cdot 10^{-256}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right)\right) \cdot y1\\
\mathbf{elif}\;b \leq 2.15 \cdot 10^{-111}:\\
\;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(-y, y5, y1 \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+55}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{+149}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(-y1, z, y \cdot y5\right)\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-x, y0, t \cdot y4\right)\right) \cdot b\\
\end{array}
\end{array}
if b < -1.3e11Initial program 19.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.4%
Taylor expanded in z around inf
Applied rewrites42.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.3e11 < b < -1.18e-256Initial program 35.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.3%
Taylor expanded in a around inf
Applied rewrites43.9%
if -1.18e-256 < b < 2.1499999999999999e-111Initial program 27.5%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in a around inf
Applied rewrites48.2%
if 2.1499999999999999e-111 < b < 7.00000000000000021e55Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites29.6%
Taylor expanded in c around inf
Applied rewrites43.2%
if 7.00000000000000021e55 < b < 3.09999999999999987e149Initial program 28.2%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.6%
Taylor expanded in i around inf
Applied rewrites64.8%
if 3.09999999999999987e149 < b Initial program 17.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in j around inf
Applied rewrites46.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -3.1e+67)
(* (* k (fma (- i) z (* y2 y4))) y1)
(if (<= k -2.2e-29)
(* i (* j (fma (- t) y5 (* x y1))))
(if (<= k -2.4e-258)
(* (* j (fma y0 y5 (* (- y1) y4))) y3)
(if (<= k 1.58e-18)
(* (* (fma (- a) y5 (* c y4)) y3) y)
(if (<= k 6e+91)
(* (* j (fma (- x) y0 (* t y4))) b)
(* (* i (fma (- y1) z (* y y5))) k)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -3.1e+67) {
tmp = (k * fma(-i, z, (y2 * y4))) * y1;
} else if (k <= -2.2e-29) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else if (k <= -2.4e-258) {
tmp = (j * fma(y0, y5, (-y1 * y4))) * y3;
} else if (k <= 1.58e-18) {
tmp = (fma(-a, y5, (c * y4)) * y3) * y;
} else if (k <= 6e+91) {
tmp = (j * fma(-x, y0, (t * y4))) * b;
} else {
tmp = (i * fma(-y1, z, (y * y5))) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -3.1e+67) tmp = Float64(Float64(k * fma(Float64(-i), z, Float64(y2 * y4))) * y1); elseif (k <= -2.2e-29) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); elseif (k <= -2.4e-258) tmp = Float64(Float64(j * fma(y0, y5, Float64(Float64(-y1) * y4))) * y3); elseif (k <= 1.58e-18) tmp = Float64(Float64(fma(Float64(-a), y5, Float64(c * y4)) * y3) * y); elseif (k <= 6e+91) tmp = Float64(Float64(j * fma(Float64(-x), y0, Float64(t * y4))) * b); else tmp = Float64(Float64(i * fma(Float64(-y1), z, Float64(y * y5))) * k); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -3.1e+67], N[(N[(k * N[((-i) * z + N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[k, -2.2e-29], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.4e-258], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[k, 1.58e-18], N[(N[(N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[k, 6e+91], N[(N[(j * N[((-x) * y0 + N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(i * N[((-y1) * z + N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -3.1 \cdot 10^{+67}:\\
\;\;\;\;\left(k \cdot \mathsf{fma}\left(-i, z, y2 \cdot y4\right)\right) \cdot y1\\
\mathbf{elif}\;k \leq -2.2 \cdot 10^{-29}:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{elif}\;k \leq -2.4 \cdot 10^{-258}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right)\right) \cdot y3\\
\mathbf{elif}\;k \leq 1.58 \cdot 10^{-18}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, y5, c \cdot y4\right) \cdot y3\right) \cdot y\\
\mathbf{elif}\;k \leq 6 \cdot 10^{+91}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-x, y0, t \cdot y4\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(-y1, z, y \cdot y5\right)\right) \cdot k\\
\end{array}
\end{array}
if k < -3.09999999999999996e67Initial program 20.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.3%
Taylor expanded in k around inf
Applied rewrites52.1%
if -3.09999999999999996e67 < k < -2.1999999999999999e-29Initial program 27.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.2%
Taylor expanded in j around inf
Applied rewrites50.9%
if -2.1999999999999999e-29 < k < -2.4000000000000002e-258Initial program 33.1%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in j around inf
Applied rewrites47.4%
if -2.4000000000000002e-258 < k < 1.5800000000000001e-18Initial program 31.2%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.4%
Taylor expanded in y around inf
Applied rewrites35.4%
Applied rewrites43.0%
if 1.5800000000000001e-18 < k < 6.00000000000000012e91Initial program 20.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.1%
Taylor expanded in j around inf
Applied rewrites52.2%
if 6.00000000000000012e91 < k Initial program 16.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.3%
Taylor expanded in i around inf
Applied rewrites48.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -58000000.0)
(* (* a (fma x y (* (- t) z))) b)
(if (<= a -2e-50)
(* (* (fma (- a) y5 (* c y4)) y3) y)
(if (<= a 1.05e-275)
(* (* i (fma (- y1) z (* y y5))) k)
(if (<= a 2.15e-52)
(* (* c (fma (- y0) z (* y y4))) y3)
(if (<= a 5.5e+168)
(* (* j (fma y0 y5 (* (- y1) y4))) y3)
(* (* z (fma (- i) k (* a y3))) y1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -58000000.0) {
tmp = (a * fma(x, y, (-t * z))) * b;
} else if (a <= -2e-50) {
tmp = (fma(-a, y5, (c * y4)) * y3) * y;
} else if (a <= 1.05e-275) {
tmp = (i * fma(-y1, z, (y * y5))) * k;
} else if (a <= 2.15e-52) {
tmp = (c * fma(-y0, z, (y * y4))) * y3;
} else if (a <= 5.5e+168) {
tmp = (j * fma(y0, y5, (-y1 * y4))) * y3;
} else {
tmp = (z * fma(-i, k, (a * y3))) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -58000000.0) tmp = Float64(Float64(a * fma(x, y, Float64(Float64(-t) * z))) * b); elseif (a <= -2e-50) tmp = Float64(Float64(fma(Float64(-a), y5, Float64(c * y4)) * y3) * y); elseif (a <= 1.05e-275) tmp = Float64(Float64(i * fma(Float64(-y1), z, Float64(y * y5))) * k); elseif (a <= 2.15e-52) tmp = Float64(Float64(c * fma(Float64(-y0), z, Float64(y * y4))) * y3); elseif (a <= 5.5e+168) tmp = Float64(Float64(j * fma(y0, y5, Float64(Float64(-y1) * y4))) * y3); else tmp = Float64(Float64(z * fma(Float64(-i), k, Float64(a * y3))) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -58000000.0], N[(N[(a * N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, -2e-50], N[(N[(N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 1.05e-275], N[(N[(i * N[((-y1) * z + N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[a, 2.15e-52], N[(N[(c * N[((-y0) * z + N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[a, 5.5e+168], N[(N[(j * N[(y0 * y5 + N[((-y1) * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision], N[(N[(z * N[((-i) * k + N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -58000000:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-50}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, y5, c \cdot y4\right) \cdot y3\right) \cdot y\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-275}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(-y1, z, y \cdot y5\right)\right) \cdot k\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-52}:\\
\;\;\;\;\left(c \cdot \mathsf{fma}\left(-y0, z, y \cdot y4\right)\right) \cdot y3\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{+168}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y0, y5, \left(-y1\right) \cdot y4\right)\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot \mathsf{fma}\left(-i, k, a \cdot y3\right)\right) \cdot y1\\
\end{array}
\end{array}
if a < -5.8e7Initial program 26.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.9%
Taylor expanded in a around inf
Applied rewrites49.9%
if -5.8e7 < a < -2.00000000000000002e-50Initial program 21.4%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in y around inf
Applied rewrites51.6%
Applied rewrites65.3%
if -2.00000000000000002e-50 < a < 1.04999999999999994e-275Initial program 33.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.0%
Taylor expanded in i around inf
Applied rewrites41.5%
if 1.04999999999999994e-275 < a < 2.1500000000000002e-52Initial program 21.6%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.0%
Taylor expanded in j around inf
Applied rewrites28.8%
Taylor expanded in c around inf
Applied rewrites41.4%
if 2.1500000000000002e-52 < a < 5.5000000000000001e168Initial program 30.0%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in j around inf
Applied rewrites46.8%
if 5.5000000000000001e168 < a Initial program 10.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in z around inf
Applied rewrites60.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- a) y5 (* c y4)) y3) y)))
(if (<= y3 -6.2e+197)
t_1
(if (<= y3 -3.3e+14)
(* (* k y2) (fma y1 y4 (* (- y0) y5)))
(if (<= y3 3.6e-307)
(* i (* j (fma (- t) y5 (* x y1))))
(if (<= y3 4e+26) (* (* i z) (fma (- k) y1 (* c t))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-a, y5, (c * y4)) * y3) * y;
double tmp;
if (y3 <= -6.2e+197) {
tmp = t_1;
} else if (y3 <= -3.3e+14) {
tmp = (k * y2) * fma(y1, y4, (-y0 * y5));
} else if (y3 <= 3.6e-307) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else if (y3 <= 4e+26) {
tmp = (i * z) * fma(-k, y1, (c * t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(fma(Float64(-a), y5, Float64(c * y4)) * y3) * y) tmp = 0.0 if (y3 <= -6.2e+197) tmp = t_1; elseif (y3 <= -3.3e+14) tmp = Float64(Float64(k * y2) * fma(y1, y4, Float64(Float64(-y0) * y5))); elseif (y3 <= 3.6e-307) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); elseif (y3 <= 4e+26) tmp = Float64(Float64(i * z) * fma(Float64(-k), y1, Float64(c * t))); 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[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y3, -6.2e+197], t$95$1, If[LessEqual[y3, -3.3e+14], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.6e-307], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4e+26], N[(N[(i * z), $MachinePrecision] * N[((-k) * y1 + N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-a, y5, c \cdot y4\right) \cdot y3\right) \cdot y\\
\mathbf{if}\;y3 \leq -6.2 \cdot 10^{+197}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -3.3 \cdot 10^{+14}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \mathsf{fma}\left(y1, y4, \left(-y0\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 3.6 \cdot 10^{-307}:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{elif}\;y3 \leq 4 \cdot 10^{+26}:\\
\;\;\;\;\left(i \cdot z\right) \cdot \mathsf{fma}\left(-k, y1, c \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -6.2e197 or 4.00000000000000019e26 < y3 Initial program 15.1%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites43.9%
Applied rewrites47.2%
if -6.2e197 < y3 < -3.3e14Initial program 30.0%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
Taylor expanded in y2 around inf
Applied rewrites48.5%
if -3.3e14 < y3 < 3.60000000000000007e-307Initial program 39.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in j around inf
Applied rewrites41.2%
if 3.60000000000000007e-307 < y3 < 4.00000000000000019e26Initial program 22.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.9%
Taylor expanded in j around inf
Applied rewrites25.0%
Taylor expanded in z around inf
Applied rewrites35.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* (* y y3) y4))))
(if (<= y3 -1.36e+202)
t_1
(if (<= y3 -3.3e+14)
(* (* k y2) (fma y1 y4 (* (- y0) y5)))
(if (<= y3 3.6e-307)
(* i (* j (fma (- t) y5 (* x y1))))
(if (<= y3 2.6e+195) (* (* i z) (fma (- k) y1 (* c t))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * ((y * y3) * y4);
double tmp;
if (y3 <= -1.36e+202) {
tmp = t_1;
} else if (y3 <= -3.3e+14) {
tmp = (k * y2) * fma(y1, y4, (-y0 * y5));
} else if (y3 <= 3.6e-307) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else if (y3 <= 2.6e+195) {
tmp = (i * z) * fma(-k, y1, (c * t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(Float64(y * y3) * y4)) tmp = 0.0 if (y3 <= -1.36e+202) tmp = t_1; elseif (y3 <= -3.3e+14) tmp = Float64(Float64(k * y2) * fma(y1, y4, Float64(Float64(-y0) * y5))); elseif (y3 <= 3.6e-307) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); elseif (y3 <= 2.6e+195) tmp = Float64(Float64(i * z) * fma(Float64(-k), y1, Float64(c * t))); 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[(N[(y * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.36e+202], t$95$1, If[LessEqual[y3, -3.3e+14], N[(N[(k * y2), $MachinePrecision] * N[(y1 * y4 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.6e-307], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.6e+195], N[(N[(i * z), $MachinePrecision] * N[((-k) * y1 + N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(\left(y \cdot y3\right) \cdot y4\right)\\
\mathbf{if}\;y3 \leq -1.36 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -3.3 \cdot 10^{+14}:\\
\;\;\;\;\left(k \cdot y2\right) \cdot \mathsf{fma}\left(y1, y4, \left(-y0\right) \cdot y5\right)\\
\mathbf{elif}\;y3 \leq 3.6 \cdot 10^{-307}:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{elif}\;y3 \leq 2.6 \cdot 10^{+195}:\\
\;\;\;\;\left(i \cdot z\right) \cdot \mathsf{fma}\left(-k, y1, c \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -1.36e202 or 2.60000000000000002e195 < y3 Initial program 9.3%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.5%
Taylor expanded in y around inf
Applied rewrites48.8%
Taylor expanded in a around 0
Applied rewrites50.7%
if -1.36e202 < y3 < -3.3e14Initial program 30.0%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
Taylor expanded in y2 around inf
Applied rewrites48.5%
if -3.3e14 < y3 < 3.60000000000000007e-307Initial program 39.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in j around inf
Applied rewrites41.2%
if 3.60000000000000007e-307 < y3 < 2.60000000000000002e195Initial program 23.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.0%
Taylor expanded in j around inf
Applied rewrites23.4%
Taylor expanded in z around inf
Applied rewrites33.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -6.5e+123)
(* (* (* c y) y4) y3)
(if (<= y4 -6e+39)
(* (* (* j y0) y5) y3)
(if (<= y4 4.4e-295)
(* i (* (* k y) y5))
(if (<= y4 5.5e+30) (* (* z (* k y0)) b) (* (* j (* (- y1) y4)) y3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -6.5e+123) {
tmp = ((c * y) * y4) * y3;
} else if (y4 <= -6e+39) {
tmp = ((j * y0) * y5) * y3;
} else if (y4 <= 4.4e-295) {
tmp = i * ((k * y) * y5);
} else if (y4 <= 5.5e+30) {
tmp = (z * (k * y0)) * b;
} else {
tmp = (j * (-y1 * y4)) * y3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-6.5d+123)) then
tmp = ((c * y) * y4) * y3
else if (y4 <= (-6d+39)) then
tmp = ((j * y0) * y5) * y3
else if (y4 <= 4.4d-295) then
tmp = i * ((k * y) * y5)
else if (y4 <= 5.5d+30) then
tmp = (z * (k * y0)) * b
else
tmp = (j * (-y1 * y4)) * y3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -6.5e+123) {
tmp = ((c * y) * y4) * y3;
} else if (y4 <= -6e+39) {
tmp = ((j * y0) * y5) * y3;
} else if (y4 <= 4.4e-295) {
tmp = i * ((k * y) * y5);
} else if (y4 <= 5.5e+30) {
tmp = (z * (k * y0)) * b;
} else {
tmp = (j * (-y1 * y4)) * y3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -6.5e+123: tmp = ((c * y) * y4) * y3 elif y4 <= -6e+39: tmp = ((j * y0) * y5) * y3 elif y4 <= 4.4e-295: tmp = i * ((k * y) * y5) elif y4 <= 5.5e+30: tmp = (z * (k * y0)) * b else: tmp = (j * (-y1 * y4)) * y3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -6.5e+123) tmp = Float64(Float64(Float64(c * y) * y4) * y3); elseif (y4 <= -6e+39) tmp = Float64(Float64(Float64(j * y0) * y5) * y3); elseif (y4 <= 4.4e-295) tmp = Float64(i * Float64(Float64(k * y) * y5)); elseif (y4 <= 5.5e+30) tmp = Float64(Float64(z * Float64(k * y0)) * b); else tmp = Float64(Float64(j * Float64(Float64(-y1) * y4)) * y3); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -6.5e+123) tmp = ((c * y) * y4) * y3; elseif (y4 <= -6e+39) tmp = ((j * y0) * y5) * y3; elseif (y4 <= 4.4e-295) tmp = i * ((k * y) * y5); elseif (y4 <= 5.5e+30) tmp = (z * (k * y0)) * b; else tmp = (j * (-y1 * y4)) * y3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -6.5e+123], N[(N[(N[(c * y), $MachinePrecision] * y4), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y4, -6e+39], N[(N[(N[(j * y0), $MachinePrecision] * y5), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y4, 4.4e-295], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.5e+30], N[(N[(z * N[(k * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(j * N[((-y1) * y4), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -6.5 \cdot 10^{+123}:\\
\;\;\;\;\left(\left(c \cdot y\right) \cdot y4\right) \cdot y3\\
\mathbf{elif}\;y4 \leq -6 \cdot 10^{+39}:\\
\;\;\;\;\left(\left(j \cdot y0\right) \cdot y5\right) \cdot y3\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{-295}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{elif}\;y4 \leq 5.5 \cdot 10^{+30}:\\
\;\;\;\;\left(z \cdot \left(k \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \left(\left(-y1\right) \cdot y4\right)\right) \cdot y3\\
\end{array}
\end{array}
if y4 < -6.5000000000000001e123Initial program 19.6%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.6%
Taylor expanded in j around inf
Applied rewrites42.6%
Taylor expanded in c around inf
Applied rewrites58.4%
Taylor expanded in y around inf
Applied rewrites49.0%
if -6.5000000000000001e123 < y4 < -5.9999999999999999e39Initial program 0.0%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.4%
Taylor expanded in j around inf
Applied rewrites57.7%
Taylor expanded in y0 around inf
Applied rewrites71.8%
if -5.9999999999999999e39 < y4 < 4.4000000000000004e-295Initial program 28.9%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.4%
Taylor expanded in y5 around inf
Applied rewrites32.2%
Taylor expanded in y around inf
Applied rewrites28.8%
if 4.4000000000000004e-295 < y4 < 5.50000000000000025e30Initial program 30.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.9%
Taylor expanded in z around inf
Applied rewrites39.5%
Taylor expanded in t around 0
Applied rewrites27.3%
if 5.50000000000000025e30 < y4 Initial program 24.6%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.7%
Taylor expanded in j around inf
Applied rewrites40.1%
Taylor expanded in y0 around 0
Applied rewrites35.9%
Final simplification35.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -128000000000.0)
(* i (* j (fma (- t) y5 (* x y1))))
(if (<= y5 1.7e-253)
(* (* c i) (fma t z (* (- x) y)))
(if (<= y5 8.4e-93)
(* (* b z) (fma (- a) t (* k y0)))
(* (* (fma (- a) y5 (* c y4)) y3) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -128000000000.0) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else if (y5 <= 1.7e-253) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (y5 <= 8.4e-93) {
tmp = (b * z) * fma(-a, t, (k * y0));
} else {
tmp = (fma(-a, y5, (c * y4)) * y3) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -128000000000.0) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); elseif (y5 <= 1.7e-253) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (y5 <= 8.4e-93) tmp = Float64(Float64(b * z) * fma(Float64(-a), t, Float64(k * y0))); else tmp = Float64(Float64(fma(Float64(-a), y5, Float64(c * y4)) * y3) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -128000000000.0], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e-253], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8.4e-93], N[(N[(b * z), $MachinePrecision] * N[((-a) * t + N[(k * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -128000000000:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{-253}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;y5 \leq 8.4 \cdot 10^{-93}:\\
\;\;\;\;\left(b \cdot z\right) \cdot \mathsf{fma}\left(-a, t, k \cdot y0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, y5, c \cdot y4\right) \cdot y3\right) \cdot y\\
\end{array}
\end{array}
if y5 < -1.28e11Initial program 23.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites47.6%
if -1.28e11 < y5 < 1.69999999999999993e-253Initial program 31.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.2%
Taylor expanded in c around inf
Applied rewrites39.8%
if 1.69999999999999993e-253 < y5 < 8.4000000000000004e-93Initial program 21.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in z around inf
Applied rewrites49.6%
Taylor expanded in z around inf
Applied rewrites49.6%
if 8.4000000000000004e-93 < y5 Initial program 24.0%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in y around inf
Applied rewrites30.6%
Applied rewrites38.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -128000000000.0)
(* i (* j (fma (- t) y5 (* x y1))))
(if (<= y5 1.5e-254)
(* (* c i) (fma t z (* (- x) y)))
(if (<= y5 1.04e-19)
(* j (* y1 (fma (- y3) y4 (* i x))))
(* a (* y3 (fma (- y) y5 (* y1 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 (y5 <= -128000000000.0) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else if (y5 <= 1.5e-254) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (y5 <= 1.04e-19) {
tmp = j * (y1 * fma(-y3, y4, (i * x)));
} else {
tmp = a * (y3 * fma(-y, y5, (y1 * 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 (y5 <= -128000000000.0) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); elseif (y5 <= 1.5e-254) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (y5 <= 1.04e-19) tmp = Float64(j * Float64(y1 * fma(Float64(-y3), y4, Float64(i * x)))); else tmp = Float64(a * Float64(y3 * fma(Float64(-y), y5, Float64(y1 * z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -128000000000.0], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.5e-254], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.04e-19], N[(j * N[(y1 * N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y3 * N[((-y) * y5 + N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -128000000000:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 1.5 \cdot 10^{-254}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;y5 \leq 1.04 \cdot 10^{-19}:\\
\;\;\;\;j \cdot \left(y1 \cdot \mathsf{fma}\left(-y3, y4, i \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y3 \cdot \mathsf{fma}\left(-y, y5, y1 \cdot z\right)\right)\\
\end{array}
\end{array}
if y5 < -1.28e11Initial program 23.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in j around inf
Applied rewrites47.6%
if -1.28e11 < y5 < 1.50000000000000006e-254Initial program 31.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.2%
Taylor expanded in c around inf
Applied rewrites39.8%
if 1.50000000000000006e-254 < y5 < 1.03999999999999998e-19Initial program 25.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in j around inf
Applied rewrites35.6%
if 1.03999999999999998e-19 < y5 Initial program 22.2%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.0%
Taylor expanded in a around inf
Applied rewrites40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -8.5e+15)
(* (* c i) (fma t z (* (- x) y)))
(if (<= z 5.5e+83)
(* i (* j (fma (- t) y5 (* x y1))))
(* (* a (* (- t) z)) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.5e+15) {
tmp = (c * i) * fma(t, z, (-x * y));
} else if (z <= 5.5e+83) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else {
tmp = (a * (-t * z)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -8.5e+15) tmp = Float64(Float64(c * i) * fma(t, z, Float64(Float64(-x) * y))); elseif (z <= 5.5e+83) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); else tmp = Float64(Float64(a * Float64(Float64(-t) * z)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -8.5e+15], N[(N[(c * i), $MachinePrecision] * N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.5e+83], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+15}:\\
\;\;\;\;\left(c \cdot i\right) \cdot \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right)\\
\mathbf{elif}\;z \leq 5.5 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(\left(-t\right) \cdot z\right)\right) \cdot b\\
\end{array}
\end{array}
if z < -8.5e15Initial program 22.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in c around inf
Applied rewrites50.8%
if -8.5e15 < z < 5.4999999999999996e83Initial program 26.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in j around inf
Applied rewrites31.7%
if 5.4999999999999996e83 < z Initial program 25.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.0%
Taylor expanded in z around inf
Applied rewrites50.6%
Taylor expanded in t around inf
Applied rewrites42.6%
Final simplification37.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z 5.5e+83) (* i (* j (fma (- t) y5 (* x y1)))) (* (* a (* (- t) z)) b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= 5.5e+83) {
tmp = i * (j * fma(-t, y5, (x * y1)));
} else {
tmp = (a * (-t * z)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= 5.5e+83) tmp = Float64(i * Float64(j * fma(Float64(-t), y5, Float64(x * y1)))); else tmp = Float64(Float64(a * Float64(Float64(-t) * z)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, 5.5e+83], N[(i * N[(j * N[((-t) * y5 + N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 5.5 \cdot 10^{+83}:\\
\;\;\;\;i \cdot \left(j \cdot \mathsf{fma}\left(-t, y5, x \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(\left(-t\right) \cdot z\right)\right) \cdot b\\
\end{array}
\end{array}
if z < 5.4999999999999996e83Initial program 25.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.1%
Taylor expanded in j around inf
Applied rewrites31.6%
if 5.4999999999999996e83 < z Initial program 25.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.0%
Taylor expanded in z around inf
Applied rewrites50.6%
Taylor expanded in t around inf
Applied rewrites42.6%
Final simplification33.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y -1.38e+57) (not (<= y 9.2e+81))) (* (* (* c y) y4) y3) (* (* (* j y0) y5) 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 ((y <= -1.38e+57) || !(y <= 9.2e+81)) {
tmp = ((c * y) * y4) * y3;
} else {
tmp = ((j * y0) * y5) * y3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y <= (-1.38d+57)) .or. (.not. (y <= 9.2d+81))) then
tmp = ((c * y) * y4) * y3
else
tmp = ((j * y0) * y5) * y3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y <= -1.38e+57) || !(y <= 9.2e+81)) {
tmp = ((c * y) * y4) * y3;
} else {
tmp = ((j * y0) * y5) * y3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y <= -1.38e+57) or not (y <= 9.2e+81): tmp = ((c * y) * y4) * y3 else: tmp = ((j * y0) * y5) * 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 ((y <= -1.38e+57) || !(y <= 9.2e+81)) tmp = Float64(Float64(Float64(c * y) * y4) * y3); else tmp = Float64(Float64(Float64(j * y0) * y5) * y3); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y <= -1.38e+57) || ~((y <= 9.2e+81))) tmp = ((c * y) * y4) * y3; else tmp = ((j * y0) * y5) * y3; 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[y, -1.38e+57], N[Not[LessEqual[y, 9.2e+81]], $MachinePrecision]], N[(N[(N[(c * y), $MachinePrecision] * y4), $MachinePrecision] * y3), $MachinePrecision], N[(N[(N[(j * y0), $MachinePrecision] * y5), $MachinePrecision] * y3), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.38 \cdot 10^{+57} \lor \neg \left(y \leq 9.2 \cdot 10^{+81}\right):\\
\;\;\;\;\left(\left(c \cdot y\right) \cdot y4\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot y0\right) \cdot y5\right) \cdot y3\\
\end{array}
\end{array}
if y < -1.38e57 or 9.1999999999999995e81 < y Initial program 21.1%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in j around inf
Applied rewrites26.6%
Taylor expanded in c around inf
Applied rewrites41.7%
Taylor expanded in y around inf
Applied rewrites40.0%
if -1.38e57 < y < 9.1999999999999995e81Initial program 28.8%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.9%
Taylor expanded in j around inf
Applied rewrites33.3%
Taylor expanded in y0 around inf
Applied rewrites25.2%
Final simplification31.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y -4.3e+76) (not (<= y 2.15e+44))) (* (* (* c y) y4) y3) (* 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 ((y <= -4.3e+76) || !(y <= 2.15e+44)) {
tmp = ((c * y) * y4) * y3;
} 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 ((y <= (-4.3d+76)) .or. (.not. (y <= 2.15d+44))) then
tmp = ((c * y) * y4) * y3
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 ((y <= -4.3e+76) || !(y <= 2.15e+44)) {
tmp = ((c * y) * y4) * y3;
} 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 (y <= -4.3e+76) or not (y <= 2.15e+44): tmp = ((c * y) * y4) * y3 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 ((y <= -4.3e+76) || !(y <= 2.15e+44)) tmp = Float64(Float64(Float64(c * y) * y4) * y3); else tmp = Float64(i * Float64(Float64(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 ((y <= -4.3e+76) || ~((y <= 2.15e+44))) tmp = ((c * y) * y4) * y3; 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[Or[LessEqual[y, -4.3e+76], N[Not[LessEqual[y, 2.15e+44]], $MachinePrecision]], N[(N[(N[(c * y), $MachinePrecision] * y4), $MachinePrecision] * y3), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.3 \cdot 10^{+76} \lor \neg \left(y \leq 2.15 \cdot 10^{+44}\right):\\
\;\;\;\;\left(\left(c \cdot y\right) \cdot y4\right) \cdot y3\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\end{array}
\end{array}
if y < -4.29999999999999978e76 or 2.14999999999999991e44 < y Initial program 20.1%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.4%
Taylor expanded in j around inf
Applied rewrites29.7%
Taylor expanded in c around inf
Applied rewrites43.4%
Taylor expanded in y around inf
Applied rewrites40.0%
if -4.29999999999999978e76 < y < 2.14999999999999991e44Initial program 29.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in j around inf
Applied rewrites29.6%
Taylor expanded in x around inf
Applied rewrites22.7%
Final simplification30.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= x -31.5) (not (<= x 7800000000000.0))) (* i (* (* j x) y1)) (* i (* (* k y) y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -31.5) || !(x <= 7800000000000.0)) {
tmp = i * ((j * x) * y1);
} else {
tmp = i * ((k * y) * y5);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((x <= (-31.5d0)) .or. (.not. (x <= 7800000000000.0d0))) then
tmp = i * ((j * x) * y1)
else
tmp = i * ((k * y) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((x <= -31.5) || !(x <= 7800000000000.0)) {
tmp = i * ((j * x) * y1);
} else {
tmp = i * ((k * y) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (x <= -31.5) or not (x <= 7800000000000.0): tmp = i * ((j * x) * y1) else: tmp = i * ((k * y) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((x <= -31.5) || !(x <= 7800000000000.0)) tmp = Float64(i * Float64(Float64(j * x) * y1)); else tmp = Float64(i * Float64(Float64(k * y) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((x <= -31.5) || ~((x <= 7800000000000.0))) tmp = i * ((j * x) * y1); else tmp = i * ((k * y) * y5); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[x, -31.5], N[Not[LessEqual[x, 7800000000000.0]], $MachinePrecision]], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -31.5 \lor \neg \left(x \leq 7800000000000\right):\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\end{array}
\end{array}
if x < -31.5 or 7.8e12 < x Initial program 21.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in j around inf
Applied rewrites36.3%
Taylor expanded in x around inf
Applied rewrites32.3%
if -31.5 < x < 7.8e12Initial program 29.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.0%
Taylor expanded in y5 around inf
Applied rewrites27.6%
Taylor expanded in y around inf
Applied rewrites21.4%
Final simplification26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -3.55e+78) (* (* y y3) (* c y4)) (if (<= y 2.4e+44) (* i (* (* j x) y1)) (* 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) {
double tmp;
if (y <= -3.55e+78) {
tmp = (y * y3) * (c * y4);
} else if (y <= 2.4e+44) {
tmp = i * ((j * x) * y1);
} else {
tmp = c * ((y * y3) * 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 (y <= (-3.55d+78)) then
tmp = (y * y3) * (c * y4)
else if (y <= 2.4d+44) then
tmp = i * ((j * x) * y1)
else
tmp = c * ((y * y3) * 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 (y <= -3.55e+78) {
tmp = (y * y3) * (c * y4);
} else if (y <= 2.4e+44) {
tmp = i * ((j * x) * y1);
} else {
tmp = c * ((y * y3) * y4);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -3.55e+78: tmp = (y * y3) * (c * y4) elif y <= 2.4e+44: tmp = i * ((j * x) * y1) else: tmp = c * ((y * y3) * 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 (y <= -3.55e+78) tmp = Float64(Float64(y * y3) * Float64(c * y4)); elseif (y <= 2.4e+44) tmp = Float64(i * Float64(Float64(j * x) * y1)); else tmp = Float64(c * Float64(Float64(y * y3) * 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 (y <= -3.55e+78) tmp = (y * y3) * (c * y4); elseif (y <= 2.4e+44) tmp = i * ((j * x) * y1); else tmp = c * ((y * y3) * 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[y, -3.55e+78], N[(N[(y * y3), $MachinePrecision] * N[(c * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+44], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(y * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.55 \cdot 10^{+78}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \left(c \cdot y4\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(y \cdot y3\right) \cdot y4\right)\\
\end{array}
\end{array}
if y < -3.54999999999999996e78Initial program 20.7%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.0%
Taylor expanded in y around inf
Applied rewrites45.3%
Taylor expanded in a around 0
Applied rewrites38.1%
if -3.54999999999999996e78 < y < 2.40000000000000013e44Initial program 29.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in j around inf
Applied rewrites29.6%
Taylor expanded in x around inf
Applied rewrites22.7%
if 2.40000000000000013e44 < y Initial program 19.7%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y around inf
Applied rewrites38.6%
Taylor expanded in a around 0
Applied rewrites35.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -1.45e+81) (* (* k y5) (* i y)) (if (<= y 2.4e+44) (* i (* (* j x) y1)) (* 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) {
double tmp;
if (y <= -1.45e+81) {
tmp = (k * y5) * (i * y);
} else if (y <= 2.4e+44) {
tmp = i * ((j * x) * y1);
} else {
tmp = c * ((y * y3) * 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 (y <= (-1.45d+81)) then
tmp = (k * y5) * (i * y)
else if (y <= 2.4d+44) then
tmp = i * ((j * x) * y1)
else
tmp = c * ((y * y3) * 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 (y <= -1.45e+81) {
tmp = (k * y5) * (i * y);
} else if (y <= 2.4e+44) {
tmp = i * ((j * x) * y1);
} else {
tmp = c * ((y * y3) * y4);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.45e+81: tmp = (k * y5) * (i * y) elif y <= 2.4e+44: tmp = i * ((j * x) * y1) else: tmp = c * ((y * y3) * 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 (y <= -1.45e+81) tmp = Float64(Float64(k * y5) * Float64(i * y)); elseif (y <= 2.4e+44) tmp = Float64(i * Float64(Float64(j * x) * y1)); else tmp = Float64(c * Float64(Float64(y * y3) * 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 (y <= -1.45e+81) tmp = (k * y5) * (i * y); elseif (y <= 2.4e+44) tmp = i * ((j * x) * y1); else tmp = c * ((y * y3) * 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[y, -1.45e+81], N[(N[(k * y5), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+44], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(y * y3), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+81}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \left(i \cdot y\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+44}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(\left(y \cdot y3\right) \cdot y4\right)\\
\end{array}
\end{array}
if y < -1.45e81Initial program 21.0%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.9%
Taylor expanded in y5 around inf
Applied rewrites42.2%
Taylor expanded in y around inf
Applied rewrites36.4%
if -1.45e81 < y < 2.40000000000000013e44Initial program 29.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in j around inf
Applied rewrites30.1%
Taylor expanded in x around inf
Applied rewrites22.6%
if 2.40000000000000013e44 < y Initial program 19.7%
Taylor expanded in y3 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.4%
Taylor expanded in y around inf
Applied rewrites38.6%
Taylor expanded in a around 0
Applied rewrites35.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y -1.45e+81) (* (* k y5) (* i y)) (if (<= y 1.42e+26) (* i (* (* j x) y1)) (* i (* (* k y) y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -1.45e+81) {
tmp = (k * y5) * (i * y);
} else if (y <= 1.42e+26) {
tmp = i * ((j * x) * y1);
} else {
tmp = i * ((k * y) * y5);
}
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 (y <= (-1.45d+81)) then
tmp = (k * y5) * (i * y)
else if (y <= 1.42d+26) then
tmp = i * ((j * x) * y1)
else
tmp = i * ((k * y) * y5)
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 (y <= -1.45e+81) {
tmp = (k * y5) * (i * y);
} else if (y <= 1.42e+26) {
tmp = i * ((j * x) * y1);
} else {
tmp = i * ((k * y) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -1.45e+81: tmp = (k * y5) * (i * y) elif y <= 1.42e+26: tmp = i * ((j * x) * y1) else: tmp = i * ((k * y) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -1.45e+81) tmp = Float64(Float64(k * y5) * Float64(i * y)); elseif (y <= 1.42e+26) tmp = Float64(i * Float64(Float64(j * x) * y1)); else tmp = Float64(i * Float64(Float64(k * y) * y5)); 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 (y <= -1.45e+81) tmp = (k * y5) * (i * y); elseif (y <= 1.42e+26) tmp = i * ((j * x) * y1); else tmp = i * ((k * y) * y5); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -1.45e+81], N[(N[(k * y5), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.42e+26], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+81}:\\
\;\;\;\;\left(k \cdot y5\right) \cdot \left(i \cdot y\right)\\
\mathbf{elif}\;y \leq 1.42 \cdot 10^{+26}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\end{array}
\end{array}
if y < -1.45e81Initial program 21.0%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.9%
Taylor expanded in y5 around inf
Applied rewrites42.2%
Taylor expanded in y around inf
Applied rewrites36.4%
if -1.45e81 < y < 1.42e26Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.4%
Taylor expanded in j around inf
Applied rewrites30.4%
Taylor expanded in x around inf
Applied rewrites22.6%
if 1.42e26 < y Initial program 19.8%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in y5 around inf
Applied rewrites23.8%
Taylor expanded in y around inf
Applied rewrites28.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* 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) {
return i * ((j * x) * y1);
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * ((j * x) * y1)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((j * x) * y1);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((j * x) * y1)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(j * x) * y1)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((j * x) * y1); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(\left(j \cdot x\right) \cdot y1\right)
\end{array}
Initial program 25.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in j around inf
Applied rewrites28.2%
Taylor expanded in x around inf
Applied rewrites17.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 2024299
(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)))))