
(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 23 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
(- (* j t) (* k y))
b
(fma (- (* y2 k) (* y3 j)) y1 (* (- (* y3 y) (* y2 t)) c)))
y4))
(t_2 (- (* y5 i) (* y4 b))))
(if (<= y4 -2.8e-24)
t_1
(if (<= y4 -1.4e-307)
(*
(fma
t_2
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
(if (<= y4 3.7e-63)
(*
(fma
(- (* y3 z) (* y2 x))
y1
(fma (- (* y x) (* t z)) b (* (- (* y2 t) (* y3 y)) y5)))
a)
(if (<= y4 3.45e+37)
(*
(fma
t_2
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= y4 2e+147) (* (* (fma k y0 (* (- t) a)) z) 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(((j * t) - (k * y)), b, fma(((y2 * k) - (y3 * j)), y1, (((y3 * y) - (y2 * t)) * c))) * y4;
double t_2 = (y5 * i) - (y4 * b);
double tmp;
if (y4 <= -2.8e-24) {
tmp = t_1;
} else if (y4 <= -1.4e-307) {
tmp = fma(t_2, y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} else if (y4 <= 3.7e-63) {
tmp = fma(((y3 * z) - (y2 * x)), y1, fma(((y * x) - (t * z)), b, (((y2 * t) - (y3 * y)) * y5))) * a;
} else if (y4 <= 3.45e+37) {
tmp = fma(t_2, k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (y4 <= 2e+147) {
tmp = (fma(k, y0, (-t * a)) * z) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(j * t) - Float64(k * y)), b, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y1, Float64(Float64(Float64(y3 * y) - Float64(y2 * t)) * c))) * y4) t_2 = Float64(Float64(y5 * i) - Float64(y4 * b)) tmp = 0.0 if (y4 <= -2.8e-24) tmp = t_1; elseif (y4 <= -1.4e-307) tmp = Float64(fma(t_2, y, fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), y2, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * z))) * k); elseif (y4 <= 3.7e-63) 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 (y4 <= 3.45e+37) tmp = Float64(fma(t_2, k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (y4 <= 2e+147) tmp = Float64(Float64(fma(k, y0, Float64(Float64(-t) * a)) * z) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -2.8e-24], t$95$1, If[LessEqual[y4, -1.4e-307], N[(N[(t$95$2 * y + N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[y4, 3.7e-63], 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[y4, 3.45e+37], N[(N[(t$95$2 * 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[y4, 2e+147], N[(N[(N[(k * y0 + N[((-t) * a), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision] * b), $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\\
t_2 := y5 \cdot i - y4 \cdot b\\
\mathbf{if}\;y4 \leq -2.8 \cdot 10^{-24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq -1.4 \cdot 10^{-307}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, y, \mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, y2, \left(y0 \cdot b - y1 \cdot i\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;y4 \leq 3.7 \cdot 10^{-63}:\\
\;\;\;\;\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}\;y4 \leq 3.45 \cdot 10^{+37}:\\
\;\;\;\;\mathsf{fma}\left(t\_2, 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}\;y4 \leq 2 \cdot 10^{+147}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y0, \left(-t\right) \cdot a\right) \cdot z\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -2.8000000000000002e-24 or 2e147 < y4 Initial program 27.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.1%
if -2.8000000000000002e-24 < y4 < -1.4e-307Initial program 34.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.0%
if -1.4e-307 < y4 < 3.70000000000000012e-63Initial program 29.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.7%
if 3.70000000000000012e-63 < y4 < 3.4499999999999998e37Initial program 34.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites67.1%
if 3.4499999999999998e37 < y4 < 2e147Initial program 15.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.2%
Taylor expanded in z around inf
Applied rewrites92.6%
Final simplification60.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(-
(-
(-
(-
(-
(* (- (* y1 i) (* y0 b)) (- (* j x) (* k z)))
(* (- (* t z) (* y x)) (- (* b a) (* i c))))
(* (- (* y1 a) (* y0 c)) (- (* y2 x) (* y3 z))))
(* (- (* y5 i) (* y4 b)) (- (* j t) (* k y))))
(* (- (* y5 a) (* y4 c)) (- (* y3 y) (* y2 t))))
(* (- (* y5 y0) (* y4 y1)) (- (* y2 k) (* y3 j))))))
(if (<= t_1 INFINITY)
t_1
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma y4 c (* (- a) y5)) y3) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((y1 * i) - (y0 * b)) * ((j * x) - (k * z))) - (((t * z) - (y * x)) * ((b * a) - (i * c)))) - (((y1 * a) - (y0 * c)) * ((y2 * x) - (y3 * z)))) - (((y5 * i) - (y4 * b)) * ((j * t) - (k * y)))) - (((y5 * a) - (y4 * c)) * ((y3 * y) - (y2 * t)))) - (((y5 * y0) - (y4 * y1)) * ((y2 * k) - (y3 * j)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(y4, c, (-a * y5)) * y3) * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(y1 * i) - Float64(y0 * b)) * Float64(Float64(j * x) - Float64(k * z))) - Float64(Float64(Float64(t * z) - Float64(y * x)) * Float64(Float64(b * a) - Float64(i * c)))) - Float64(Float64(Float64(y1 * a) - Float64(y0 * c)) * Float64(Float64(y2 * x) - Float64(y3 * z)))) - Float64(Float64(Float64(y5 * i) - Float64(y4 * b)) * Float64(Float64(j * t) - Float64(k * y)))) - Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * Float64(Float64(y3 * y) - Float64(y2 * t)))) - Float64(Float64(Float64(y5 * y0) - Float64(y4 * y1)) * Float64(Float64(y2 * k) - Float64(y3 * j)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y3) * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(y1 * i), $MachinePrecision] - N[(y0 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * z), $MachinePrecision] - N[(y * x), $MachinePrecision]), $MachinePrecision] * N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * a), $MachinePrecision] - N[(y0 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * N[(N[(y3 * y), $MachinePrecision] - N[(y2 * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y5 * y0), $MachinePrecision] - N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(y1 \cdot i - y0 \cdot b\right) \cdot \left(j \cdot x - k \cdot z\right) - \left(t \cdot z - y \cdot x\right) \cdot \left(b \cdot a - i \cdot c\right)\right) - \left(y1 \cdot a - y0 \cdot c\right) \cdot \left(y2 \cdot x - y3 \cdot z\right)\right) - \left(y5 \cdot i - y4 \cdot b\right) \cdot \left(j \cdot t - k \cdot y\right)\right) - \left(y5 \cdot a - y4 \cdot c\right) \cdot \left(y3 \cdot y - y2 \cdot t\right)\right) - \left(y5 \cdot y0 - y4 \cdot y1\right) \cdot \left(y2 \cdot k - y3 \cdot j\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y5, y0, y4 \cdot y1\right), \mathsf{fma}\left(-y3, j, y2 \cdot k\right), \left(\mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y3\right) \cdot y\right)\\
\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 91.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 y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.0%
Taylor expanded in y3 around inf
Applied rewrites42.9%
Applied rewrites44.6%
Final simplification59.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y2 k) (* y3 j)))
(t_2
(*
(fma
(- (* k y) (* j t))
i
(fma (- y0) t_1 (* (- (* y2 t) (* y3 y)) a)))
y5)))
(if (<= y5 -1.2e+51)
t_2
(if (<= y5 3.3e-262)
(*
(fma
(- (* y5 i) (* y4 b))
y
(fma (- (* y4 y1) (* y5 y0)) y2 (* (- (* y0 b) (* y1 i)) z)))
k)
(if (<= y5 5.8e+89)
(*
(fma (- (* j t) (* k y)) b (fma t_1 y1 (* (- (* y3 y) (* y2 t)) c)))
y4)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * k) - (y3 * j);
double t_2 = fma(((k * y) - (j * t)), i, fma(-y0, t_1, (((y2 * t) - (y3 * y)) * a))) * y5;
double tmp;
if (y5 <= -1.2e+51) {
tmp = t_2;
} else if (y5 <= 3.3e-262) {
tmp = fma(((y5 * i) - (y4 * b)), y, fma(((y4 * y1) - (y5 * y0)), y2, (((y0 * b) - (y1 * i)) * z))) * k;
} else if (y5 <= 5.8e+89) {
tmp = fma(((j * t) - (k * y)), b, fma(t_1, y1, (((y3 * y) - (y2 * t)) * c))) * y4;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * k) - Float64(y3 * j)) t_2 = 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) tmp = 0.0 if (y5 <= -1.2e+51) tmp = t_2; elseif (y5 <= 3.3e-262) 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); elseif (y5 <= 5.8e+89) 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); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[y5, -1.2e+51], t$95$2, If[LessEqual[y5, 3.3e-262], 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], If[LessEqual[y5, 5.8e+89], 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], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot k - y3 \cdot j\\
t_2 := \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\\
\mathbf{if}\;y5 \leq -1.2 \cdot 10^{+51}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq 3.3 \cdot 10^{-262}:\\
\;\;\;\;\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\\
\mathbf{elif}\;y5 \leq 5.8 \cdot 10^{+89}:\\
\;\;\;\;\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{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y5 < -1.1999999999999999e51 or 5.80000000000000051e89 < y5 Initial program 25.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.6%
if -1.1999999999999999e51 < y5 < 3.3000000000000003e-262Initial program 31.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.5%
if 3.3000000000000003e-262 < y5 < 5.80000000000000051e89Initial program 33.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.0%
Final simplification58.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y0 c) (* y1 a))))
(if (<= b -6.2e+57)
(*
(fma
(- (* y x) (* t z))
a
(fma (- (* j t) (* k y)) y4 (* (- (* k z) (* j x)) y0)))
b)
(if (<= b -8.4e-70)
(*
(fma
(- (* i c) (* b a))
t
(fma (- y3) t_1 (* (- (* y0 b) (* y1 i)) k)))
z)
(if (<= b -2.1e-241)
(*
(fma
(- (* y4 y1) (* y5 y0))
k
(fma t_1 x (* (- (* y5 a) (* y4 c)) t)))
y2)
(if (<= b 10200.0)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma y4 c (* (- a) y5)) y3) y))
(* (fma j y4 (* (- a) z)) (* b 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 = (y0 * c) - (y1 * a);
double tmp;
if (b <= -6.2e+57) {
tmp = fma(((y * x) - (t * z)), a, fma(((j * t) - (k * y)), y4, (((k * z) - (j * x)) * y0))) * b;
} else if (b <= -8.4e-70) {
tmp = fma(((i * c) - (b * a)), t, fma(-y3, t_1, (((y0 * b) - (y1 * i)) * k))) * z;
} else if (b <= -2.1e-241) {
tmp = fma(((y4 * y1) - (y5 * y0)), k, fma(t_1, x, (((y5 * a) - (y4 * c)) * t))) * y2;
} else if (b <= 10200.0) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(y4, c, (-a * y5)) * y3) * y));
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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(y0 * c) - Float64(y1 * a)) tmp = 0.0 if (b <= -6.2e+57) tmp = Float64(fma(Float64(Float64(y * x) - Float64(t * z)), a, fma(Float64(Float64(j * t) - Float64(k * y)), y4, Float64(Float64(Float64(k * z) - Float64(j * x)) * y0))) * b); elseif (b <= -8.4e-70) tmp = Float64(fma(Float64(Float64(i * c) - Float64(b * a)), t, fma(Float64(-y3), t_1, Float64(Float64(Float64(y0 * b) - Float64(y1 * i)) * k))) * z); elseif (b <= -2.1e-241) tmp = Float64(fma(Float64(Float64(y4 * y1) - Float64(y5 * y0)), k, fma(t_1, x, Float64(Float64(Float64(y5 * a) - Float64(y4 * c)) * t))) * y2); elseif (b <= 10200.0) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y3) * y)); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * 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[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e+57], N[(N[(N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -8.4e-70], N[(N[(N[(N[(i * c), $MachinePrecision] - N[(b * a), $MachinePrecision]), $MachinePrecision] * t + N[((-y3) * t$95$1 + N[(N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, -2.1e-241], N[(N[(N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$1 * x + N[(N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 10200.0], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot c - y1 \cdot a\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot x - t \cdot z, a, \mathsf{fma}\left(j \cdot t - k \cdot y, y4, \left(k \cdot z - j \cdot x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;b \leq -8.4 \cdot 10^{-70}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot c - b \cdot a, t, \mathsf{fma}\left(-y3, t\_1, \left(y0 \cdot b - y1 \cdot i\right) \cdot k\right)\right) \cdot z\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-241}:\\
\;\;\;\;\mathsf{fma}\left(y4 \cdot y1 - y5 \cdot y0, k, \mathsf{fma}\left(t\_1, x, \left(y5 \cdot a - y4 \cdot c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;b \leq 10200:\\
\;\;\;\;\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(y4, c, \left(-a\right) \cdot y5\right) \cdot y3\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -6.20000000000000026e57Initial program 27.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
if -6.20000000000000026e57 < b < -8.4000000000000004e-70Initial program 28.6%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.5%
if -8.4000000000000004e-70 < b < -2.0999999999999999e-241Initial program 37.8%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
if -2.0999999999999999e-241 < b < 10200Initial program 31.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.1%
Taylor expanded in y3 around inf
Applied rewrites52.1%
Applied rewrites56.0%
if 10200 < b Initial program 25.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in t around inf
Applied rewrites56.6%
Final simplification58.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(fma
(- (* y3 z) (* y2 x))
a
(fma (- (* y2 k) (* y3 j)) y4 (* (- (* j x) (* k z)) i)))
y1)))
(if (<= y1 -1.24e-14)
t_1
(if (<= y1 9.5e-13)
(*
(fma
(- (* y5 i) (* y4 b))
k
(fma (- (* b a) (* i c)) x (* (- (* y4 c) (* y5 a)) y3)))
y)
(if (<= y1 5.8e+155)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma y4 c (* (- a) y5)) y3) y))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(((y3 * z) - (y2 * x)), a, fma(((y2 * k) - (y3 * j)), y4, (((j * x) - (k * z)) * i))) * y1;
double tmp;
if (y1 <= -1.24e-14) {
tmp = t_1;
} else if (y1 <= 9.5e-13) {
tmp = fma(((y5 * i) - (y4 * b)), k, fma(((b * a) - (i * c)), x, (((y4 * c) - (y5 * a)) * y3))) * y;
} else if (y1 <= 5.8e+155) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(y4, c, (-a * y5)) * y3) * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(Float64(y3 * z) - Float64(y2 * x)), a, fma(Float64(Float64(y2 * k) - Float64(y3 * j)), y4, Float64(Float64(Float64(j * x) - Float64(k * z)) * i))) * y1) tmp = 0.0 if (y1 <= -1.24e-14) tmp = t_1; elseif (y1 <= 9.5e-13) tmp = Float64(fma(Float64(Float64(y5 * i) - Float64(y4 * b)), k, fma(Float64(Float64(b * a) - Float64(i * c)), x, Float64(Float64(Float64(y4 * c) - Float64(y5 * a)) * y3))) * y); elseif (y1 <= 5.8e+155) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y3) * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(y3 * z), $MachinePrecision] - N[(y2 * x), $MachinePrecision]), $MachinePrecision] * a + N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * y4 + N[(N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]}, If[LessEqual[y1, -1.24e-14], t$95$1, If[LessEqual[y1, 9.5e-13], N[(N[(N[(N[(y5 * i), $MachinePrecision] - N[(y4 * b), $MachinePrecision]), $MachinePrecision] * k + N[(N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision] * x + N[(N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 5.8e+155], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y3 \cdot z - y2 \cdot x, a, \mathsf{fma}\left(y2 \cdot k - y3 \cdot j, y4, \left(j \cdot x - k \cdot z\right) \cdot i\right)\right) \cdot y1\\
\mathbf{if}\;y1 \leq -1.24 \cdot 10^{-14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 9.5 \cdot 10^{-13}:\\
\;\;\;\;\mathsf{fma}\left(y5 \cdot i - y4 \cdot b, k, \mathsf{fma}\left(b \cdot a - i \cdot c, x, \left(y4 \cdot c - y5 \cdot a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;y1 \leq 5.8 \cdot 10^{+155}:\\
\;\;\;\;\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(y4, c, \left(-a\right) \cdot y5\right) \cdot y3\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -1.24e-14 or 5.7999999999999998e155 < y1 Initial program 19.9%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.2%
if -1.24e-14 < y1 < 9.49999999999999991e-13Initial program 40.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.0%
if 9.49999999999999991e-13 < y1 < 5.7999999999999998e155Initial program 19.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.2%
Taylor expanded in y3 around inf
Applied rewrites57.4%
Applied rewrites60.1%
Final simplification55.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- i) j (* y2 a))) (t_2 (* (* t_1 (- y1)) x)))
(if (<= y1 -9e+168)
t_2
(if (<= y1 -1.02e-41)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= y1 -3.8e-119)
(* t_1 (* y5 t))
(if (<= y1 2.8e-8)
(* (* (fma j y4 (* (- a) z)) t) b)
(if (<= y1 1e+112)
(* (* (fma (- j) y1 (* c y)) y4) y3)
(if (<= y1 3.4e+202)
t_2
(* (fma (- y3) y4 (* i x)) (* y1 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 t_1 = fma(-i, j, (y2 * a));
double t_2 = (t_1 * -y1) * x;
double tmp;
if (y1 <= -9e+168) {
tmp = t_2;
} else if (y1 <= -1.02e-41) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (y1 <= -3.8e-119) {
tmp = t_1 * (y5 * t);
} else if (y1 <= 2.8e-8) {
tmp = (fma(j, y4, (-a * z)) * t) * b;
} else if (y1 <= 1e+112) {
tmp = (fma(-j, y1, (c * y)) * y4) * y3;
} else if (y1 <= 3.4e+202) {
tmp = t_2;
} else {
tmp = fma(-y3, y4, (i * x)) * (y1 * j);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-i), j, Float64(y2 * a)) t_2 = Float64(Float64(t_1 * Float64(-y1)) * x) tmp = 0.0 if (y1 <= -9e+168) tmp = t_2; elseif (y1 <= -1.02e-41) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (y1 <= -3.8e-119) tmp = Float64(t_1 * Float64(y5 * t)); elseif (y1 <= 2.8e-8) tmp = Float64(Float64(fma(j, y4, Float64(Float64(-a) * z)) * t) * b); elseif (y1 <= 1e+112) tmp = Float64(Float64(fma(Float64(-j), y1, Float64(c * y)) * y4) * y3); elseif (y1 <= 3.4e+202) tmp = t_2; else tmp = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)); 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[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t$95$1 * (-y1)), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y1, -9e+168], t$95$2, If[LessEqual[y1, -1.02e-41], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, -3.8e-119], N[(t$95$1 * N[(y5 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.8e-8], N[(N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, 1e+112], N[(N[(N[((-j) * y1 + N[(c * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y1, 3.4e+202], t$95$2, N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, j, y2 \cdot a\right)\\
t_2 := \left(t\_1 \cdot \left(-y1\right)\right) \cdot x\\
\mathbf{if}\;y1 \leq -9 \cdot 10^{+168}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq -1.02 \cdot 10^{-41}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;y1 \leq -3.8 \cdot 10^{-119}:\\
\;\;\;\;t\_1 \cdot \left(y5 \cdot t\right)\\
\mathbf{elif}\;y1 \leq 2.8 \cdot 10^{-8}:\\
\;\;\;\;\left(\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot t\right) \cdot b\\
\mathbf{elif}\;y1 \leq 10^{+112}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y1, c \cdot y\right) \cdot y4\right) \cdot y3\\
\mathbf{elif}\;y1 \leq 3.4 \cdot 10^{+202}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\end{array}
\end{array}
if y1 < -9.00000000000000024e168 or 9.9999999999999993e111 < y1 < 3.4e202Initial program 19.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.9%
Taylor expanded in y1 around -inf
Applied rewrites60.8%
if -9.00000000000000024e168 < y1 < -1.02e-41Initial program 28.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.3%
Taylor expanded in a around inf
Applied rewrites52.6%
if -1.02e-41 < y1 < -3.79999999999999975e-119Initial program 25.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.1%
Taylor expanded in t around inf
Applied rewrites63.2%
if -3.79999999999999975e-119 < y1 < 2.7999999999999999e-8Initial program 42.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.7%
Taylor expanded in t around inf
Applied rewrites42.8%
if 2.7999999999999999e-8 < y1 < 9.9999999999999993e111Initial program 23.9%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.1%
Taylor expanded in y3 around inf
Applied rewrites56.7%
if 3.4e202 < y1 Initial program 15.2%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.7%
Taylor expanded in j around inf
Applied rewrites64.3%
Final simplification53.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b 10200.0)
(fma
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma y4 c (* (- a) y5)) y3) y))
(* (fma j y4 (* (- a) z)) (* b 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 (b <= 10200.0) {
tmp = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(y4, c, (-a * y5)) * y3) * y));
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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 (b <= 10200.0) tmp = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y3) * y)); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, 10200.0], N[(N[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 10200:\\
\;\;\;\;\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(y4, c, \left(-a\right) \cdot y5\right) \cdot y3\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < 10200Initial program 31.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.8%
Taylor expanded in y3 around inf
Applied rewrites45.9%
Applied rewrites47.5%
if 10200 < b Initial program 25.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in t around inf
Applied rewrites56.6%
Final simplification49.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.32e+228)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= b -3.5e+107)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -6.6e-37)
(* (* (fma (- c) y2 (* j b)) t) y4)
(if (<= b -1.16e-247)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 7.6e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.9e-51)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(* (fma j y4 (* (- a) z)) (* b 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 (b <= -1.32e+228) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (b <= -3.5e+107) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -6.6e-37) {
tmp = (fma(-c, y2, (j * b)) * t) * y4;
} else if (b <= -1.16e-247) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 7.6e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.9e-51) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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 (b <= -1.32e+228) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (b <= -3.5e+107) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -6.6e-37) tmp = Float64(Float64(fma(Float64(-c), y2, Float64(j * b)) * t) * y4); elseif (b <= -1.16e-247) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 7.6e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.9e-51) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.32e+228], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -3.5e+107], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -6.6e-37], N[(N[(N[((-c) * y2 + N[(j * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.16e-247], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 7.6e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.9e-51], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.32 \cdot 10^{+228}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+107}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-37}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y2, j \cdot b\right) \cdot t\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{-247}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-171}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-51}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -1.32e228Initial program 28.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites71.4%
Taylor expanded in a around inf
Applied rewrites58.5%
if -1.32e228 < b < -3.4999999999999997e107Initial program 34.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in k around inf
Applied rewrites55.8%
if -3.4999999999999997e107 < b < -6.59999999999999964e-37Initial program 19.2%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in k around inf
Applied rewrites12.6%
Taylor expanded in t around inf
Applied rewrites43.3%
if -6.59999999999999964e-37 < b < -1.16e-247Initial program 34.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in y2 around inf
Applied rewrites50.6%
if -1.16e-247 < b < 7.60000000000000043e-171Initial program 31.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.3%
Taylor expanded in a around inf
Applied rewrites52.3%
if 7.60000000000000043e-171 < b < 2.89999999999999973e-51Initial program 28.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in k around inf
Applied rewrites61.3%
if 2.89999999999999973e-51 < b Initial program 27.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in t around inf
Applied rewrites53.3%
Final simplification53.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.55e+228)
(* (* (fma a b (* (- i) c)) y) x)
(if (<= b -3.5e+107)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -6.6e-37)
(* (* (fma (- c) y2 (* j b)) t) y4)
(if (<= b -1.16e-247)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 7.6e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.9e-51)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(* (fma j y4 (* (- a) z)) (* b 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 (b <= -1.55e+228) {
tmp = (fma(a, b, (-i * c)) * y) * x;
} else if (b <= -3.5e+107) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -6.6e-37) {
tmp = (fma(-c, y2, (j * b)) * t) * y4;
} else if (b <= -1.16e-247) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 7.6e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.9e-51) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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 (b <= -1.55e+228) tmp = Float64(Float64(fma(a, b, Float64(Float64(-i) * c)) * y) * x); elseif (b <= -3.5e+107) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -6.6e-37) tmp = Float64(Float64(fma(Float64(-c), y2, Float64(j * b)) * t) * y4); elseif (b <= -1.16e-247) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 7.6e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.9e-51) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.55e+228], N[(N[(N[(a * b + N[((-i) * c), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, -3.5e+107], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -6.6e-37], N[(N[(N[((-c) * y2 + N[(j * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.16e-247], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 7.6e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.9e-51], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+228}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-i\right) \cdot c\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{+107}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-37}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y2, j \cdot b\right) \cdot t\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{-247}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-171}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-51}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -1.5499999999999999e228Initial program 28.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.4%
Taylor expanded in y around inf
Applied rewrites53.5%
if -1.5499999999999999e228 < b < -3.4999999999999997e107Initial program 34.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in k around inf
Applied rewrites55.8%
if -3.4999999999999997e107 < b < -6.59999999999999964e-37Initial program 19.2%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in k around inf
Applied rewrites12.6%
Taylor expanded in t around inf
Applied rewrites43.3%
if -6.59999999999999964e-37 < b < -1.16e-247Initial program 34.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in y2 around inf
Applied rewrites50.6%
if -1.16e-247 < b < 7.60000000000000043e-171Initial program 31.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.3%
Taylor expanded in a around inf
Applied rewrites52.3%
if 7.60000000000000043e-171 < b < 2.89999999999999973e-51Initial program 28.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in k around inf
Applied rewrites61.3%
if 2.89999999999999973e-51 < b Initial program 27.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in t around inf
Applied rewrites53.3%
Final simplification52.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.55e+228)
(* (* (fma a b (* (- i) c)) y) x)
(if (<= b -5.7e+72)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -1.65e-34)
(* (* (fma k y (* (- j) t)) i) y5)
(if (<= b -1.16e-247)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 7.6e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.9e-51)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(* (fma j y4 (* (- a) z)) (* b 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 (b <= -1.55e+228) {
tmp = (fma(a, b, (-i * c)) * y) * x;
} else if (b <= -5.7e+72) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -1.65e-34) {
tmp = (fma(k, y, (-j * t)) * i) * y5;
} else if (b <= -1.16e-247) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 7.6e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.9e-51) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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 (b <= -1.55e+228) tmp = Float64(Float64(fma(a, b, Float64(Float64(-i) * c)) * y) * x); elseif (b <= -5.7e+72) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -1.65e-34) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); elseif (b <= -1.16e-247) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 7.6e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.9e-51) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.55e+228], N[(N[(N[(a * b + N[((-i) * c), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, -5.7e+72], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.65e-34], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, -1.16e-247], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 7.6e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.9e-51], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.55 \cdot 10^{+228}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-i\right) \cdot c\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq -5.7 \cdot 10^{+72}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{-34}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{-247}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-171}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-51}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -1.5499999999999999e228Initial program 28.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.4%
Taylor expanded in y around inf
Applied rewrites53.5%
if -1.5499999999999999e228 < b < -5.6999999999999997e72Initial program 29.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in k around inf
Applied rewrites50.8%
if -5.6999999999999997e72 < b < -1.64999999999999991e-34Initial program 25.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.7%
Taylor expanded in i around inf
Applied rewrites45.9%
if -1.64999999999999991e-34 < b < -1.16e-247Initial program 33.6%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in y2 around inf
Applied rewrites49.3%
if -1.16e-247 < b < 7.60000000000000043e-171Initial program 31.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.3%
Taylor expanded in a around inf
Applied rewrites52.3%
if 7.60000000000000043e-171 < b < 2.89999999999999973e-51Initial program 28.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in k around inf
Applied rewrites61.3%
if 2.89999999999999973e-51 < b Initial program 27.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in t around inf
Applied rewrites53.3%
Final simplification52.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -5e+161)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= b -8.4e+48)
(* (* (fma (- b) j (* y2 c)) y4) (- t))
(if (<= b -1.16e-247)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 7.6e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.9e-51)
(* (* (fma (- i) z (* y4 y2)) k) y1)
(* (fma j y4 (* (- a) z)) (* b 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 (b <= -5e+161) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (b <= -8.4e+48) {
tmp = (fma(-b, j, (y2 * c)) * y4) * -t;
} else if (b <= -1.16e-247) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 7.6e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.9e-51) {
tmp = (fma(-i, z, (y4 * y2)) * k) * y1;
} else {
tmp = fma(j, y4, (-a * z)) * (b * 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 (b <= -5e+161) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (b <= -8.4e+48) tmp = Float64(Float64(fma(Float64(-b), j, Float64(y2 * c)) * y4) * Float64(-t)); elseif (b <= -1.16e-247) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 7.6e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.9e-51) tmp = Float64(Float64(fma(Float64(-i), z, Float64(y4 * y2)) * k) * y1); else tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -5e+161], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -8.4e+48], N[(N[(N[((-b) * j + N[(y2 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[b, -1.16e-247], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 7.6e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.9e-51], N[(N[(N[((-i) * z + N[(y4 * y2), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y1), $MachinePrecision], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+161}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;b \leq -8.4 \cdot 10^{+48}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, j, y2 \cdot c\right) \cdot y4\right) \cdot \left(-t\right)\\
\mathbf{elif}\;b \leq -1.16 \cdot 10^{-247}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-171}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot a\right) \cdot y5\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-51}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, z, y4 \cdot y2\right) \cdot k\right) \cdot y1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\end{array}
\end{array}
if b < -4.9999999999999997e161Initial program 37.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.3%
Taylor expanded in a around inf
Applied rewrites50.2%
if -4.9999999999999997e161 < b < -8.3999999999999994e48Initial program 12.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in t around -inf
Applied rewrites54.8%
if -8.3999999999999994e48 < b < -1.16e-247Initial program 32.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y2 around inf
Applied rewrites44.0%
if -1.16e-247 < b < 7.60000000000000043e-171Initial program 31.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.3%
Taylor expanded in a around inf
Applied rewrites52.3%
if 7.60000000000000043e-171 < b < 2.89999999999999973e-51Initial program 28.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
Taylor expanded in k around inf
Applied rewrites61.3%
if 2.89999999999999973e-51 < b Initial program 27.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in t around inf
Applied rewrites53.3%
Final simplification51.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (fma (- y3) y4 (* i x)) (* y1 j))))
(if (<= y1 -3.2e+15)
t_1
(if (<= y1 -5.5e-188)
(* (fma (- i) j (* y2 a)) (* y5 t))
(if (<= y1 4e-292)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y1 2.8e+46)
(* (* (fma (- b) k (* y3 c)) y4) y)
(if (<= y1 9.2e+79) (* (* (fma (- i) t (* y3 y0)) y5) j) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-y3, y4, (i * x)) * (y1 * j);
double tmp;
if (y1 <= -3.2e+15) {
tmp = t_1;
} else if (y1 <= -5.5e-188) {
tmp = fma(-i, j, (y2 * a)) * (y5 * t);
} else if (y1 <= 4e-292) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y1 <= 2.8e+46) {
tmp = (fma(-b, k, (y3 * c)) * y4) * y;
} else if (y1 <= 9.2e+79) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)) tmp = 0.0 if (y1 <= -3.2e+15) tmp = t_1; elseif (y1 <= -5.5e-188) tmp = Float64(fma(Float64(-i), j, Float64(y2 * a)) * Float64(y5 * t)); elseif (y1 <= 4e-292) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y1 <= 2.8e+46) tmp = Float64(Float64(fma(Float64(-b), k, Float64(y3 * c)) * y4) * y); elseif (y1 <= 9.2e+79) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); 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[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.2e+15], t$95$1, If[LessEqual[y1, -5.5e-188], N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * N[(y5 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4e-292], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y1, 2.8e+46], N[(N[(N[((-b) * k + N[(y3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 9.2e+79], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{if}\;y1 \leq -3.2 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -5.5 \cdot 10^{-188}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot \left(y5 \cdot t\right)\\
\mathbf{elif}\;y1 \leq 4 \cdot 10^{-292}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y1 \leq 2.8 \cdot 10^{+46}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, k, y3 \cdot c\right) \cdot y4\right) \cdot y\\
\mathbf{elif}\;y1 \leq 9.2 \cdot 10^{+79}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -3.2e15 or 9.2000000000000002e79 < y1 Initial program 18.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in j around inf
Applied rewrites48.8%
if -3.2e15 < y1 < -5.5000000000000002e-188Initial program 26.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.0%
Taylor expanded in t around inf
Applied rewrites48.0%
if -5.5000000000000002e-188 < y1 < 4.0000000000000002e-292Initial program 57.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in y2 around inf
Applied rewrites50.8%
if 4.0000000000000002e-292 < y1 < 2.80000000000000018e46Initial program 40.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.3%
Taylor expanded in b around inf
Applied rewrites34.8%
Taylor expanded in y around inf
Applied rewrites41.1%
if 2.80000000000000018e46 < y1 < 9.2000000000000002e79Initial program 30.0%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.2%
Taylor expanded in j around inf
Applied rewrites70.8%
Final simplification47.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -1.52e+109)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y5 -1.7e+16)
(* (fma (- y3) y4 (* i x)) (* y1 j))
(if (<= y5 1.35e-163)
(* (fma j y4 (* (- a) z)) (* b t))
(if (<= y5 3.4e+21)
(* (* (fma (- b) k (* y3 c)) y4) y)
(* (* (fma t y2 (* (- y) y3)) a) y5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -1.52e+109) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y5 <= -1.7e+16) {
tmp = fma(-y3, y4, (i * x)) * (y1 * j);
} else if (y5 <= 1.35e-163) {
tmp = fma(j, y4, (-a * z)) * (b * t);
} else if (y5 <= 3.4e+21) {
tmp = (fma(-b, k, (y3 * c)) * y4) * y;
} else {
tmp = (fma(t, y2, (-y * y3)) * a) * 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 <= -1.52e+109) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y5 <= -1.7e+16) tmp = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)); elseif (y5 <= 1.35e-163) tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); elseif (y5 <= 3.4e+21) tmp = Float64(Float64(fma(Float64(-b), k, Float64(y3 * c)) * y4) * y); else tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * 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, -1.52e+109], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y5, -1.7e+16], N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.35e-163], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.4e+21], N[(N[(N[((-b) * k + N[(y3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -1.52 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y5 \leq -1.7 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{-163}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y5 \leq 3.4 \cdot 10^{+21}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, k, y3 \cdot c\right) \cdot y4\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(t, y2, \left(-y\right) \cdot y3\right) \cdot a\right) \cdot y5\\
\end{array}
\end{array}
if y5 < -1.52000000000000003e109Initial program 27.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.2%
Taylor expanded in y2 around inf
Applied rewrites50.7%
if -1.52000000000000003e109 < y5 < -1.7e16Initial program 20.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.6%
Taylor expanded in j around inf
Applied rewrites68.7%
if -1.7e16 < y5 < 1.35000000000000007e-163Initial program 37.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in t around inf
Applied rewrites42.7%
if 1.35000000000000007e-163 < y5 < 3.4e21Initial program 31.1%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.8%
Taylor expanded in b around inf
Applied rewrites30.2%
Taylor expanded in y around inf
Applied rewrites45.6%
if 3.4e21 < y5 Initial program 23.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.7%
Taylor expanded in a around inf
Applied rewrites50.2%
Final simplification49.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (fma (- k) y0 (* a t)) y5) y2)))
(if (<= y5 -1.52e+109)
t_1
(if (<= y5 -1.7e+16)
(* (fma (- y3) y4 (* i x)) (* y1 j))
(if (<= y5 1.35e-163)
(* (fma j y4 (* (- a) z)) (* b t))
(if (<= y5 2.3e+57) (* (* (fma (- b) k (* y3 c)) y4) y) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (fma(-k, y0, (a * t)) * y5) * y2;
double tmp;
if (y5 <= -1.52e+109) {
tmp = t_1;
} else if (y5 <= -1.7e+16) {
tmp = fma(-y3, y4, (i * x)) * (y1 * j);
} else if (y5 <= 1.35e-163) {
tmp = fma(j, y4, (-a * z)) * (b * t);
} else if (y5 <= 2.3e+57) {
tmp = (fma(-b, k, (y3 * c)) * y4) * y;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2) tmp = 0.0 if (y5 <= -1.52e+109) tmp = t_1; elseif (y5 <= -1.7e+16) tmp = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)); elseif (y5 <= 1.35e-163) tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); elseif (y5 <= 2.3e+57) tmp = Float64(Float64(fma(Float64(-b), k, Float64(y3 * c)) * y4) * y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[y5, -1.52e+109], t$95$1, If[LessEqual[y5, -1.7e+16], N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.35e-163], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.3e+57], N[(N[(N[((-b) * k + N[(y3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{if}\;y5 \leq -1.52 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.7 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{-163}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y5 \leq 2.3 \cdot 10^{+57}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, k, y3 \cdot c\right) \cdot y4\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -1.52000000000000003e109 or 2.2999999999999999e57 < y5 Initial program 26.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.6%
Taylor expanded in y2 around inf
Applied rewrites47.8%
if -1.52000000000000003e109 < y5 < -1.7e16Initial program 20.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.6%
Taylor expanded in j around inf
Applied rewrites68.7%
if -1.7e16 < y5 < 1.35000000000000007e-163Initial program 37.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.6%
Taylor expanded in t around inf
Applied rewrites42.7%
if 1.35000000000000007e-163 < y5 < 2.2999999999999999e57Initial program 28.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.4%
Taylor expanded in b around inf
Applied rewrites31.4%
Taylor expanded in y around inf
Applied rewrites45.2%
Final simplification47.8%
(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)) (* y1 j))))
(if (<= y1 -3.2e+15)
t_1
(if (<= y1 -5.5e-188)
(* (fma (- i) j (* y2 a)) (* y5 t))
(if (<= y1 1.3e-257)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y1 9.2e+79) (* (* (fma (- i) t (* y3 y0)) y5) j) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-y3, y4, (i * x)) * (y1 * j);
double tmp;
if (y1 <= -3.2e+15) {
tmp = t_1;
} else if (y1 <= -5.5e-188) {
tmp = fma(-i, j, (y2 * a)) * (y5 * t);
} else if (y1 <= 1.3e-257) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y1 <= 9.2e+79) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)) tmp = 0.0 if (y1 <= -3.2e+15) tmp = t_1; elseif (y1 <= -5.5e-188) tmp = Float64(fma(Float64(-i), j, Float64(y2 * a)) * Float64(y5 * t)); elseif (y1 <= 1.3e-257) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y1 <= 9.2e+79) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); 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[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.2e+15], t$95$1, If[LessEqual[y1, -5.5e-188], N[(N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision] * N[(y5 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.3e-257], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y1, 9.2e+79], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{if}\;y1 \leq -3.2 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -5.5 \cdot 10^{-188}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, y2 \cdot a\right) \cdot \left(y5 \cdot t\right)\\
\mathbf{elif}\;y1 \leq 1.3 \cdot 10^{-257}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y1 \leq 9.2 \cdot 10^{+79}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -3.2e15 or 9.2000000000000002e79 < y1 Initial program 18.0%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.8%
Taylor expanded in j around inf
Applied rewrites48.8%
if -3.2e15 < y1 < -5.5000000000000002e-188Initial program 26.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.0%
Taylor expanded in t around inf
Applied rewrites48.0%
if -5.5000000000000002e-188 < y1 < 1.3e-257Initial program 50.3%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.3%
Taylor expanded in y2 around inf
Applied rewrites47.9%
if 1.3e-257 < y1 < 9.2000000000000002e79Initial program 40.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.4%
Taylor expanded in j around inf
Applied rewrites33.3%
Final simplification44.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j t) y4) b)))
(if (<= j -1.6e-49)
t_1
(if (<= j 3.1e+21)
(* (* (* y2 y1) k) y4)
(if (<= j 4.2e+125) (* (* (- y) k) (* y4 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 = ((j * t) * y4) * b;
double tmp;
if (j <= -1.6e-49) {
tmp = t_1;
} else if (j <= 3.1e+21) {
tmp = ((y2 * y1) * k) * y4;
} else if (j <= 4.2e+125) {
tmp = (-y * k) * (y4 * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((j * t) * y4) * b
if (j <= (-1.6d-49)) then
tmp = t_1
else if (j <= 3.1d+21) then
tmp = ((y2 * y1) * k) * y4
else if (j <= 4.2d+125) then
tmp = (-y * k) * (y4 * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * t) * y4) * b;
double tmp;
if (j <= -1.6e-49) {
tmp = t_1;
} else if (j <= 3.1e+21) {
tmp = ((y2 * y1) * k) * y4;
} else if (j <= 4.2e+125) {
tmp = (-y * k) * (y4 * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((j * t) * y4) * b tmp = 0 if j <= -1.6e-49: tmp = t_1 elif j <= 3.1e+21: tmp = ((y2 * y1) * k) * y4 elif j <= 4.2e+125: tmp = (-y * k) * (y4 * 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(Float64(Float64(j * t) * y4) * b) tmp = 0.0 if (j <= -1.6e-49) tmp = t_1; elseif (j <= 3.1e+21) tmp = Float64(Float64(Float64(y2 * y1) * k) * y4); elseif (j <= 4.2e+125) tmp = Float64(Float64(Float64(-y) * k) * Float64(y4 * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((j * t) * y4) * b; tmp = 0.0; if (j <= -1.6e-49) tmp = t_1; elseif (j <= 3.1e+21) tmp = ((y2 * y1) * k) * y4; elseif (j <= 4.2e+125) tmp = (-y * k) * (y4 * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[j, -1.6e-49], t$95$1, If[LessEqual[j, 3.1e+21], N[(N[(N[(y2 * y1), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[j, 4.2e+125], N[(N[((-y) * k), $MachinePrecision] * N[(y4 * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{if}\;j \leq -1.6 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.1 \cdot 10^{+21}:\\
\;\;\;\;\left(\left(y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{+125}:\\
\;\;\;\;\left(\left(-y\right) \cdot k\right) \cdot \left(y4 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.60000000000000001e-49 or 4.2000000000000001e125 < j Initial program 27.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.6%
Taylor expanded in b around inf
Applied rewrites38.6%
Taylor expanded in t around inf
Applied rewrites41.3%
if -1.60000000000000001e-49 < j < 3.1e21Initial program 31.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.7%
Taylor expanded in k around inf
Applied rewrites33.5%
Taylor expanded in b around 0
Applied rewrites26.7%
if 3.1e21 < j < 4.2000000000000001e125Initial program 28.4%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Taylor expanded in b around inf
Applied rewrites37.2%
Taylor expanded in t around 0
Applied rewrites38.0%
Final simplification34.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -4.4e+87)
(* (fma i k (* (- a) y3)) (* y5 y))
(if (<= y -3.3e-306)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(* (* (fma (- i) t (* y3 y0)) y5) 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 (y <= -4.4e+87) {
tmp = fma(i, k, (-a * y3)) * (y5 * y);
} else if (y <= -3.3e-306) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else {
tmp = (fma(-i, t, (y3 * y0)) * y5) * 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 (y <= -4.4e+87) tmp = Float64(fma(i, k, Float64(Float64(-a) * y3)) * Float64(y5 * y)); elseif (y <= -3.3e-306) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); else tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -4.4e+87], N[(N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.3e-306], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{+87}:\\
\;\;\;\;\mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{elif}\;y \leq -3.3 \cdot 10^{-306}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\end{array}
\end{array}
if y < -4.4000000000000002e87Initial program 21.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in j around inf
Applied rewrites18.2%
Taylor expanded in y around inf
Applied rewrites55.7%
if -4.4000000000000002e87 < y < -3.3000000000000001e-306Initial program 30.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.4%
Taylor expanded in y2 around inf
Applied rewrites35.8%
if -3.3000000000000001e-306 < y Initial program 31.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.8%
Taylor expanded in j around inf
Applied rewrites37.7%
Final simplification40.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -8e+88)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= k -1.55e+19)
(* (* (* y2 y1) k) y4)
(* (* (fma (- i) t (* y3 y0)) y5) 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 (k <= -8e+88) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (k <= -1.55e+19) {
tmp = ((y2 * y1) * k) * y4;
} else {
tmp = (fma(-i, t, (y3 * y0)) * y5) * 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 (k <= -8e+88) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (k <= -1.55e+19) tmp = Float64(Float64(Float64(y2 * y1) * k) * y4); else tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[k, -8e+88], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, -1.55e+19], N[(N[(N[(y2 * y1), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -8 \cdot 10^{+88}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;k \leq -1.55 \cdot 10^{+19}:\\
\;\;\;\;\left(\left(y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\end{array}
\end{array}
if k < -7.99999999999999968e88Initial program 26.1%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.1%
Taylor expanded in y2 around inf
Applied rewrites55.6%
if -7.99999999999999968e88 < k < -1.55e19Initial program 25.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.9%
Taylor expanded in k around inf
Applied rewrites56.6%
Taylor expanded in b around 0
Applied rewrites62.9%
if -1.55e19 < k Initial program 30.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in j around inf
Applied rewrites31.0%
Final simplification38.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -2.8e+154)
(* (* (* (- y3) y4) j) y1)
(if (<= y4 1.8e+217)
(* (* (fma (- i) t (* y3 y0)) y5) j)
(* (* (* j t) y4) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -2.8e+154) {
tmp = ((-y3 * y4) * j) * y1;
} else if (y4 <= 1.8e+217) {
tmp = (fma(-i, t, (y3 * y0)) * y5) * j;
} else {
tmp = ((j * t) * y4) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -2.8e+154) tmp = Float64(Float64(Float64(Float64(-y3) * y4) * j) * y1); elseif (y4 <= 1.8e+217) tmp = Float64(Float64(fma(Float64(-i), t, Float64(y3 * y0)) * y5) * j); else tmp = Float64(Float64(Float64(j * t) * y4) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -2.8e+154], N[(N[(N[((-y3) * y4), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y4, 1.8e+217], N[(N[(N[((-i) * t + N[(y3 * y0), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -2.8 \cdot 10^{+154}:\\
\;\;\;\;\left(\left(\left(-y3\right) \cdot y4\right) \cdot j\right) \cdot y1\\
\mathbf{elif}\;y4 \leq 1.8 \cdot 10^{+217}:\\
\;\;\;\;\left(\mathsf{fma}\left(-i, t, y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\end{array}
\end{array}
if y4 < -2.7999999999999999e154Initial program 14.7%
Taylor expanded in y1 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in y3 around inf
Applied rewrites54.9%
Taylor expanded in a around 0
Applied rewrites46.6%
if -2.7999999999999999e154 < y4 < 1.8000000000000001e217Initial program 32.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.4%
Taylor expanded in j around inf
Applied rewrites33.9%
if 1.8000000000000001e217 < y4 Initial program 22.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in b around inf
Applied rewrites59.4%
Taylor expanded in t around inf
Applied rewrites51.0%
Final simplification37.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* j t) y4) b))) (if (<= j -1.6e-49) t_1 (if (<= j 5.8e+54) (* (* (* y2 y1) k) y4) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * t) * y4) * b;
double tmp;
if (j <= -1.6e-49) {
tmp = t_1;
} else if (j <= 5.8e+54) {
tmp = ((y2 * y1) * k) * y4;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((j * t) * y4) * b
if (j <= (-1.6d-49)) then
tmp = t_1
else if (j <= 5.8d+54) then
tmp = ((y2 * y1) * k) * y4
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * t) * y4) * b;
double tmp;
if (j <= -1.6e-49) {
tmp = t_1;
} else if (j <= 5.8e+54) {
tmp = ((y2 * y1) * k) * y4;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((j * t) * y4) * b tmp = 0 if j <= -1.6e-49: tmp = t_1 elif j <= 5.8e+54: tmp = ((y2 * y1) * k) * y4 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(j * t) * y4) * b) tmp = 0.0 if (j <= -1.6e-49) tmp = t_1; elseif (j <= 5.8e+54) tmp = Float64(Float64(Float64(y2 * y1) * k) * y4); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((j * t) * y4) * b; tmp = 0.0; if (j <= -1.6e-49) tmp = t_1; elseif (j <= 5.8e+54) tmp = ((y2 * y1) * k) * y4; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[j, -1.6e-49], t$95$1, If[LessEqual[j, 5.8e+54], N[(N[(N[(y2 * y1), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{if}\;j \leq -1.6 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{+54}:\\
\;\;\;\;\left(\left(y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.60000000000000001e-49 or 5.7999999999999997e54 < j Initial program 27.0%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.9%
Taylor expanded in b around inf
Applied rewrites39.0%
Taylor expanded in t around inf
Applied rewrites39.2%
if -1.60000000000000001e-49 < j < 5.7999999999999997e54Initial program 32.1%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in k around inf
Applied rewrites33.8%
Taylor expanded in b around 0
Applied rewrites25.9%
Final simplification32.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* y5 y3) y0) j))) (if (<= y0 -5.8e+209) t_1 (if (<= y0 8.2e+24) (* (* (* j x) y1) i) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y5 * y3) * y0) * j;
double tmp;
if (y0 <= -5.8e+209) {
tmp = t_1;
} else if (y0 <= 8.2e+24) {
tmp = ((j * x) * y1) * i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((y5 * y3) * y0) * j
if (y0 <= (-5.8d+209)) then
tmp = t_1
else if (y0 <= 8.2d+24) then
tmp = ((j * x) * y1) * i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((y5 * y3) * y0) * j;
double tmp;
if (y0 <= -5.8e+209) {
tmp = t_1;
} else if (y0 <= 8.2e+24) {
tmp = ((j * x) * y1) * i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((y5 * y3) * y0) * j tmp = 0 if y0 <= -5.8e+209: tmp = t_1 elif y0 <= 8.2e+24: tmp = ((j * x) * y1) * i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(y5 * y3) * y0) * j) tmp = 0.0 if (y0 <= -5.8e+209) tmp = t_1; elseif (y0 <= 8.2e+24) tmp = Float64(Float64(Float64(j * x) * y1) * i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((y5 * y3) * y0) * j; tmp = 0.0; if (y0 <= -5.8e+209) tmp = t_1; elseif (y0 <= 8.2e+24) tmp = ((j * x) * y1) * i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[y0, -5.8e+209], t$95$1, If[LessEqual[y0, 8.2e+24], N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\mathbf{if}\;y0 \leq -5.8 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 8.2 \cdot 10^{+24}:\\
\;\;\;\;\left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -5.79999999999999999e209 or 8.2000000000000002e24 < y0 Initial program 22.2%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.8%
Taylor expanded in j around inf
Applied rewrites40.4%
Taylor expanded in t around 0
Applied rewrites37.7%
if -5.79999999999999999e209 < y0 < 8.2000000000000002e24Initial program 32.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.3%
Taylor expanded in j around inf
Applied rewrites22.0%
Taylor expanded in b around 0
Applied rewrites22.7%
Final simplification26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y1 1.85e+106) (* (* (* j t) y4) b) (* (* (* j x) y1) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 1.85e+106) {
tmp = ((j * t) * y4) * b;
} else {
tmp = ((j * x) * y1) * i;
}
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 (y1 <= 1.85d+106) then
tmp = ((j * t) * y4) * b
else
tmp = ((j * x) * y1) * i
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 (y1 <= 1.85e+106) {
tmp = ((j * t) * y4) * b;
} else {
tmp = ((j * x) * y1) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 1.85e+106: tmp = ((j * t) * y4) * b else: tmp = ((j * x) * y1) * 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 (y1 <= 1.85e+106) tmp = Float64(Float64(Float64(j * t) * y4) * b); else tmp = Float64(Float64(Float64(j * x) * y1) * i); 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 (y1 <= 1.85e+106) tmp = ((j * t) * y4) * b; else tmp = ((j * x) * y1) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, 1.85e+106], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision], N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 1.85 \cdot 10^{+106}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\end{array}
\end{array}
if y1 < 1.84999999999999997e106Initial program 33.6%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in b around inf
Applied rewrites30.6%
Taylor expanded in t around inf
Applied rewrites24.7%
if 1.84999999999999997e106 < y1 Initial program 15.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.6%
Taylor expanded in j around inf
Applied rewrites41.5%
Taylor expanded in b around 0
Applied rewrites43.5%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y5 y3) y0) j))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * y3) * y0) * j;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = ((y5 * y3) * y0) * j
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y5 * y3) * y0) * j;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y5 * y3) * y0) * j
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y5 * y3) * y0) * j) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y5 * y3) * y0) * j; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j
\end{array}
Initial program 29.4%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in j around inf
Applied rewrites29.3%
Taylor expanded in t around 0
Applied rewrites17.1%
Final simplification17.1%
(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 2024276
(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)))))