
(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 30 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
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x))
(t_2 (- (* y2 k) (* y3 j))))
(if (<= x -1e+26)
t_1
(if (<= x -3.5e-55)
(- (* (* (fma (- y) k (* j t)) b) y4) (* (- (* y5 y0) (* y4 y1)) t_2))
(if (<= x -1.12e-215)
(*
(fma
(- (* t z) (* y x))
c
(fma (- y5) (- (* j t) (* k y)) (* (- (* j x) (* k z)) y1)))
i)
(if (<= x -6e-296)
t_1
(if (<= x 1.15e+78)
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_2 (* (- (* y2 t) (* y3 y)) a)))
y5)
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
double t_2 = (y2 * k) - (y3 * j);
double tmp;
if (x <= -1e+26) {
tmp = t_1;
} else if (x <= -3.5e-55) {
tmp = ((fma(-y, k, (j * t)) * b) * y4) - (((y5 * y0) - (y4 * y1)) * t_2);
} else if (x <= -1.12e-215) {
tmp = fma(((t * z) - (y * x)), c, fma(-y5, ((j * t) - (k * y)), (((j * x) - (k * z)) * y1))) * i;
} else if (x <= -6e-296) {
tmp = t_1;
} else if (x <= 1.15e+78) {
tmp = fma(((k * y) - (j * t)), i, fma(-y0, t_2, (((y2 * t) - (y3 * y)) * a))) * y5;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x) t_2 = Float64(Float64(y2 * k) - Float64(y3 * j)) tmp = 0.0 if (x <= -1e+26) tmp = t_1; elseif (x <= -3.5e-55) tmp = Float64(Float64(Float64(fma(Float64(-y), k, Float64(j * t)) * b) * y4) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * t_2)); elseif (x <= -1.12e-215) tmp = Float64(fma(Float64(Float64(t * z) - Float64(y * x)), c, fma(Float64(-y5), Float64(Float64(j * t) - Float64(k * y)), Float64(Float64(Float64(j * x) - Float64(k * z)) * y1))) * i); elseif (x <= -6e-296) tmp = t_1; elseif (x <= 1.15e+78) tmp = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_2, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e+26], t$95$1, If[LessEqual[x, -3.5e-55], N[(N[(N[(N[((-y) * k + N[(j * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.12e-215], N[(N[(N[(N[(t * z), $MachinePrecision] - N[(y * x), $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], If[LessEqual[x, -6e-296], t$95$1, If[LessEqual[x, 1.15e+78], N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$2 + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
t_2 := y2 \cdot k - y3 \cdot j\\
\mathbf{if}\;x \leq -1 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{-55}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, k, j \cdot t\right) \cdot b\right) \cdot y4 - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot t\_2\\
\mathbf{elif}\;x \leq -1.12 \cdot 10^{-215}:\\
\;\;\;\;\mathsf{fma}\left(t \cdot z - y \cdot x, c, \mathsf{fma}\left(-y5, j \cdot t - k \cdot y, \left(j \cdot x - k \cdot z\right) \cdot y1\right)\right) \cdot i\\
\mathbf{elif}\;x \leq -6 \cdot 10^{-296}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+78}:\\
\;\;\;\;\mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_2, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.00000000000000005e26 or -1.12e-215 < x < -5.9999999999999995e-296 or 1.1500000000000001e78 < x Initial program 30.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.3%
if -1.00000000000000005e26 < x < -3.50000000000000025e-55Initial program 37.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.0%
Taylor expanded in y0 around inf
Applied rewrites48.1%
Taylor expanded in y4 around inf
Applied rewrites69.2%
Applied rewrites79.5%
if -3.50000000000000025e-55 < x < -1.12e-215Initial program 41.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.3%
if -5.9999999999999995e-296 < x < 1.1500000000000001e78Initial program 31.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.5%
Final simplification63.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y1 i) (* y0 b)))
(t_2
(-
(-
(-
(-
(-
(* t_1 (- (* j x) (* k z)))
(* (- (* i c) (* b a)) (- (* y x) (* t z))))
(* (- (* y1 a) (* y0 c)) (- (* y2 x) (* y3 z))))
(* (- (* y5 i) (* y4 b)) (- (* j t) (* k y))))
(* (- (* y5 a) (* y4 c)) (- (* y3 y) (* y2 t))))
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))))
(if (<= t_2 INFINITY)
t_2
(*
(fma (- (* b a) (* i c)) y (fma (- (* y0 c) (* y1 a)) y2 (* t_1 j)))
x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * i) - (y0 * b);
double t_2 = (((((t_1 * ((j * x) - (k * z))) - (((i * c) - (b * a)) * ((y * x) - (t * z)))) - (((y1 * a) - (y0 * c)) * ((y2 * x) - (y3 * z)))) - (((y5 * i) - (y4 * b)) * ((j * t) - (k * y)))) - (((y5 * a) - (y4 * c)) * ((y3 * y) - (y2 * t)))) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (t_1 * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * i) - Float64(y0 * b)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(t_1 * Float64(Float64(j * x) - Float64(k * z))) - Float64(Float64(Float64(i * c) - Float64(b * a)) * Float64(Float64(y * x) - Float64(t * z)))) - Float64(Float64(Float64(y1 * a) - Float64(y0 * c)) * Float64(Float64(y2 * x) - Float64(y3 * z)))) - Float64(Float64(Float64(y5 * i) - Float64(y4 * b)) * Float64(Float64(j * t) - Float64(k * y)))) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * Float64(Float64(y3 * y) - Float64(y2 * t)))) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(t_1 * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(t$95$1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * a), $MachinePrecision] - N[(y0 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot i - y0 \cdot b\\
t_2 := \left(\left(\left(\left(t\_1 \cdot \left(j \cdot x - k \cdot z\right) - \left(i \cdot c - b \cdot a\right) \cdot \left(y \cdot x - t \cdot z\right)\right) - \left(y1 \cdot a - y0 \cdot c\right) \cdot \left(y2 \cdot x - y3 \cdot z\right)\right) - \left(y5 \cdot i - y4 \cdot b\right) \cdot \left(j \cdot t - k \cdot y\right)\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot \left(y3 \cdot y - y2 \cdot t\right)\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, t\_1 \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 88.8%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Final simplification61.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y2 k) (* y3 j)))
(t_2 (- (* b a) (* i c)))
(t_3
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_1 (* (- (* y2 t) (* y3 y)) a)))
y5))
(t_4 (- (* y0 c) (* y1 a))))
(if (<= y5 -1.62e+133)
t_3
(if (<= y5 -1.55e-78)
(*
(fma (- (* y4 y1) (* y5 y0)) k (fma t_4 x (* (- (* y5 a) (* y4 c)) t)))
y2)
(if (<= y5 -1.9e-276)
(*
(fma (- (* y3 z) (* y2 x)) a (fma t_1 y4 (* (- (* j x) (* k z)) i)))
y1)
(if (<= y5 8e-27)
(* (fma t_2 y (fma t_4 y2 (* (- (* y1 i) (* y0 b)) j))) x)
(if (<= y5 1.2e+16)
(*
(fma
(- (* j t) (* k y))
b
(fma t_1 y1 (* (- (* y3 y) (* y2 t)) c)))
y4)
(if (<= y5 1.3e+140)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma t_2 x (* (- (* y4 c) (* y5 a)) y3)))
y)
t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * k) - (y3 * j);
double t_2 = (b * a) - (i * c);
double t_3 = fma(((k * y) - (j * t)), i, fma(-y0, t_1, (((y2 * t) - (y3 * y)) * a))) * y5;
double t_4 = (y0 * c) - (y1 * a);
double tmp;
if (y5 <= -1.62e+133) {
tmp = t_3;
} else if (y5 <= -1.55e-78) {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_4, x, (((y5 * a) - (y4 * c)) * t))) * y2;
} else if (y5 <= -1.9e-276) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(t_1, y4, (((j * x) - (k * z)) * i))) * y1;
} else if (y5 <= 8e-27) {
tmp = fma(t_2, y, fma(t_4, y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else if (y5 <= 1.2e+16) {
tmp = fma(((j * t) - (k * y)), b, fma(t_1, y1, (((y3 * y) - (y2 * t)) * c))) * y4;
} else if (y5 <= 1.3e+140) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(t_2, x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_2 = Float64(Float64(b * a) - Float64(i * c)) t_3 = Float64(fma(Float64(Float64(k * y) - Float64(j * t)), i, fma(Float64(-y0), t_1, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * a))) * y5) t_4 = Float64(Float64(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (y5 <= -1.62e+133) tmp = t_3; elseif (y5 <= -1.55e-78) tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_4, x, Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * t))) * y2); elseif (y5 <= -1.9e-276) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(t_1, y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); elseif (y5 <= 8e-27) tmp = Float64(fma(t_2, y, fma(t_4, y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); elseif (y5 <= 1.2e+16) tmp = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(t_1, y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4); elseif (y5 <= 1.3e+140) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(t_2, x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(k * y), $MachinePrecision] - N[(j * t), $MachinePrecision]), $MachinePrecision] * i + N[((-y0) * t$95$1 + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]}, Block[{t$95$4 = N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.62e+133], t$95$3, If[LessEqual[y5, -1.55e-78], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$4 * x + N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y5, -1.9e-276], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 8e-27], N[(N[(t$95$2 * y + N[(t$95$4 * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.2e+16], N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$1 * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, 1.3e+140], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$2 * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
t_2 := b \cdot a - i \cdot c\\
t_3 := \mathsf{fma}\left(k \cdot y - j \cdot t, i, \mathsf{fma}\left(-y0, t\_1, \left(y2 \cdot t - y3 \cdot y\right) \cdot a\right)\right) \cdot y5\\
t_4 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;y5 \leq -1.62 \cdot 10^{+133}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq -1.55 \cdot 10^{-78}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_4, x, \left(y5 \cdot a - y4 \cdot c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;y5 \leq -1.9 \cdot 10^{-276}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(t\_1, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 8 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, y, \mathsf{fma}\left(t\_4, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.2 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(t\_1, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{elif}\;y5 \leq 1.3 \cdot 10^{+140}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(t\_2, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y5 < -1.61999999999999998e133 or 1.3000000000000001e140 < y5 Initial program 32.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites72.1%
if -1.61999999999999998e133 < y5 < -1.55000000000000009e-78Initial program 34.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.0%
if -1.55000000000000009e-78 < y5 < -1.9e-276Initial program 32.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.7%
if -1.9e-276 < y5 < 8.0000000000000003e-27Initial program 27.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
if 8.0000000000000003e-27 < y5 < 1.2e16Initial program 30.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites80.6%
if 1.2e16 < y5 < 1.3000000000000001e140Initial program 44.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.7%
Final simplification63.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y2 k) (* y3 j)))
(t_2 (- (* y3 z) (* y2 x)))
(t_3 (* (fma t_2 a (fma t_1 y4 (* (- (* j x) (* k z)) i))) y1)))
(if (<= k -3.4e+168)
(* (* (fma i y (* (- y0) y2)) k) y5)
(if (<= k -1e-73)
(- (* (* (fma (- y) k (* j t)) b) y4) (* (- (* y5 y0) (* y4 y1)) t_1))
(if (<= k -1e-192)
t_3
(if (<= k 4e-86)
(*
(fma
t_2
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= k 6.7e+90)
t_3
(*
(fma
(- (* y5 i) (* y4 b))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * k) - (y3 * j);
double t_2 = (y3 * z) - (y2 * x);
double t_3 = fma(t_2, a, fma(t_1, y4, (((j * x) - (k * z)) * i))) * y1;
double tmp;
if (k <= -3.4e+168) {
tmp = (fma(i, y, (-y0 * y2)) * k) * y5;
} else if (k <= -1e-73) {
tmp = ((fma(-y, k, (j * t)) * b) * y4) - (((y5 * y0) - (y4 * y1)) * t_1);
} else if (k <= -1e-192) {
tmp = t_3;
} else if (k <= 4e-86) {
tmp = fma(t_2, y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (k <= 6.7e+90) {
tmp = t_3;
} else {
tmp = fma(((y5 * i) - (y4 * b)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_2 = Float64(Float64(y3 * z) - Float64(y2 * x)) t_3 = Float64(fma(t_2, a, fma(t_1, y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1) tmp = 0.0 if (k <= -3.4e+168) tmp = Float64(Float64(fma(i, y, Float64(Float64(-y0) * y2)) * k) * y5); elseif (k <= -1e-73) tmp = Float64(Float64(Float64(fma(Float64(-y), k, Float64(j * t)) * b) * y4) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * t_1)); elseif (k <= -1e-192) tmp = t_3; elseif (k <= 4e-86) tmp = Float64(fma(t_2, y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (k <= 6.7e+90) tmp = t_3; else tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$2 * a + N[(t$95$1 * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[k, -3.4e+168], N[(N[(N[(i * y + N[((-y0) * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[k, -1e-73], N[(N[(N[(N[((-y) * k + N[(j * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1e-192], t$95$3, If[LessEqual[k, 4e-86], N[(N[(t$95$2 * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 6.7e+90], t$95$3, N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
t_2 := y3 \cdot z - y2 \cdot x\\
t_3 := \mathsf{fma}\left(t\_2, a, \mathsf{fma}\left(t\_1, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{if}\;k \leq -3.4 \cdot 10^{+168}:\\
\;\;\;\;\left(\mathsf{fma}\left(i, y, \left(-y0\right) \cdot y2\right) \cdot k\right) \cdot y5\\
\mathbf{elif}\;k \leq -1 \cdot 10^{-73}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, k, j \cdot t\right) \cdot b\right) \cdot y4 - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot t\_1\\
\mathbf{elif}\;k \leq -1 \cdot 10^{-192}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;k \leq 4 \cdot 10^{-86}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 6.7 \cdot 10^{+90}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\end{array}
\end{array}
if k < -3.40000000000000003e168Initial program 21.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.7%
Taylor expanded in k around inf
Applied rewrites62.1%
if -3.40000000000000003e168 < k < -9.99999999999999997e-74Initial program 44.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.9%
Taylor expanded in y0 around inf
Applied rewrites48.8%
Taylor expanded in y4 around inf
Applied rewrites53.6%
Applied rewrites55.3%
if -9.99999999999999997e-74 < k < -1.0000000000000001e-192 or 4.00000000000000034e-86 < k < 6.7000000000000003e90Initial program 30.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.4%
if -1.0000000000000001e-192 < k < 4.00000000000000034e-86Initial program 33.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.9%
if 6.7000000000000003e90 < k Initial program 23.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.8%
Final simplification56.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* y4 y1) (* y5 y0))
k
(fma (- (* y0 c) (* y1 a)) x (* (- (* y5 a) (* y4 c)) t)))
y2)))
(if (<= y2 -5.5e+31)
t_1
(if (<= y2 -3.6e-306)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= y2 6e-23)
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((y4 * y1) - (y5 * y0)), k, fma(((y0 * c) - (y1 * a)), x, (((y5 * a) - (y4 * c)) * t))) * y2;
double tmp;
if (y2 <= -5.5e+31) {
tmp = t_1;
} else if (y2 <= -3.6e-306) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (y2 <= 6e-23) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), x, Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * t))) * y2) tmp = 0.0 if (y2 <= -5.5e+31) tmp = t_1; elseif (y2 <= -3.6e-306) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (y2 <= 6e-23) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[y2, -5.5e+31], t$95$1, If[LessEqual[y2, -3.6e-306], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y2, 6e-23], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, x, \left(y5 \cdot a - y4 \cdot c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{if}\;y2 \leq -5.5 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -3.6 \cdot 10^{-306}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;y2 \leq 6 \cdot 10^{-23}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -5.50000000000000002e31 or 6.00000000000000006e-23 < y2 Initial program 29.0%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.3%
if -5.50000000000000002e31 < y2 < -3.59999999999999991e-306Initial program 40.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.7%
if -3.59999999999999991e-306 < y2 < 6.00000000000000006e-23Initial program 30.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Final simplification57.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1e+283)
(* (fma (- t) y5 (* y1 x)) (* j i))
(if (<= j 1.5e-221)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= j 7.2e+42)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= j 1.6e+153)
(* (fma c z (* (- y5) j)) (* i t))
(* (* (fma (- y3) y4 (* i x)) j) y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1e+283) {
tmp = fma(-t, y5, (y1 * x)) * (j * i);
} else if (j <= 1.5e-221) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (j <= 7.2e+42) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (j <= 1.6e+153) {
tmp = fma(c, z, (-y5 * j)) * (i * t);
} else {
tmp = (fma(-y3, y4, (i * x)) * j) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -1e+283) tmp = Float64(fma(Float64(-t), y5, Float64(y1 * x)) * Float64(j * i)); elseif (j <= 1.5e-221) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (j <= 7.2e+42) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), y1, fma(Float64(Float64(y * x) - Float64(t * z)), b, Float64(Float64(Float64(y2 * t) - Float64(y3 * y)) * y5))) * a); elseif (j <= 1.6e+153) tmp = Float64(fma(c, z, Float64(Float64(-y5) * j)) * Float64(i * t)); else tmp = Float64(Float64(fma(Float64(-y3), y4, Float64(i * x)) * j) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1e+283], N[(N[((-t) * y5 + N[(y1 * x), $MachinePrecision]), $MachinePrecision] * N[(j * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.5e-221], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 7.2e+42], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 1.6e+153], N[(N[(c * z + N[((-y5) * j), $MachinePrecision]), $MachinePrecision] * N[(i * t), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1 \cdot 10^{+283}:\\
\;\;\;\;\mathsf{fma}\left(-t, y5, y1 \cdot x\right) \cdot \left(j \cdot i\right)\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-221}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{+42}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, y1, \mathsf{fma}\left(y \cdot x - t \cdot z, b, \left(y2 \cdot t - y3 \cdot y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{+153}:\\
\;\;\;\;\mathsf{fma}\left(c, z, \left(-y5\right) \cdot j\right) \cdot \left(i \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot j\right) \cdot y1\\
\end{array}
\end{array}
if j < -9.99999999999999955e282Initial program 11.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites25.4%
Taylor expanded in j around inf
Applied rewrites79.4%
if -9.99999999999999955e282 < j < 1.5000000000000001e-221Initial program 29.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.9%
if 1.5000000000000001e-221 < j < 7.2000000000000002e42Initial program 44.8%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.4%
if 7.2000000000000002e42 < j < 1.6000000000000001e153Initial program 22.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.8%
Taylor expanded in c around inf
Applied rewrites34.5%
Taylor expanded in t around inf
Applied rewrites55.8%
if 1.6000000000000001e153 < j Initial program 31.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in j around inf
Applied rewrites64.8%
Final simplification54.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -4.5e+101)
(* (* (fma c y4 (* (- a) y5)) (- t)) y2)
(if (<= c 3.95e-265)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma (- z) k (* j x)) (- y0)) b))
(if (<= c 6.5e+89)
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)
(* (* (fma t z (* (- x) y)) c) i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -4.5e+101) {
tmp = (fma(c, y4, (-a * y5)) * -t) * y2;
} else if (c <= 3.95e-265) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(-z, k, (j * x)) * -y0) * b));
} else if (c <= 6.5e+89) {
tmp = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
} else {
tmp = (fma(t, z, (-x * y)) * c) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -4.5e+101) tmp = Float64(Float64(fma(c, y4, Float64(Float64(-a) * y5)) * Float64(-t)) * y2); elseif (c <= 3.95e-265) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(Float64(-z), k, Float64(j * x)) * Float64(-y0)) * b)); elseif (c <= 6.5e+89) tmp = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1); else tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -4.5e+101], N[(N[(N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[c, 3.95e-265], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[((-z) * k + N[(j * x), $MachinePrecision]), $MachinePrecision] * (-y0)), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e+89], N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.5 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right) \cdot \left(-t\right)\right) \cdot y2\\
\mathbf{elif}\;c \leq 3.95 \cdot 10^{-265}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y5, y0, y4 \cdot y1\right), \mathsf{fma}\left(-y3, j, y2 \cdot k\right), \left(\mathsf{fma}\left(-z, k, j \cdot x\right) \cdot \left(-y0\right)\right) \cdot b\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{+89}:\\
\;\;\;\;\mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\end{array}
\end{array}
if c < -4.5000000000000002e101Initial program 23.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around inf
Applied rewrites51.9%
if -4.5000000000000002e101 < c < 3.9500000000000002e-265Initial program 35.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.9%
Taylor expanded in y0 around inf
Applied rewrites36.7%
Applied rewrites39.6%
if 3.9500000000000002e-265 < c < 6.4999999999999996e89Initial program 35.3%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.9%
if 6.4999999999999996e89 < c Initial program 29.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.9%
Taylor expanded in c around inf
Applied rewrites62.9%
Final simplification50.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4)))
(if (<= y4 -1.7e+70)
t_1
(if (<= y4 1.6e+84)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double tmp;
if (y4 <= -1.7e+70) {
tmp = t_1;
} else if (y4 <= 1.6e+84) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) tmp = 0.0 if (y4 <= -1.7e+70) tmp = t_1; elseif (y4 <= 1.6e+84) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, If[LessEqual[y4, -1.7e+70], t$95$1, If[LessEqual[y4, 1.6e+84], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j \cdot t - k \cdot y, b, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y1, \left(y3 \cdot y - y2 \cdot t\right) \cdot c\right)\right) \cdot y4\\
\mathbf{if}\;y4 \leq -1.7 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 1.6 \cdot 10^{+84}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -1.7e70 or 1.60000000000000005e84 < y4 Initial program 22.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.1%
if -1.7e70 < y4 < 1.60000000000000005e84Initial program 38.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.1%
Final simplification55.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -4e-22)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma (- z) k (* j x)) (- y0)) b))
(if (<= y4 1.05e+99)
(*
(fma
(- (* b a) (* i c))
y
(fma (- (* y0 c) (* y1 a)) y2 (* (- (* y1 i) (* y0 b)) j)))
x)
(-
(* (* (fma (- y) k (* j t)) b) y4)
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -4e-22) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(-z, k, (j * x)) * -y0) * b));
} else if (y4 <= 1.05e+99) {
tmp = fma(((b * a) - (i * c)), y, fma(((y0 * c) - (y1 * a)), y2, (((y1 * i) - (y0 * b)) * j))) * x;
} else {
tmp = ((fma(-y, k, (j * t)) * b) * y4) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -4e-22) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(Float64(-z), k, Float64(j * x)) * Float64(-y0)) * b)); elseif (y4 <= 1.05e+99) tmp = Float64(fma(Float64(Float64(b * a) - Float64(i * c)), y, fma(Float64(Float64(y0 * c) - Float64(y1 * a)), y2, Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * j))) * x); else tmp = Float64(Float64(Float64(fma(Float64(-y), k, Float64(j * t)) * b) * y4) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -4e-22], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[((-z) * k + N[(j * x), $MachinePrecision]), $MachinePrecision] * (-y0)), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.05e+99], N[(N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * y + N[(N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(N[((-y) * k + N[(j * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * y4), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -4 \cdot 10^{-22}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y5, y0, y4 \cdot y1\right), \mathsf{fma}\left(-y3, j, y2 \cdot k\right), \left(\mathsf{fma}\left(-z, k, j \cdot x\right) \cdot \left(-y0\right)\right) \cdot b\right)\\
\mathbf{elif}\;y4 \leq 1.05 \cdot 10^{+99}:\\
\;\;\;\;\mathsf{fma}\left(b \cdot a - i \cdot c, y, \mathsf{fma}\left(y0 \cdot c - y1 \cdot a, y2, \left(y1 \cdot i - y0 \cdot b\right) \cdot j\right)\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, k, j \cdot t\right) \cdot b\right) \cdot y4 - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\end{array}
\end{array}
if y4 < -4.0000000000000002e-22Initial program 20.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in y0 around inf
Applied rewrites55.4%
Applied rewrites57.2%
if -4.0000000000000002e-22 < y4 < 1.05000000000000005e99Initial program 39.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.0%
if 1.05000000000000005e99 < y4 Initial program 23.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.9%
Taylor expanded in y0 around inf
Applied rewrites41.3%
Taylor expanded in y4 around inf
Applied rewrites50.1%
Applied rewrites52.6%
Final simplification53.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -4.5e+101)
(* (* (fma c y4 (* (- a) y5)) (- t)) y2)
(if (<= c 1.95e+112)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma (- z) k (* j x)) (- y0)) b))
(* (* (fma t z (* (- x) y)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -4.5e+101) {
tmp = (fma(c, y4, (-a * y5)) * -t) * y2;
} else if (c <= 1.95e+112) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(-z, k, (j * x)) * -y0) * b));
} else {
tmp = (fma(t, z, (-x * y)) * c) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -4.5e+101) tmp = Float64(Float64(fma(c, y4, Float64(Float64(-a) * y5)) * Float64(-t)) * y2); elseif (c <= 1.95e+112) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(Float64(-z), k, Float64(j * x)) * Float64(-y0)) * b)); else tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -4.5e+101], N[(N[(N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[c, 1.95e+112], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[((-z) * k + N[(j * x), $MachinePrecision]), $MachinePrecision] * (-y0)), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.5 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right) \cdot \left(-t\right)\right) \cdot y2\\
\mathbf{elif}\;c \leq 1.95 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y5, y0, y4 \cdot y1\right), \mathsf{fma}\left(-y3, j, y2 \cdot k\right), \left(\mathsf{fma}\left(-z, k, j \cdot x\right) \cdot \left(-y0\right)\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\end{array}
\end{array}
if c < -4.5000000000000002e101Initial program 23.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around inf
Applied rewrites51.9%
if -4.5000000000000002e101 < c < 1.94999999999999984e112Initial program 35.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y0 around inf
Applied rewrites39.3%
Applied rewrites42.7%
if 1.94999999999999984e112 < c Initial program 32.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in c around inf
Applied rewrites65.5%
Final simplification47.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -1.25e-33)
(* (* (fma c y4 (* (- a) y5)) (- t)) y2)
(if (<= c 1.6e+112)
(-
(* (fma (- x) y0 (* y4 t)) (* j b))
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))
(* (* (fma t z (* (- x) y)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.25e-33) {
tmp = (fma(c, y4, (-a * y5)) * -t) * y2;
} else if (c <= 1.6e+112) {
tmp = (fma(-x, y0, (y4 * t)) * (j * b)) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
} else {
tmp = (fma(t, z, (-x * y)) * c) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -1.25e-33) tmp = Float64(Float64(fma(c, y4, Float64(Float64(-a) * y5)) * Float64(-t)) * y2); elseif (c <= 1.6e+112) tmp = Float64(Float64(fma(Float64(-x), y0, Float64(y4 * t)) * Float64(j * b)) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))); else tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -1.25e-33], N[(N[(N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[c, 1.6e+112], N[(N[(N[((-x) * y0 + N[(y4 * t), $MachinePrecision]), $MachinePrecision] * N[(j * b), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.25 \cdot 10^{-33}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right) \cdot \left(-t\right)\right) \cdot y2\\
\mathbf{elif}\;c \leq 1.6 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(-x, y0, y4 \cdot t\right) \cdot \left(j \cdot b\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\end{array}
\end{array}
if c < -1.25000000000000007e-33Initial program 27.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.2%
Taylor expanded in t around inf
Applied rewrites44.2%
if -1.25000000000000007e-33 < c < 1.59999999999999993e112Initial program 35.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in j around inf
Applied rewrites40.8%
if 1.59999999999999993e112 < c Initial program 32.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in c around inf
Applied rewrites65.5%
Final simplification45.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -3.5e+75)
(* (fma t z (* (- x) y)) (* i c))
(if (<= i -3.35e-34)
(* (* (fma (- j) t (* k y)) i) y5)
(if (<= i -2.65e-218)
(* (fma y1 y4 (* (- y0) y5)) (* y2 k))
(if (<= i 3.6e-295)
(* (fma b y (* (- y2) y1)) (* a x))
(if (<= i 4.8e-157)
(* (* (fma t y2 (* (- y3) y)) a) y5)
(if (<= i 4.8e+41)
(* (fma a y (* (- y0) j)) (* b x))
(if (<= i 1.9e+165)
(* (fma k y5 (* (- x) c)) (* i y))
(* (fma c z (* (- y5) j)) (* i t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -3.5e+75) {
tmp = fma(t, z, (-x * y)) * (i * c);
} else if (i <= -3.35e-34) {
tmp = (fma(-j, t, (k * y)) * i) * y5;
} else if (i <= -2.65e-218) {
tmp = fma(y1, y4, (-y0 * y5)) * (y2 * k);
} else if (i <= 3.6e-295) {
tmp = fma(b, y, (-y2 * y1)) * (a * x);
} else if (i <= 4.8e-157) {
tmp = (fma(t, y2, (-y3 * y)) * a) * y5;
} else if (i <= 4.8e+41) {
tmp = fma(a, y, (-y0 * j)) * (b * x);
} else if (i <= 1.9e+165) {
tmp = fma(k, y5, (-x * c)) * (i * y);
} else {
tmp = fma(c, z, (-y5 * j)) * (i * t);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -3.5e+75) tmp = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)); elseif (i <= -3.35e-34) tmp = Float64(Float64(fma(Float64(-j), t, Float64(k * y)) * i) * y5); elseif (i <= -2.65e-218) tmp = Float64(fma(y1, y4, Float64(Float64(-y0) * y5)) * Float64(y2 * k)); elseif (i <= 3.6e-295) tmp = Float64(fma(b, y, Float64(Float64(-y2) * y1)) * Float64(a * x)); elseif (i <= 4.8e-157) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y3) * y)) * a) * y5); elseif (i <= 4.8e+41) tmp = Float64(fma(a, y, Float64(Float64(-y0) * j)) * Float64(b * x)); elseif (i <= 1.9e+165) tmp = Float64(fma(k, y5, Float64(Float64(-x) * c)) * Float64(i * y)); else tmp = Float64(fma(c, z, Float64(Float64(-y5) * j)) * Float64(i * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -3.5e+75], N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.35e-34], N[(N[(N[((-j) * t + N[(k * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, -2.65e-218], N[(N[(y1 * y4 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * N[(y2 * k), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e-295], N[(N[(b * y + N[((-y2) * y1), $MachinePrecision]), $MachinePrecision] * N[(a * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e-157], N[(N[(N[(t * y2 + N[((-y3) * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, 4.8e+41], N[(N[(a * y + N[((-y0) * j), $MachinePrecision]), $MachinePrecision] * N[(b * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.9e+165], N[(N[(k * y5 + N[((-x) * c), $MachinePrecision]), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], N[(N[(c * z + N[((-y5) * j), $MachinePrecision]), $MachinePrecision] * N[(i * t), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.5 \cdot 10^{+75}:\\
\;\;\;\;\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{elif}\;i \leq -3.35 \cdot 10^{-34}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, t, k \cdot y\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;i \leq -2.65 \cdot 10^{-218}:\\
\;\;\;\;\mathsf{fma}\left(y1, y4, \left(-y0\right) \cdot y5\right) \cdot \left(y2 \cdot k\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-295}:\\
\;\;\;\;\mathsf{fma}\left(b, y, \left(-y2\right) \cdot y1\right) \cdot \left(a \cdot x\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-157}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y3\right) \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(a, y, \left(-y0\right) \cdot j\right) \cdot \left(b \cdot x\right)\\
\mathbf{elif}\;i \leq 1.9 \cdot 10^{+165}:\\
\;\;\;\;\mathsf{fma}\left(k, y5, \left(-x\right) \cdot c\right) \cdot \left(i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, z, \left(-y5\right) \cdot j\right) \cdot \left(i \cdot t\right)\\
\end{array}
\end{array}
if i < -3.4999999999999998e75Initial program 25.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
Taylor expanded in c around inf
Applied rewrites50.7%
if -3.4999999999999998e75 < i < -3.3500000000000002e-34Initial program 36.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.9%
Taylor expanded in i around inf
Applied rewrites40.3%
if -3.3500000000000002e-34 < i < -2.65000000000000015e-218Initial program 58.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.4%
Taylor expanded in k around inf
Applied rewrites42.8%
if -2.65000000000000015e-218 < i < 3.6000000000000001e-295Initial program 38.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in j around inf
Applied rewrites15.1%
Taylor expanded in a around inf
Applied rewrites45.9%
if 3.6000000000000001e-295 < i < 4.8e-157Initial program 38.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.5%
Taylor expanded in a around inf
Applied rewrites44.0%
if 4.8e-157 < i < 4.8000000000000003e41Initial program 22.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in j around inf
Applied rewrites31.7%
Taylor expanded in b around inf
Applied rewrites51.3%
if 4.8000000000000003e41 < i < 1.89999999999999995e165Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites29.8%
Taylor expanded in c around inf
Applied rewrites31.1%
Taylor expanded in y around inf
Applied rewrites43.2%
if 1.89999999999999995e165 < i Initial program 16.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Taylor expanded in c around inf
Applied rewrites41.4%
Taylor expanded in t around inf
Applied rewrites54.8%
Final simplification46.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= c -1.2e+101)
(* (* (fma c y4 (* (- a) y5)) (- t)) y2)
(if (<= c 6.2e+16)
(- (* (* (* j t) y4) b) (* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))
(* (* (fma t z (* (- x) y)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (c <= -1.2e+101) {
tmp = (fma(c, y4, (-a * y5)) * -t) * y2;
} else if (c <= 6.2e+16) {
tmp = (((j * t) * y4) * b) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
} else {
tmp = (fma(t, z, (-x * y)) * c) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (c <= -1.2e+101) tmp = Float64(Float64(fma(c, y4, Float64(Float64(-a) * y5)) * Float64(-t)) * y2); elseif (c <= 6.2e+16) tmp = Float64(Float64(Float64(Float64(j * t) * y4) * b) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))); else tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[c, -1.2e+101], N[(N[(N[(c * y4 + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * (-t)), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[c, 6.2e+16], N[(N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.2 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y4, \left(-a\right) \cdot y5\right) \cdot \left(-t\right)\right) \cdot y2\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\end{array}
\end{array}
if c < -1.19999999999999994e101Initial program 23.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around inf
Applied rewrites51.9%
if -1.19999999999999994e101 < c < 6.2e16Initial program 36.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y0 around inf
Applied rewrites39.4%
Taylor expanded in y4 around inf
Applied rewrites35.1%
Taylor expanded in t around inf
Applied rewrites38.4%
if 6.2e16 < c Initial program 28.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in c around inf
Applied rewrites58.9%
Final simplification44.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- y3) y4 (* i x)) j) y1)))
(if (<= j -2.65e+73)
t_1
(if (<= j -7.2e-175)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= j -4e-243)
(* (* (fma t z (* (- x) y)) c) i)
(if (<= j 3.2e-215)
(* (* (fma (- k) y0 (* a t)) y2) y5)
(if (<= j 1.3e+35) (* (fma b y (* (- y2) y1)) (* a x)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-y3, y4, (i * x)) * j) * y1;
double tmp;
if (j <= -2.65e+73) {
tmp = t_1;
} else if (j <= -7.2e-175) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (j <= -4e-243) {
tmp = (fma(t, z, (-x * y)) * c) * i;
} else if (j <= 3.2e-215) {
tmp = (fma(-k, y0, (a * t)) * y2) * y5;
} else if (j <= 1.3e+35) {
tmp = fma(b, y, (-y2 * y1)) * (a * x);
} 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(-y3), y4, Float64(i * x)) * j) * y1) tmp = 0.0 if (j <= -2.65e+73) tmp = t_1; elseif (j <= -7.2e-175) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (j <= -4e-243) tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); elseif (j <= 3.2e-215) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y2) * y5); elseif (j <= 1.3e+35) tmp = Float64(fma(b, y, Float64(Float64(-y2) * y1)) * Float64(a * x)); 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[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[j, -2.65e+73], t$95$1, If[LessEqual[j, -7.2e-175], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[j, -4e-243], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, 3.2e-215], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[j, 1.3e+35], N[(N[(b * y + N[((-y2) * y1), $MachinePrecision]), $MachinePrecision] * N[(a * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot j\right) \cdot y1\\
\mathbf{if}\;j \leq -2.65 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -7.2 \cdot 10^{-175}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;j \leq -4 \cdot 10^{-243}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{-215}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y2\right) \cdot y5\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(b, y, \left(-y2\right) \cdot y1\right) \cdot \left(a \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.64999999999999998e73 or 1.30000000000000003e35 < j Initial program 25.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.5%
Taylor expanded in j around inf
Applied rewrites54.5%
if -2.64999999999999998e73 < j < -7.2e-175Initial program 29.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in a around inf
Applied rewrites45.8%
if -7.2e-175 < j < -3.99999999999999998e-243Initial program 11.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.8%
Taylor expanded in c around inf
Applied rewrites51.1%
if -3.99999999999999998e-243 < j < 3.2000000000000001e-215Initial program 47.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.0%
Taylor expanded in y2 around inf
Applied rewrites41.0%
if 3.2000000000000001e-215 < j < 1.30000000000000003e35Initial program 45.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
Taylor expanded in j around inf
Applied rewrites13.0%
Taylor expanded in a around inf
Applied rewrites40.0%
Final simplification47.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -3.4e-60)
(* (fma t z (* (- x) y)) (* i c))
(if (<= i 3.6e-295)
(* (fma b y (* (- y2) y1)) (* a x))
(if (<= i 4.8e-157)
(* (* (fma t y2 (* (- y3) y)) a) y5)
(if (<= i 4.8e+41)
(* (fma a y (* (- y0) j)) (* b x))
(if (<= i 1.9e+165)
(* (fma k y5 (* (- x) c)) (* i y))
(* (fma c z (* (- y5) j)) (* i t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -3.4e-60) {
tmp = fma(t, z, (-x * y)) * (i * c);
} else if (i <= 3.6e-295) {
tmp = fma(b, y, (-y2 * y1)) * (a * x);
} else if (i <= 4.8e-157) {
tmp = (fma(t, y2, (-y3 * y)) * a) * y5;
} else if (i <= 4.8e+41) {
tmp = fma(a, y, (-y0 * j)) * (b * x);
} else if (i <= 1.9e+165) {
tmp = fma(k, y5, (-x * c)) * (i * y);
} else {
tmp = fma(c, z, (-y5 * j)) * (i * t);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -3.4e-60) tmp = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)); elseif (i <= 3.6e-295) tmp = Float64(fma(b, y, Float64(Float64(-y2) * y1)) * Float64(a * x)); elseif (i <= 4.8e-157) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y3) * y)) * a) * y5); elseif (i <= 4.8e+41) tmp = Float64(fma(a, y, Float64(Float64(-y0) * j)) * Float64(b * x)); elseif (i <= 1.9e+165) tmp = Float64(fma(k, y5, Float64(Float64(-x) * c)) * Float64(i * y)); else tmp = Float64(fma(c, z, Float64(Float64(-y5) * j)) * Float64(i * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -3.4e-60], N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.6e-295], N[(N[(b * y + N[((-y2) * y1), $MachinePrecision]), $MachinePrecision] * N[(a * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e-157], N[(N[(N[(t * y2 + N[((-y3) * y), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[i, 4.8e+41], N[(N[(a * y + N[((-y0) * j), $MachinePrecision]), $MachinePrecision] * N[(b * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.9e+165], N[(N[(k * y5 + N[((-x) * c), $MachinePrecision]), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], N[(N[(c * z + N[((-y5) * j), $MachinePrecision]), $MachinePrecision] * N[(i * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.4 \cdot 10^{-60}:\\
\;\;\;\;\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{elif}\;i \leq 3.6 \cdot 10^{-295}:\\
\;\;\;\;\mathsf{fma}\left(b, y, \left(-y2\right) \cdot y1\right) \cdot \left(a \cdot x\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{-157}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y3\right) \cdot y\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(a, y, \left(-y0\right) \cdot j\right) \cdot \left(b \cdot x\right)\\
\mathbf{elif}\;i \leq 1.9 \cdot 10^{+165}:\\
\;\;\;\;\mathsf{fma}\left(k, y5, \left(-x\right) \cdot c\right) \cdot \left(i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, z, \left(-y5\right) \cdot j\right) \cdot \left(i \cdot t\right)\\
\end{array}
\end{array}
if i < -3.40000000000000007e-60Initial program 31.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.0%
Taylor expanded in c around inf
Applied rewrites39.0%
if -3.40000000000000007e-60 < i < 3.6000000000000001e-295Initial program 49.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.9%
Taylor expanded in j around inf
Applied rewrites14.9%
Taylor expanded in a around inf
Applied rewrites38.8%
if 3.6000000000000001e-295 < i < 4.8e-157Initial program 38.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.5%
Taylor expanded in a around inf
Applied rewrites44.0%
if 4.8e-157 < i < 4.8000000000000003e41Initial program 22.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in j around inf
Applied rewrites31.7%
Taylor expanded in b around inf
Applied rewrites51.3%
if 4.8000000000000003e41 < i < 1.89999999999999995e165Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites29.8%
Taylor expanded in c around inf
Applied rewrites31.1%
Taylor expanded in y around inf
Applied rewrites43.2%
if 1.89999999999999995e165 < i Initial program 16.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Taylor expanded in c around inf
Applied rewrites41.4%
Taylor expanded in t around inf
Applied rewrites54.8%
Final simplification43.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.65e+266)
(* (fma y y5 (* (- z) y1)) (* k i))
(if (<= z -1e+30)
(* (* (* t z) i) c)
(if (<= z -2.6e-172)
(* (fma (- t) y5 (* y1 x)) (* j i))
(if (<= z 1e-230)
(* (fma k y5 (* (- x) c)) (* i y))
(if (<= z 1.35e+84)
(* (fma b y (* (- y2) y1)) (* a x))
(* (* (* c z) i) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.65e+266) {
tmp = fma(y, y5, (-z * y1)) * (k * i);
} else if (z <= -1e+30) {
tmp = ((t * z) * i) * c;
} else if (z <= -2.6e-172) {
tmp = fma(-t, y5, (y1 * x)) * (j * i);
} else if (z <= 1e-230) {
tmp = fma(k, y5, (-x * c)) * (i * y);
} else if (z <= 1.35e+84) {
tmp = fma(b, y, (-y2 * y1)) * (a * x);
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.65e+266) tmp = Float64(fma(y, y5, Float64(Float64(-z) * y1)) * Float64(k * i)); elseif (z <= -1e+30) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -2.6e-172) tmp = Float64(fma(Float64(-t), y5, Float64(y1 * x)) * Float64(j * i)); elseif (z <= 1e-230) tmp = Float64(fma(k, y5, Float64(Float64(-x) * c)) * Float64(i * y)); elseif (z <= 1.35e+84) tmp = Float64(fma(b, y, Float64(Float64(-y2) * y1)) * Float64(a * x)); else tmp = Float64(Float64(Float64(c * z) * i) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1.65e+266], N[(N[(y * y5 + N[((-z) * y1), $MachinePrecision]), $MachinePrecision] * N[(k * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e+30], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -2.6e-172], N[(N[((-t) * y5 + N[(y1 * x), $MachinePrecision]), $MachinePrecision] * N[(j * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-230], N[(N[(k * y5 + N[((-x) * c), $MachinePrecision]), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+84], N[(N[(b * y + N[((-y2) * y1), $MachinePrecision]), $MachinePrecision] * N[(a * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+266}:\\
\;\;\;\;\mathsf{fma}\left(y, y5, \left(-z\right) \cdot y1\right) \cdot \left(k \cdot i\right)\\
\mathbf{elif}\;z \leq -1 \cdot 10^{+30}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-172}:\\
\;\;\;\;\mathsf{fma}\left(-t, y5, y1 \cdot x\right) \cdot \left(j \cdot i\right)\\
\mathbf{elif}\;z \leq 10^{-230}:\\
\;\;\;\;\mathsf{fma}\left(k, y5, \left(-x\right) \cdot c\right) \cdot \left(i \cdot y\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+84}:\\
\;\;\;\;\mathsf{fma}\left(b, y, \left(-y2\right) \cdot y1\right) \cdot \left(a \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -1.64999999999999992e266Initial program 9.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.6%
Taylor expanded in c around inf
Applied rewrites19.5%
Taylor expanded in k around inf
Applied rewrites73.5%
if -1.64999999999999992e266 < z < -1e30Initial program 27.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in c around inf
Applied rewrites35.9%
Taylor expanded in t around inf
Applied rewrites45.3%
if -1e30 < z < -2.5999999999999998e-172Initial program 36.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.9%
Taylor expanded in j around inf
Applied rewrites42.6%
if -2.5999999999999998e-172 < z < 1.00000000000000005e-230Initial program 36.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.1%
Taylor expanded in c around inf
Applied rewrites21.5%
Taylor expanded in y around inf
Applied rewrites43.5%
if 1.00000000000000005e-230 < z < 1.35e84Initial program 38.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.6%
Taylor expanded in j around inf
Applied rewrites25.7%
Taylor expanded in a around inf
Applied rewrites30.6%
if 1.35e84 < z Initial program 28.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.2%
Taylor expanded in c around inf
Applied rewrites41.2%
Taylor expanded in t around inf
Applied rewrites41.4%
Applied rewrites43.7%
Final simplification41.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (- t) y5 (* y1 x)) (* j i))))
(if (<= z -1.65e+266)
(* (fma y y5 (* (- z) y1)) (* k i))
(if (<= z -1e+30)
(* (* (* t z) i) c)
(if (<= z -2.6e-172)
t_1
(if (<= z 8.5e-77)
(* (fma k y5 (* (- x) c)) (* i y))
(if (<= z 9000000000.0) t_1 (* (fma t z (* (- x) y)) (* i c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-t, y5, (y1 * x)) * (j * i);
double tmp;
if (z <= -1.65e+266) {
tmp = fma(y, y5, (-z * y1)) * (k * i);
} else if (z <= -1e+30) {
tmp = ((t * z) * i) * c;
} else if (z <= -2.6e-172) {
tmp = t_1;
} else if (z <= 8.5e-77) {
tmp = fma(k, y5, (-x * c)) * (i * y);
} else if (z <= 9000000000.0) {
tmp = t_1;
} else {
tmp = fma(t, z, (-x * y)) * (i * c);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(-t), y5, Float64(y1 * x)) * Float64(j * i)) tmp = 0.0 if (z <= -1.65e+266) tmp = Float64(fma(y, y5, Float64(Float64(-z) * y1)) * Float64(k * i)); elseif (z <= -1e+30) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -2.6e-172) tmp = t_1; elseif (z <= 8.5e-77) tmp = Float64(fma(k, y5, Float64(Float64(-x) * c)) * Float64(i * y)); elseif (z <= 9000000000.0) tmp = t_1; else tmp = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)); 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[((-t) * y5 + N[(y1 * x), $MachinePrecision]), $MachinePrecision] * N[(j * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.65e+266], N[(N[(y * y5 + N[((-z) * y1), $MachinePrecision]), $MachinePrecision] * N[(k * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e+30], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -2.6e-172], t$95$1, If[LessEqual[z, 8.5e-77], N[(N[(k * y5 + N[((-x) * c), $MachinePrecision]), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9000000000.0], t$95$1, N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, y5, y1 \cdot x\right) \cdot \left(j \cdot i\right)\\
\mathbf{if}\;z \leq -1.65 \cdot 10^{+266}:\\
\;\;\;\;\mathsf{fma}\left(y, y5, \left(-z\right) \cdot y1\right) \cdot \left(k \cdot i\right)\\
\mathbf{elif}\;z \leq -1 \cdot 10^{+30}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-77}:\\
\;\;\;\;\mathsf{fma}\left(k, y5, \left(-x\right) \cdot c\right) \cdot \left(i \cdot y\right)\\
\mathbf{elif}\;z \leq 9000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\end{array}
\end{array}
if z < -1.64999999999999992e266Initial program 9.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.6%
Taylor expanded in c around inf
Applied rewrites19.5%
Taylor expanded in k around inf
Applied rewrites73.5%
if -1.64999999999999992e266 < z < -1e30Initial program 27.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.9%
Taylor expanded in c around inf
Applied rewrites35.9%
Taylor expanded in t around inf
Applied rewrites45.3%
if -1e30 < z < -2.5999999999999998e-172 or 8.4999999999999998e-77 < z < 9e9Initial program 34.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.6%
Taylor expanded in j around inf
Applied rewrites42.1%
if -2.5999999999999998e-172 < z < 8.4999999999999998e-77Initial program 39.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.0%
Taylor expanded in c around inf
Applied rewrites21.4%
Taylor expanded in y around inf
Applied rewrites38.5%
if 9e9 < z Initial program 31.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.0%
Taylor expanded in c around inf
Applied rewrites35.5%
Final simplification41.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- y3) y4 (* i x)) j) y1)))
(if (<= j -2.65e+73)
t_1
(if (<= j -8.5e-174)
(* (* (fma y3 z (* (- x) y2)) a) y1)
(if (<= j 4.3e-262)
(* (* (fma a b (* (- c) i)) y) x)
(if (<= j 2.2e+123) (* (* (fma c y0 (* (- a) y1)) y2) x) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-y3, y4, (i * x)) * j) * y1;
double tmp;
if (j <= -2.65e+73) {
tmp = t_1;
} else if (j <= -8.5e-174) {
tmp = (fma(y3, z, (-x * y2)) * a) * y1;
} else if (j <= 4.3e-262) {
tmp = (fma(a, b, (-c * i)) * y) * x;
} else if (j <= 2.2e+123) {
tmp = (fma(c, y0, (-a * y1)) * y2) * x;
} 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(-y3), y4, Float64(i * x)) * j) * y1) tmp = 0.0 if (j <= -2.65e+73) tmp = t_1; elseif (j <= -8.5e-174) tmp = Float64(Float64(fma(y3, z, Float64(Float64(-x) * y2)) * a) * y1); elseif (j <= 4.3e-262) tmp = Float64(Float64(fma(a, b, Float64(Float64(-c) * i)) * y) * x); elseif (j <= 2.2e+123) tmp = Float64(Float64(fma(c, y0, Float64(Float64(-a) * y1)) * y2) * x); 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[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[j, -2.65e+73], t$95$1, If[LessEqual[j, -8.5e-174], N[(N[(N[(y3 * z + N[((-x) * y2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[j, 4.3e-262], N[(N[(N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, 2.2e+123], N[(N[(N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot j\right) \cdot y1\\
\mathbf{if}\;j \leq -2.65 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-174}:\\
\;\;\;\;\left(\mathsf{fma}\left(y3, z, \left(-x\right) \cdot y2\right) \cdot a\right) \cdot y1\\
\mathbf{elif}\;j \leq 4.3 \cdot 10^{-262}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{+123}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right) \cdot y2\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.64999999999999998e73 or 2.19999999999999992e123 < j Initial program 25.5%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.6%
Taylor expanded in j around inf
Applied rewrites57.4%
if -2.64999999999999998e73 < j < -8.4999999999999996e-174Initial program 29.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.4%
Taylor expanded in a around inf
Applied rewrites45.8%
if -8.4999999999999996e-174 < j < 4.3000000000000001e-262Initial program 28.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.1%
Taylor expanded in y around inf
Applied rewrites40.4%
if 4.3000000000000001e-262 < j < 2.19999999999999992e123Initial program 43.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in y2 around inf
Applied rewrites38.4%
Final simplification46.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -3.4e-60)
(* (fma t z (* (- x) y)) (* i c))
(if (<= i 9.6e-238)
(* (fma b y (* (- y2) y1)) (* a x))
(if (<= i 4.8e+41)
(* (fma a y (* (- y0) j)) (* b x))
(if (<= i 1.9e+165)
(* (fma k y5 (* (- x) c)) (* i y))
(* (fma c z (* (- y5) j)) (* i t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -3.4e-60) {
tmp = fma(t, z, (-x * y)) * (i * c);
} else if (i <= 9.6e-238) {
tmp = fma(b, y, (-y2 * y1)) * (a * x);
} else if (i <= 4.8e+41) {
tmp = fma(a, y, (-y0 * j)) * (b * x);
} else if (i <= 1.9e+165) {
tmp = fma(k, y5, (-x * c)) * (i * y);
} else {
tmp = fma(c, z, (-y5 * j)) * (i * t);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -3.4e-60) tmp = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)); elseif (i <= 9.6e-238) tmp = Float64(fma(b, y, Float64(Float64(-y2) * y1)) * Float64(a * x)); elseif (i <= 4.8e+41) tmp = Float64(fma(a, y, Float64(Float64(-y0) * j)) * Float64(b * x)); elseif (i <= 1.9e+165) tmp = Float64(fma(k, y5, Float64(Float64(-x) * c)) * Float64(i * y)); else tmp = Float64(fma(c, z, Float64(Float64(-y5) * j)) * Float64(i * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -3.4e-60], N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.6e-238], N[(N[(b * y + N[((-y2) * y1), $MachinePrecision]), $MachinePrecision] * N[(a * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+41], N[(N[(a * y + N[((-y0) * j), $MachinePrecision]), $MachinePrecision] * N[(b * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.9e+165], N[(N[(k * y5 + N[((-x) * c), $MachinePrecision]), $MachinePrecision] * N[(i * y), $MachinePrecision]), $MachinePrecision], N[(N[(c * z + N[((-y5) * j), $MachinePrecision]), $MachinePrecision] * N[(i * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.4 \cdot 10^{-60}:\\
\;\;\;\;\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{elif}\;i \leq 9.6 \cdot 10^{-238}:\\
\;\;\;\;\mathsf{fma}\left(b, y, \left(-y2\right) \cdot y1\right) \cdot \left(a \cdot x\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+41}:\\
\;\;\;\;\mathsf{fma}\left(a, y, \left(-y0\right) \cdot j\right) \cdot \left(b \cdot x\right)\\
\mathbf{elif}\;i \leq 1.9 \cdot 10^{+165}:\\
\;\;\;\;\mathsf{fma}\left(k, y5, \left(-x\right) \cdot c\right) \cdot \left(i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, z, \left(-y5\right) \cdot j\right) \cdot \left(i \cdot t\right)\\
\end{array}
\end{array}
if i < -3.40000000000000007e-60Initial program 31.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.0%
Taylor expanded in c around inf
Applied rewrites39.0%
if -3.40000000000000007e-60 < i < 9.5999999999999994e-238Initial program 52.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in j around inf
Applied rewrites14.0%
Taylor expanded in a around inf
Applied rewrites38.0%
if 9.5999999999999994e-238 < i < 4.8000000000000003e41Initial program 20.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.6%
Taylor expanded in j around inf
Applied rewrites27.2%
Taylor expanded in b around inf
Applied rewrites43.3%
if 4.8000000000000003e41 < i < 1.89999999999999995e165Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites29.8%
Taylor expanded in c around inf
Applied rewrites31.1%
Taylor expanded in y around inf
Applied rewrites43.2%
if 1.89999999999999995e165 < i Initial program 16.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Taylor expanded in c around inf
Applied rewrites41.4%
Taylor expanded in t around inf
Applied rewrites54.8%
Final simplification41.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma t z (* (- x) y)) (* i c))))
(if (<= i -7.7e-59)
t_1
(if (<= i 5.6e-151)
(* (fma j y0 (* (- a) y)) (* y5 y3))
(if (<= i 1.6e-55)
(- (* (* (* j x) y0) b))
(if (<= i 8e+153) t_1 (* (fma c z (* (- y5) j)) (* i t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(t, z, (-x * y)) * (i * c);
double tmp;
if (i <= -7.7e-59) {
tmp = t_1;
} else if (i <= 5.6e-151) {
tmp = fma(j, y0, (-a * y)) * (y5 * y3);
} else if (i <= 1.6e-55) {
tmp = -(((j * x) * y0) * b);
} else if (i <= 8e+153) {
tmp = t_1;
} else {
tmp = fma(c, z, (-y5 * j)) * (i * t);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)) tmp = 0.0 if (i <= -7.7e-59) tmp = t_1; elseif (i <= 5.6e-151) tmp = Float64(fma(j, y0, Float64(Float64(-a) * y)) * Float64(y5 * y3)); elseif (i <= 1.6e-55) tmp = Float64(-Float64(Float64(Float64(j * x) * y0) * b)); elseif (i <= 8e+153) tmp = t_1; else tmp = Float64(fma(c, z, Float64(Float64(-y5) * j)) * Float64(i * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.7e-59], t$95$1, If[LessEqual[i, 5.6e-151], N[(N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision] * N[(y5 * y3), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e-55], (-N[(N[(N[(j * x), $MachinePrecision] * y0), $MachinePrecision] * b), $MachinePrecision]), If[LessEqual[i, 8e+153], t$95$1, N[(N[(c * z + N[((-y5) * j), $MachinePrecision]), $MachinePrecision] * N[(i * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{if}\;i \leq -7.7 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right) \cdot \left(y5 \cdot y3\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-55}:\\
\;\;\;\;-\left(\left(j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;i \leq 8 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, z, \left(-y5\right) \cdot j\right) \cdot \left(i \cdot t\right)\\
\end{array}
\end{array}
if i < -7.7e-59 or 1.6000000000000001e-55 < i < 8e153Initial program 28.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.7%
Taylor expanded in c around inf
Applied rewrites38.7%
if -7.7e-59 < i < 5.6000000000000002e-151Initial program 44.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in y3 around inf
Applied rewrites31.1%
if 5.6000000000000002e-151 < i < 1.6000000000000001e-55Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in j around inf
Applied rewrites64.9%
Taylor expanded in b around inf
Applied rewrites58.7%
if 8e153 < i Initial program 21.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.3%
Taylor expanded in c around inf
Applied rewrites37.9%
Taylor expanded in t around inf
Applied rewrites50.1%
Final simplification38.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -3e+41)
(* (* (* t z) i) c)
(if (<= z -1.22e-193)
(* (* (* j x) y1) i)
(if (<= z 2e-264)
(* (* (* y2 k) y4) y1)
(if (<= z 3800000000000.0)
(* (- i) (* (* j t) y5))
(* (* (* c z) i) t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.22e-193) {
tmp = ((j * x) * y1) * i;
} else if (z <= 2e-264) {
tmp = ((y2 * k) * y4) * y1;
} else if (z <= 3800000000000.0) {
tmp = -i * ((j * t) * y5);
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-3d+41)) then
tmp = ((t * z) * i) * c
else if (z <= (-1.22d-193)) then
tmp = ((j * x) * y1) * i
else if (z <= 2d-264) then
tmp = ((y2 * k) * y4) * y1
else if (z <= 3800000000000.0d0) then
tmp = -i * ((j * t) * y5)
else
tmp = ((c * z) * i) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.22e-193) {
tmp = ((j * x) * y1) * i;
} else if (z <= 2e-264) {
tmp = ((y2 * k) * y4) * y1;
} else if (z <= 3800000000000.0) {
tmp = -i * ((j * t) * y5);
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -3e+41: tmp = ((t * z) * i) * c elif z <= -1.22e-193: tmp = ((j * x) * y1) * i elif z <= 2e-264: tmp = ((y2 * k) * y4) * y1 elif z <= 3800000000000.0: tmp = -i * ((j * t) * y5) else: tmp = ((c * z) * i) * t return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -3e+41) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -1.22e-193) tmp = Float64(Float64(Float64(j * x) * y1) * i); elseif (z <= 2e-264) tmp = Float64(Float64(Float64(y2 * k) * y4) * y1); elseif (z <= 3800000000000.0) tmp = Float64(Float64(-i) * Float64(Float64(j * t) * y5)); else tmp = Float64(Float64(Float64(c * z) * i) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -3e+41) tmp = ((t * z) * i) * c; elseif (z <= -1.22e-193) tmp = ((j * x) * y1) * i; elseif (z <= 2e-264) tmp = ((y2 * k) * y4) * y1; elseif (z <= 3800000000000.0) tmp = -i * ((j * t) * y5); else tmp = ((c * z) * i) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -3e+41], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -1.22e-193], N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 2e-264], N[(N[(N[(y2 * k), $MachinePrecision] * y4), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[z, 3800000000000.0], N[((-i) * N[(N[(j * t), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -1.22 \cdot 10^{-193}:\\
\;\;\;\;\left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-264}:\\
\;\;\;\;\left(\left(y2 \cdot k\right) \cdot y4\right) \cdot y1\\
\mathbf{elif}\;z \leq 3800000000000:\\
\;\;\;\;\left(-i\right) \cdot \left(\left(j \cdot t\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -2.9999999999999998e41Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in c around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites44.5%
if -2.9999999999999998e41 < z < -1.21999999999999988e-193Initial program 36.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in j around inf
Applied rewrites49.7%
Taylor expanded in b around 0
Applied rewrites36.9%
if -1.21999999999999988e-193 < z < 2e-264Initial program 39.4%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.8%
Taylor expanded in y4 around inf
Applied rewrites27.9%
Taylor expanded in y3 around 0
Applied rewrites22.9%
if 2e-264 < z < 3.8e12Initial program 40.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.6%
Taylor expanded in c around inf
Applied rewrites18.1%
Taylor expanded in t around inf
Applied rewrites23.4%
Taylor expanded in c around 0
Applied rewrites23.1%
if 3.8e12 < z Initial program 28.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.2%
Taylor expanded in c around inf
Applied rewrites34.9%
Taylor expanded in t around inf
Applied rewrites34.9%
Applied rewrites36.5%
Final simplification33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma t z (* (- x) y)) (* i c))))
(if (<= i -7.7e-59)
t_1
(if (<= i 5.6e-151)
(* (fma j y0 (* (- a) y)) (* y5 y3))
(if (<= i 1.6e-55) (- (* (* (* j x) y0) b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(t, z, (-x * y)) * (i * c);
double tmp;
if (i <= -7.7e-59) {
tmp = t_1;
} else if (i <= 5.6e-151) {
tmp = fma(j, y0, (-a * y)) * (y5 * y3);
} else if (i <= 1.6e-55) {
tmp = -(((j * x) * y0) * b);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)) tmp = 0.0 if (i <= -7.7e-59) tmp = t_1; elseif (i <= 5.6e-151) tmp = Float64(fma(j, y0, Float64(Float64(-a) * y)) * Float64(y5 * y3)); elseif (i <= 1.6e-55) tmp = Float64(-Float64(Float64(Float64(j * x) * y0) * b)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.7e-59], t$95$1, If[LessEqual[i, 5.6e-151], N[(N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision] * N[(y5 * y3), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e-55], (-N[(N[(N[(j * x), $MachinePrecision] * y0), $MachinePrecision] * b), $MachinePrecision]), t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{if}\;i \leq -7.7 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{-151}:\\
\;\;\;\;\mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right) \cdot \left(y5 \cdot y3\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{-55}:\\
\;\;\;\;-\left(\left(j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -7.7e-59 or 1.6000000000000001e-55 < i Initial program 26.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.6%
Taylor expanded in c around inf
Applied rewrites38.5%
if -7.7e-59 < i < 5.6000000000000002e-151Initial program 44.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in y3 around inf
Applied rewrites31.1%
if 5.6000000000000002e-151 < i < 1.6000000000000001e-55Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in j around inf
Applied rewrites64.9%
Taylor expanded in b around inf
Applied rewrites58.7%
Final simplification37.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j x) y1) i)))
(if (<= z -3e+41)
(* (* (* t z) i) c)
(if (<= z -1.2e-191)
t_1
(if (<= z 1.56e-35)
(* (fma i k (* (- a) y3)) (* y5 y))
(if (<= z 820000000000.0) t_1 (* (* (* c z) i) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * x) * y1) * i;
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.2e-191) {
tmp = t_1;
} else if (z <= 1.56e-35) {
tmp = fma(i, k, (-a * y3)) * (y5 * y);
} else if (z <= 820000000000.0) {
tmp = t_1;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(j * x) * y1) * i) tmp = 0.0 if (z <= -3e+41) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -1.2e-191) tmp = t_1; elseif (z <= 1.56e-35) tmp = Float64(fma(i, k, Float64(Float64(-a) * y3)) * Float64(y5 * y)); elseif (z <= 820000000000.0) tmp = t_1; else tmp = Float64(Float64(Float64(c * z) * i) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[z, -3e+41], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -1.2e-191], t$95$1, If[LessEqual[z, 1.56e-35], N[(N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 820000000000.0], t$95$1, N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{if}\;z \leq -3 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-191}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.56 \cdot 10^{-35}:\\
\;\;\;\;\mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{elif}\;z \leq 820000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -2.9999999999999998e41Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in c around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites44.5%
if -2.9999999999999998e41 < z < -1.2e-191 or 1.56e-35 < z < 8.2e11Initial program 33.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.4%
Taylor expanded in j around inf
Applied rewrites49.1%
Taylor expanded in b around 0
Applied rewrites38.3%
if -1.2e-191 < z < 1.56e-35Initial program 41.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in y around inf
Applied rewrites30.8%
if 8.2e11 < z Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in c around inf
Applied rewrites36.0%
Taylor expanded in t around inf
Applied rewrites34.3%
Applied rewrites35.9%
Final simplification36.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j x) y1) i)))
(if (<= z -3e+41)
(* (* (* t z) i) c)
(if (<= z -1.2e-143)
t_1
(if (<= z 4e-34)
(* (* (- y4) (* y3 j)) y1)
(if (<= z 820000000000.0) t_1 (* (* (* c z) i) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * x) * y1) * i;
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.2e-143) {
tmp = t_1;
} else if (z <= 4e-34) {
tmp = (-y4 * (y3 * j)) * y1;
} else if (z <= 820000000000.0) {
tmp = t_1;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((j * x) * y1) * i
if (z <= (-3d+41)) then
tmp = ((t * z) * i) * c
else if (z <= (-1.2d-143)) then
tmp = t_1
else if (z <= 4d-34) then
tmp = (-y4 * (y3 * j)) * y1
else if (z <= 820000000000.0d0) then
tmp = t_1
else
tmp = ((c * z) * i) * t
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 = ((j * x) * y1) * i;
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.2e-143) {
tmp = t_1;
} else if (z <= 4e-34) {
tmp = (-y4 * (y3 * j)) * y1;
} else if (z <= 820000000000.0) {
tmp = t_1;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((j * x) * y1) * i tmp = 0 if z <= -3e+41: tmp = ((t * z) * i) * c elif z <= -1.2e-143: tmp = t_1 elif z <= 4e-34: tmp = (-y4 * (y3 * j)) * y1 elif z <= 820000000000.0: tmp = t_1 else: tmp = ((c * z) * i) * t return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(j * x) * y1) * i) tmp = 0.0 if (z <= -3e+41) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -1.2e-143) tmp = t_1; elseif (z <= 4e-34) tmp = Float64(Float64(Float64(-y4) * Float64(y3 * j)) * y1); elseif (z <= 820000000000.0) tmp = t_1; else tmp = Float64(Float64(Float64(c * z) * i) * t); 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 = ((j * x) * y1) * i; tmp = 0.0; if (z <= -3e+41) tmp = ((t * z) * i) * c; elseif (z <= -1.2e-143) tmp = t_1; elseif (z <= 4e-34) tmp = (-y4 * (y3 * j)) * y1; elseif (z <= 820000000000.0) tmp = t_1; else tmp = ((c * z) * i) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[z, -3e+41], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -1.2e-143], t$95$1, If[LessEqual[z, 4e-34], N[(N[((-y4) * N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[z, 820000000000.0], t$95$1, N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{if}\;z \leq -3 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-34}:\\
\;\;\;\;\left(\left(-y4\right) \cdot \left(y3 \cdot j\right)\right) \cdot y1\\
\mathbf{elif}\;z \leq 820000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -2.9999999999999998e41Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in c around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites44.5%
if -2.9999999999999998e41 < z < -1.1999999999999999e-143 or 3.99999999999999971e-34 < z < 8.2e11Initial program 33.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in j around inf
Applied rewrites47.6%
Taylor expanded in b around 0
Applied rewrites39.0%
if -1.1999999999999999e-143 < z < 3.99999999999999971e-34Initial program 40.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.4%
Taylor expanded in y4 around inf
Applied rewrites30.5%
Taylor expanded in y3 around inf
Applied rewrites24.0%
if 8.2e11 < z Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in c around inf
Applied rewrites36.0%
Taylor expanded in t around inf
Applied rewrites34.3%
Applied rewrites35.9%
Final simplification34.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j x) y1) i)))
(if (<= z -3e+41)
(* (* (* t z) i) c)
(if (<= z -1.16e-143)
t_1
(if (<= z 4e-34)
(* (* (* (- y4) y3) j) y1)
(if (<= z 820000000000.0) t_1 (* (* (* c z) i) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * x) * y1) * i;
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.16e-143) {
tmp = t_1;
} else if (z <= 4e-34) {
tmp = ((-y4 * y3) * j) * y1;
} else if (z <= 820000000000.0) {
tmp = t_1;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((j * x) * y1) * i
if (z <= (-3d+41)) then
tmp = ((t * z) * i) * c
else if (z <= (-1.16d-143)) then
tmp = t_1
else if (z <= 4d-34) then
tmp = ((-y4 * y3) * j) * y1
else if (z <= 820000000000.0d0) then
tmp = t_1
else
tmp = ((c * z) * i) * t
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 = ((j * x) * y1) * i;
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= -1.16e-143) {
tmp = t_1;
} else if (z <= 4e-34) {
tmp = ((-y4 * y3) * j) * y1;
} else if (z <= 820000000000.0) {
tmp = t_1;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((j * x) * y1) * i tmp = 0 if z <= -3e+41: tmp = ((t * z) * i) * c elif z <= -1.16e-143: tmp = t_1 elif z <= 4e-34: tmp = ((-y4 * y3) * j) * y1 elif z <= 820000000000.0: tmp = t_1 else: tmp = ((c * z) * i) * t return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(j * x) * y1) * i) tmp = 0.0 if (z <= -3e+41) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= -1.16e-143) tmp = t_1; elseif (z <= 4e-34) tmp = Float64(Float64(Float64(Float64(-y4) * y3) * j) * y1); elseif (z <= 820000000000.0) tmp = t_1; else tmp = Float64(Float64(Float64(c * z) * i) * t); 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 = ((j * x) * y1) * i; tmp = 0.0; if (z <= -3e+41) tmp = ((t * z) * i) * c; elseif (z <= -1.16e-143) tmp = t_1; elseif (z <= 4e-34) tmp = ((-y4 * y3) * j) * y1; elseif (z <= 820000000000.0) tmp = t_1; else tmp = ((c * z) * i) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[z, -3e+41], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, -1.16e-143], t$95$1, If[LessEqual[z, 4e-34], N[(N[(N[((-y4) * y3), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[z, 820000000000.0], t$95$1, N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{if}\;z \leq -3 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-34}:\\
\;\;\;\;\left(\left(\left(-y4\right) \cdot y3\right) \cdot j\right) \cdot y1\\
\mathbf{elif}\;z \leq 820000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -2.9999999999999998e41Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in c around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites44.5%
if -2.9999999999999998e41 < z < -1.16000000000000008e-143 or 3.99999999999999971e-34 < z < 8.2e11Initial program 33.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in j around inf
Applied rewrites47.6%
Taylor expanded in b around 0
Applied rewrites39.0%
if -1.16000000000000008e-143 < z < 3.99999999999999971e-34Initial program 40.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.4%
Taylor expanded in y4 around inf
Applied rewrites30.5%
Taylor expanded in y3 around inf
Applied rewrites25.2%
Taylor expanded in a around 0
Applied rewrites22.9%
if 8.2e11 < z Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in c around inf
Applied rewrites36.0%
Taylor expanded in t around inf
Applied rewrites34.3%
Applied rewrites35.9%
Final simplification34.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1600.0)
(* (* (fma (- k) y0 (* a t)) y2) y5)
(if (<= y5 2.4e+17)
(* (* (fma t z (* (- x) y)) c) i)
(* (* (fma (- j) t (* k y)) i) 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 (y5 <= -1600.0) {
tmp = (fma(-k, y0, (a * t)) * y2) * y5;
} else if (y5 <= 2.4e+17) {
tmp = (fma(t, z, (-x * y)) * c) * i;
} else {
tmp = (fma(-j, t, (k * y)) * i) * 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 (y5 <= -1600.0) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y2) * y5); elseif (y5 <= 2.4e+17) tmp = Float64(Float64(fma(t, z, Float64(Float64(-x) * y)) * c) * i); else tmp = Float64(Float64(fma(Float64(-j), t, Float64(k * y)) * i) * y5); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1600.0], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[y5, 2.4e+17], N[(N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision], N[(N[(N[((-j) * t + N[(k * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1600:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y2\right) \cdot y5\\
\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+17}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot c\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, t, k \cdot y\right) \cdot i\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1600Initial program 30.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.1%
Taylor expanded in y2 around inf
Applied rewrites50.8%
if -1600 < y5 < 2.4e17Initial program 29.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.9%
Taylor expanded in c around inf
Applied rewrites36.5%
if 2.4e17 < y5 Initial program 42.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.8%
Taylor expanded in i around inf
Applied rewrites42.9%
Final simplification41.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1250.0)
(* (* (fma (- k) y0 (* a t)) y2) y5)
(if (<= y5 1.3e-65)
(* (fma t z (* (- x) y)) (* i c))
(* (* (fma (- j) t (* k y)) i) 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 (y5 <= -1250.0) {
tmp = (fma(-k, y0, (a * t)) * y2) * y5;
} else if (y5 <= 1.3e-65) {
tmp = fma(t, z, (-x * y)) * (i * c);
} else {
tmp = (fma(-j, t, (k * y)) * i) * 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 (y5 <= -1250.0) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y2) * y5); elseif (y5 <= 1.3e-65) tmp = Float64(fma(t, z, Float64(Float64(-x) * y)) * Float64(i * c)); else tmp = Float64(Float64(fma(Float64(-j), t, Float64(k * y)) * i) * y5); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -1250.0], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[y5, 1.3e-65], N[(N[(t * z + N[((-x) * y), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-j) * t + N[(k * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1250:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y2\right) \cdot y5\\
\mathbf{elif}\;y5 \leq 1.3 \cdot 10^{-65}:\\
\;\;\;\;\mathsf{fma}\left(t, z, \left(-x\right) \cdot y\right) \cdot \left(i \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, t, k \cdot y\right) \cdot i\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1250Initial program 30.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.1%
Taylor expanded in y2 around inf
Applied rewrites50.8%
if -1250 < y5 < 1.30000000000000005e-65Initial program 30.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.9%
Taylor expanded in c around inf
Applied rewrites33.6%
if 1.30000000000000005e-65 < y5 Initial program 39.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.0%
Taylor expanded in i around inf
Applied rewrites40.0%
Final simplification39.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -3e+41) (* (* (* t z) i) c) (if (<= z 820000000000.0) (* (* (* j x) y1) i) (* (* (* c z) i) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= 820000000000.0) {
tmp = ((j * x) * y1) * i;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-3d+41)) then
tmp = ((t * z) * i) * c
else if (z <= 820000000000.0d0) then
tmp = ((j * x) * y1) * i
else
tmp = ((c * z) * i) * t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -3e+41) {
tmp = ((t * z) * i) * c;
} else if (z <= 820000000000.0) {
tmp = ((j * x) * y1) * i;
} else {
tmp = ((c * z) * i) * t;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -3e+41: tmp = ((t * z) * i) * c elif z <= 820000000000.0: tmp = ((j * x) * y1) * i else: tmp = ((c * z) * i) * t return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -3e+41) tmp = Float64(Float64(Float64(t * z) * i) * c); elseif (z <= 820000000000.0) tmp = Float64(Float64(Float64(j * x) * y1) * i); else tmp = Float64(Float64(Float64(c * z) * i) * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -3e+41) tmp = ((t * z) * i) * c; elseif (z <= 820000000000.0) tmp = ((j * x) * y1) * i; else tmp = ((c * z) * i) * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -3e+41], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[z, 820000000000.0], N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision], N[(N[(N[(c * z), $MachinePrecision] * i), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{elif}\;z \leq 820000000000:\\
\;\;\;\;\left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot z\right) \cdot i\right) \cdot t\\
\end{array}
\end{array}
if z < -2.9999999999999998e41Initial program 22.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.1%
Taylor expanded in c around inf
Applied rewrites33.6%
Taylor expanded in t around inf
Applied rewrites44.5%
if -2.9999999999999998e41 < z < 8.2e11Initial program 38.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.1%
Taylor expanded in j around inf
Applied rewrites28.9%
Taylor expanded in b around 0
Applied rewrites20.9%
if 8.2e11 < z Initial program 29.9%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in c around inf
Applied rewrites36.0%
Taylor expanded in t around inf
Applied rewrites34.3%
Applied rewrites35.9%
Final simplification30.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= z -1e+58) (* (* (* t z) i) c) (* (* (* i c) t) z)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1e+58) {
tmp = ((t * z) * i) * c;
} else {
tmp = ((i * c) * t) * z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-1d+58)) then
tmp = ((t * z) * i) * c
else
tmp = ((i * c) * t) * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1e+58) {
tmp = ((t * z) * i) * c;
} else {
tmp = ((i * c) * t) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1e+58: tmp = ((t * z) * i) * c else: tmp = ((i * c) * t) * z return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1e+58) tmp = Float64(Float64(Float64(t * z) * i) * c); else tmp = Float64(Float64(Float64(i * c) * t) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -1e+58) tmp = ((t * z) * i) * c; else tmp = ((i * c) * t) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1e+58], N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision], N[(N[(N[(i * c), $MachinePrecision] * t), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+58}:\\
\;\;\;\;\left(\left(t \cdot z\right) \cdot i\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;\left(\left(i \cdot c\right) \cdot t\right) \cdot z\\
\end{array}
\end{array}
if z < -9.99999999999999944e57Initial program 19.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in c around inf
Applied rewrites31.1%
Taylor expanded in t around inf
Applied rewrites43.1%
if -9.99999999999999944e57 < z Initial program 36.3%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.5%
Taylor expanded in c around inf
Applied rewrites25.6%
Taylor expanded in t around inf
Applied rewrites15.6%
Applied rewrites18.4%
Final simplification23.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* t z) i) c))
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 ((t * z) * i) * c;
}
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 = ((t * z) * i) * c
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 ((t * z) * i) * c;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((t * z) * i) * c
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(t * z) * i) * c) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((t * z) * i) * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(t * z), $MachinePrecision] * i), $MachinePrecision] * c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(t \cdot z\right) \cdot i\right) \cdot c
\end{array}
Initial program 32.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in c around inf
Applied rewrites26.8%
Taylor expanded in t around inf
Applied rewrites21.7%
Final simplification21.7%
(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 2024255
(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)))))