
(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 (- y5) a (* y4 c)) 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(-y5, a, (y4 * c)) * 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(Float64(-y5), a, Float64(y4 * c)) * 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[((-y5) * a + N[(y4 * c), $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(-y5, a, y4 \cdot c\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.0%
Final simplification59.3%
(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 (- y5) a (* y4 c)) 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(-y5, a, (y4 * c)) * 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(Float64(-y5), a, Float64(y4 * c)) * 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[((-y5) * a + N[(y4 * c), $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(-y5, a, y4 \cdot c\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 (- y5) a (* y4 c)) 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(-y5, a, (y4 * c)) * 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(Float64(-y5), a, Float64(y4 * c)) * 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[((-y5) * a + N[(y4 * c), $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(-y5, a, y4 \cdot c\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
(fma (- y5) y0 (* y4 y1))
(fma (- y3) j (* y2 k))
(* (* (fma (- y5) a (* y4 c)) y3) y))))
(if (<= b -6.2e-32)
t_1
(if (<= b -7.2e-240)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 10200.0) t_1 (* (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 = fma(fma(-y5, y0, (y4 * y1)), fma(-y3, j, (y2 * k)), ((fma(-y5, a, (y4 * c)) * y3) * y));
double tmp;
if (b <= -6.2e-32) {
tmp = t_1;
} else if (b <= -7.2e-240) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 10200.0) {
tmp = t_1;
} 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 = fma(fma(Float64(-y5), y0, Float64(y4 * y1)), fma(Float64(-y3), j, Float64(y2 * k)), Float64(Float64(fma(Float64(-y5), a, Float64(y4 * c)) * y3) * y)) tmp = 0.0 if (b <= -6.2e-32) tmp = t_1; elseif (b <= -7.2e-240) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 10200.0) tmp = t_1; 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[((-y5) * y0 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * N[((-y3) * j + N[(y2 * k), $MachinePrecision]), $MachinePrecision] + N[(N[(N[((-y5) * a + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.2e-32], t$95$1, If[LessEqual[b, -7.2e-240], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 10200.0], t$95$1, N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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(-y5, a, y4 \cdot c\right) \cdot y3\right) \cdot y\right)\\
\mathbf{if}\;b \leq -6.2 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-240}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 10200:\\
\;\;\;\;t\_1\\
\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.20000000000000021e-32 or -7.1999999999999998e-240 < b < 10200Initial program 30.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.9%
Taylor expanded in y3 around inf
Applied rewrites50.0%
Applied rewrites52.0%
if -6.20000000000000021e-32 < b < -7.1999999999999998e-240Initial program 34.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y2 around inf
Applied rewrites50.6%
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 simplification53.1%
(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 (* (* (- y1) t_1) x)))
(if (<= y1 -2.6e+170)
t_2
(if (<= y1 -2.7e-42)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= y1 -2.6e-118)
(* (* y5 t) t_1)
(if (<= y1 3.5e-6)
(* (* (fma j y4 (* (- a) z)) t) b)
(if (<= y1 3.1e+107)
(* (* (fma (- j) y1 (* c y)) y4) y3)
(if (<= y1 4.4e+201)
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 = (-y1 * t_1) * x;
double tmp;
if (y1 <= -2.6e+170) {
tmp = t_2;
} else if (y1 <= -2.7e-42) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (y1 <= -2.6e-118) {
tmp = (y5 * t) * t_1;
} else if (y1 <= 3.5e-6) {
tmp = (fma(j, y4, (-a * z)) * t) * b;
} else if (y1 <= 3.1e+107) {
tmp = (fma(-j, y1, (c * y)) * y4) * y3;
} else if (y1 <= 4.4e+201) {
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(Float64(-y1) * t_1) * x) tmp = 0.0 if (y1 <= -2.6e+170) tmp = t_2; elseif (y1 <= -2.7e-42) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (y1 <= -2.6e-118) tmp = Float64(Float64(y5 * t) * t_1); elseif (y1 <= 3.5e-6) tmp = Float64(Float64(fma(j, y4, Float64(Float64(-a) * z)) * t) * b); elseif (y1 <= 3.1e+107) tmp = Float64(Float64(fma(Float64(-j), y1, Float64(c * y)) * y4) * y3); elseif (y1 <= 4.4e+201) 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[((-y1) * t$95$1), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y1, -2.6e+170], t$95$2, If[LessEqual[y1, -2.7e-42], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, -2.6e-118], N[(N[(y5 * t), $MachinePrecision] * t$95$1), $MachinePrecision], If[LessEqual[y1, 3.5e-6], N[(N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, 3.1e+107], N[(N[(N[((-j) * y1 + N[(c * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[y1, 4.4e+201], 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(\left(-y1\right) \cdot t\_1\right) \cdot x\\
\mathbf{if}\;y1 \leq -2.6 \cdot 10^{+170}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y1 \leq -2.7 \cdot 10^{-42}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;y1 \leq -2.6 \cdot 10^{-118}:\\
\;\;\;\;\left(y5 \cdot t\right) \cdot t\_1\\
\mathbf{elif}\;y1 \leq 3.5 \cdot 10^{-6}:\\
\;\;\;\;\left(\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot t\right) \cdot b\\
\mathbf{elif}\;y1 \leq 3.1 \cdot 10^{+107}:\\
\;\;\;\;\left(\mathsf{fma}\left(-j, y1, c \cdot y\right) \cdot y4\right) \cdot y3\\
\mathbf{elif}\;y1 \leq 4.4 \cdot 10^{+201}:\\
\;\;\;\;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 < -2.5999999999999998e170 or 3.10000000000000026e107 < y1 < 4.4e201Initial 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 -2.5999999999999998e170 < y1 < -2.69999999999999999e-42Initial 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 -2.69999999999999999e-42 < y1 < -2.6e-118Initial 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 -2.6e-118 < y1 < 3.49999999999999995e-6Initial 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 3.49999999999999995e-6 < y1 < 3.10000000000000026e107Initial 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 4.4e201 < 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 -7e+227)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= b -7.5e+101)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -1.25e-42)
(* (* (fma (- c) y2 (* j b)) t) y4)
(if (<= b -7.6e-248)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 2.25e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.4e-52)
(* (* (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 <= -7e+227) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (b <= -7.5e+101) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -1.25e-42) {
tmp = (fma(-c, y2, (j * b)) * t) * y4;
} else if (b <= -7.6e-248) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 2.25e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.4e-52) {
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 <= -7e+227) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (b <= -7.5e+101) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -1.25e-42) tmp = Float64(Float64(fma(Float64(-c), y2, Float64(j * b)) * t) * y4); elseif (b <= -7.6e-248) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 2.25e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.4e-52) 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, -7e+227], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -7.5e+101], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.25e-42], N[(N[(N[((-c) * y2 + N[(j * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -7.6e-248], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 2.25e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.4e-52], 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 -7 \cdot 10^{+227}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-42}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y2, j \cdot b\right) \cdot t\right) \cdot y4\\
\mathbf{elif}\;b \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 2.25 \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.4 \cdot 10^{-52}:\\
\;\;\;\;\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 < -6.9999999999999998e227Initial 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 -6.9999999999999998e227 < b < -7.4999999999999995e101Initial 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 -7.4999999999999995e101 < b < -1.25000000000000001e-42Initial 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 -1.25000000000000001e-42 < b < -7.5999999999999998e-248Initial 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 -7.5999999999999998e-248 < b < 2.2500000000000002e-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 2.2500000000000002e-171 < b < 2.4000000000000002e-52Initial 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.4000000000000002e-52 < 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 -7e+227)
(* (* (fma a b (* (- i) c)) y) x)
(if (<= b -7.5e+101)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -1.25e-42)
(* (* (fma (- c) y2 (* j b)) t) y4)
(if (<= b -7.6e-248)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 2.25e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.4e-52)
(* (* (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 <= -7e+227) {
tmp = (fma(a, b, (-i * c)) * y) * x;
} else if (b <= -7.5e+101) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -1.25e-42) {
tmp = (fma(-c, y2, (j * b)) * t) * y4;
} else if (b <= -7.6e-248) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 2.25e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.4e-52) {
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 <= -7e+227) tmp = Float64(Float64(fma(a, b, Float64(Float64(-i) * c)) * y) * x); elseif (b <= -7.5e+101) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -1.25e-42) tmp = Float64(Float64(fma(Float64(-c), y2, Float64(j * b)) * t) * y4); elseif (b <= -7.6e-248) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 2.25e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.4e-52) 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, -7e+227], N[(N[(N[(a * b + N[((-i) * c), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, -7.5e+101], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.25e-42], N[(N[(N[((-c) * y2 + N[(j * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -7.6e-248], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 2.25e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.4e-52], 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 -7 \cdot 10^{+227}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-i\right) \cdot c\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+101}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-42}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, y2, j \cdot b\right) \cdot t\right) \cdot y4\\
\mathbf{elif}\;b \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 2.25 \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.4 \cdot 10^{-52}:\\
\;\;\;\;\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 < -6.9999999999999998e227Initial 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 -6.9999999999999998e227 < b < -7.4999999999999995e101Initial 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 -7.4999999999999995e101 < b < -1.25000000000000001e-42Initial 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 -1.25000000000000001e-42 < b < -7.5999999999999998e-248Initial 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 -7.5999999999999998e-248 < b < 2.2500000000000002e-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 2.2500000000000002e-171 < b < 2.4000000000000002e-52Initial 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.4000000000000002e-52 < 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 -7e+227)
(* (* (fma a b (* (- i) c)) y) x)
(if (<= b -3.2e+72)
(* (* (fma (- b) y (* y2 y1)) k) y4)
(if (<= b -1.8e-33)
(* (* (fma k y (* (- j) t)) i) y5)
(if (<= b -7.6e-248)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 2.25e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.4e-52)
(* (* (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 <= -7e+227) {
tmp = (fma(a, b, (-i * c)) * y) * x;
} else if (b <= -3.2e+72) {
tmp = (fma(-b, y, (y2 * y1)) * k) * y4;
} else if (b <= -1.8e-33) {
tmp = (fma(k, y, (-j * t)) * i) * y5;
} else if (b <= -7.6e-248) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 2.25e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.4e-52) {
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 <= -7e+227) tmp = Float64(Float64(fma(a, b, Float64(Float64(-i) * c)) * y) * x); elseif (b <= -3.2e+72) tmp = Float64(Float64(fma(Float64(-b), y, Float64(y2 * y1)) * k) * y4); elseif (b <= -1.8e-33) tmp = Float64(Float64(fma(k, y, Float64(Float64(-j) * t)) * i) * y5); elseif (b <= -7.6e-248) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 2.25e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.4e-52) 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, -7e+227], N[(N[(N[(a * b + N[((-i) * c), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, -3.2e+72], N[(N[(N[((-b) * y + N[(y2 * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[b, -1.8e-33], N[(N[(N[(k * y + N[((-j) * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, -7.6e-248], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 2.25e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.4e-52], 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 -7 \cdot 10^{+227}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, b, \left(-i\right) \cdot c\right) \cdot y\right) \cdot x\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{+72}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, y, y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;b \leq -1.8 \cdot 10^{-33}:\\
\;\;\;\;\left(\mathsf{fma}\left(k, y, \left(-j\right) \cdot t\right) \cdot i\right) \cdot y5\\
\mathbf{elif}\;b \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 2.25 \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.4 \cdot 10^{-52}:\\
\;\;\;\;\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 < -6.9999999999999998e227Initial 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 -6.9999999999999998e227 < b < -3.2000000000000001e72Initial 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 -3.2000000000000001e72 < b < -1.80000000000000017e-33Initial 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.80000000000000017e-33 < b < -7.5999999999999998e-248Initial 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 -7.5999999999999998e-248 < b < 2.2500000000000002e-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 2.2500000000000002e-171 < b < 2.4000000000000002e-52Initial 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.4000000000000002e-52 < 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 -2.25e+164)
(* (* (fma x y (* (- t) z)) a) b)
(if (<= b -1.5e+52)
(* (* (fma (- b) j (* y2 c)) y4) (- t))
(if (<= b -7.6e-248)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= b 2.25e-171)
(* (* (fma t y2 (* (- y) y3)) a) y5)
(if (<= b 2.4e-52)
(* (* (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 <= -2.25e+164) {
tmp = (fma(x, y, (-t * z)) * a) * b;
} else if (b <= -1.5e+52) {
tmp = (fma(-b, j, (y2 * c)) * y4) * -t;
} else if (b <= -7.6e-248) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (b <= 2.25e-171) {
tmp = (fma(t, y2, (-y * y3)) * a) * y5;
} else if (b <= 2.4e-52) {
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 <= -2.25e+164) tmp = Float64(Float64(fma(x, y, Float64(Float64(-t) * z)) * a) * b); elseif (b <= -1.5e+52) tmp = Float64(Float64(fma(Float64(-b), j, Float64(y2 * c)) * y4) * Float64(-t)); elseif (b <= -7.6e-248) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (b <= 2.25e-171) tmp = Float64(Float64(fma(t, y2, Float64(Float64(-y) * y3)) * a) * y5); elseif (b <= 2.4e-52) 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, -2.25e+164], N[(N[(N[(x * y + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, -1.5e+52], N[(N[(N[((-b) * j + N[(y2 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * (-t)), $MachinePrecision], If[LessEqual[b, -7.6e-248], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 2.25e-171], N[(N[(N[(t * y2 + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision] * y5), $MachinePrecision], If[LessEqual[b, 2.4e-52], 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 -2.25 \cdot 10^{+164}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, y, \left(-t\right) \cdot z\right) \cdot a\right) \cdot b\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{+52}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, j, y2 \cdot c\right) \cdot y4\right) \cdot \left(-t\right)\\
\mathbf{elif}\;b \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;b \leq 2.25 \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.4 \cdot 10^{-52}:\\
\;\;\;\;\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 < -2.24999999999999988e164Initial 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 -2.24999999999999988e164 < b < -1.5e52Initial 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 -1.5e52 < b < -7.5999999999999998e-248Initial 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 -7.5999999999999998e-248 < b < 2.2500000000000002e-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 2.2500000000000002e-171 < b < 2.4000000000000002e-52Initial 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.4000000000000002e-52 < 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 -2.25e+16)
t_1
(if (<= y1 -6.5e-185)
(* (* y5 t) (fma (- i) j (* y2 a)))
(if (<= y1 5.8e-295)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y1 3.6e+46)
(* (* (fma (- b) k (* y3 c)) y4) y)
(if (<= y1 1.1e+80) (* (* (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 <= -2.25e+16) {
tmp = t_1;
} else if (y1 <= -6.5e-185) {
tmp = (y5 * t) * fma(-i, j, (y2 * a));
} else if (y1 <= 5.8e-295) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y1 <= 3.6e+46) {
tmp = (fma(-b, k, (y3 * c)) * y4) * y;
} else if (y1 <= 1.1e+80) {
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 <= -2.25e+16) tmp = t_1; elseif (y1 <= -6.5e-185) tmp = Float64(Float64(y5 * t) * fma(Float64(-i), j, Float64(y2 * a))); elseif (y1 <= 5.8e-295) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y1 <= 3.6e+46) tmp = Float64(Float64(fma(Float64(-b), k, Float64(y3 * c)) * y4) * y); elseif (y1 <= 1.1e+80) 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, -2.25e+16], t$95$1, If[LessEqual[y1, -6.5e-185], N[(N[(y5 * t), $MachinePrecision] * N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 5.8e-295], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y1, 3.6e+46], N[(N[(N[((-b) * k + N[(y3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 1.1e+80], 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 -2.25 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -6.5 \cdot 10^{-185}:\\
\;\;\;\;\left(y5 \cdot t\right) \cdot \mathsf{fma}\left(-i, j, y2 \cdot a\right)\\
\mathbf{elif}\;y1 \leq 5.8 \cdot 10^{-295}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y1 \leq 3.6 \cdot 10^{+46}:\\
\;\;\;\;\left(\mathsf{fma}\left(-b, k, y3 \cdot c\right) \cdot y4\right) \cdot y\\
\mathbf{elif}\;y1 \leq 1.1 \cdot 10^{+80}:\\
\;\;\;\;\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 < -2.25e16 or 1.10000000000000001e80 < 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 -2.25e16 < y1 < -6.49999999999999946e-185Initial 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 -6.49999999999999946e-185 < y1 < 5.8000000000000003e-295Initial 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 5.8000000000000003e-295 < y1 < 3.5999999999999999e46Initial 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 3.5999999999999999e46 < y1 < 1.10000000000000001e80Initial 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.5e+108)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y5 -6.4e+15)
(* (fma (- y3) y4 (* i x)) (* y1 j))
(if (<= y5 6e-165)
(* (fma j y4 (* (- a) z)) (* b t))
(if (<= y5 2.75e+22)
(* (* (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.5e+108) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y5 <= -6.4e+15) {
tmp = fma(-y3, y4, (i * x)) * (y1 * j);
} else if (y5 <= 6e-165) {
tmp = fma(j, y4, (-a * z)) * (b * t);
} else if (y5 <= 2.75e+22) {
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.5e+108) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y5 <= -6.4e+15) tmp = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)); elseif (y5 <= 6e-165) tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); elseif (y5 <= 2.75e+22) 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.5e+108], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y5, -6.4e+15], N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e-165], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.75e+22], 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.5 \cdot 10^{+108}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y5 \leq -6.4 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{-165}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y5 \leq 2.75 \cdot 10^{+22}:\\
\;\;\;\;\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.49999999999999992e108Initial 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.49999999999999992e108 < y5 < -6.4e15Initial 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 -6.4e15 < y5 < 5.99999999999999958e-165Initial 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 5.99999999999999958e-165 < y5 < 2.7500000000000001e22Initial 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 2.7500000000000001e22 < 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.5e+108)
t_1
(if (<= y5 -6.4e+15)
(* (fma (- y3) y4 (* i x)) (* y1 j))
(if (<= y5 6e-165)
(* (fma j y4 (* (- a) z)) (* b t))
(if (<= y5 5.1e+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.5e+108) {
tmp = t_1;
} else if (y5 <= -6.4e+15) {
tmp = fma(-y3, y4, (i * x)) * (y1 * j);
} else if (y5 <= 6e-165) {
tmp = fma(j, y4, (-a * z)) * (b * t);
} else if (y5 <= 5.1e+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.5e+108) tmp = t_1; elseif (y5 <= -6.4e+15) tmp = Float64(fma(Float64(-y3), y4, Float64(i * x)) * Float64(y1 * j)); elseif (y5 <= 6e-165) tmp = Float64(fma(j, y4, Float64(Float64(-a) * z)) * Float64(b * t)); elseif (y5 <= 5.1e+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.5e+108], t$95$1, If[LessEqual[y5, -6.4e+15], N[(N[((-y3) * y4 + N[(i * x), $MachinePrecision]), $MachinePrecision] * N[(y1 * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e-165], N[(N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision] * N[(b * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.1e+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.5 \cdot 10^{+108}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -6.4 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(-y3, y4, i \cdot x\right) \cdot \left(y1 \cdot j\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{-165}:\\
\;\;\;\;\mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right) \cdot \left(b \cdot t\right)\\
\mathbf{elif}\;y5 \leq 5.1 \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.49999999999999992e108 or 5.10000000000000023e57 < 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.49999999999999992e108 < y5 < -6.4e15Initial 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 -6.4e15 < y5 < 5.99999999999999958e-165Initial 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 5.99999999999999958e-165 < y5 < 5.10000000000000023e57Initial 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 -2.25e+16)
t_1
(if (<= y1 -6.5e-185)
(* (* y5 t) (fma (- i) j (* y2 a)))
(if (<= y1 2.9e-256)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= y1 1.1e+80) (* (* (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 <= -2.25e+16) {
tmp = t_1;
} else if (y1 <= -6.5e-185) {
tmp = (y5 * t) * fma(-i, j, (y2 * a));
} else if (y1 <= 2.9e-256) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (y1 <= 1.1e+80) {
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 <= -2.25e+16) tmp = t_1; elseif (y1 <= -6.5e-185) tmp = Float64(Float64(y5 * t) * fma(Float64(-i), j, Float64(y2 * a))); elseif (y1 <= 2.9e-256) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (y1 <= 1.1e+80) 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, -2.25e+16], t$95$1, If[LessEqual[y1, -6.5e-185], N[(N[(y5 * t), $MachinePrecision] * N[((-i) * j + N[(y2 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.9e-256], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[y1, 1.1e+80], 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 -2.25 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -6.5 \cdot 10^{-185}:\\
\;\;\;\;\left(y5 \cdot t\right) \cdot \mathsf{fma}\left(-i, j, y2 \cdot a\right)\\
\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{-256}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;y1 \leq 1.1 \cdot 10^{+80}:\\
\;\;\;\;\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 < -2.25e16 or 1.10000000000000001e80 < 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 -2.25e16 < y1 < -6.49999999999999946e-185Initial 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 -6.49999999999999946e-185 < y1 < 2.89999999999999971e-256Initial 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 2.89999999999999971e-256 < y1 < 1.10000000000000001e80Initial 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.8e-49)
t_1
(if (<= j 4e+18)
(* (* (* y2 y1) k) y4)
(if (<= j 8e+121) (* (* (- 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.8e-49) {
tmp = t_1;
} else if (j <= 4e+18) {
tmp = ((y2 * y1) * k) * y4;
} else if (j <= 8e+121) {
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.8d-49)) then
tmp = t_1
else if (j <= 4d+18) then
tmp = ((y2 * y1) * k) * y4
else if (j <= 8d+121) 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.8e-49) {
tmp = t_1;
} else if (j <= 4e+18) {
tmp = ((y2 * y1) * k) * y4;
} else if (j <= 8e+121) {
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.8e-49: tmp = t_1 elif j <= 4e+18: tmp = ((y2 * y1) * k) * y4 elif j <= 8e+121: 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.8e-49) tmp = t_1; elseif (j <= 4e+18) tmp = Float64(Float64(Float64(y2 * y1) * k) * y4); elseif (j <= 8e+121) 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.8e-49) tmp = t_1; elseif (j <= 4e+18) tmp = ((y2 * y1) * k) * y4; elseif (j <= 8e+121) 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.8e-49], t$95$1, If[LessEqual[j, 4e+18], N[(N[(N[(y2 * y1), $MachinePrecision] * k), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[j, 8e+121], 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.8 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4 \cdot 10^{+18}:\\
\;\;\;\;\left(\left(y2 \cdot y1\right) \cdot k\right) \cdot y4\\
\mathbf{elif}\;j \leq 8 \cdot 10^{+121}:\\
\;\;\;\;\left(\left(-y\right) \cdot k\right) \cdot \left(y4 \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.79999999999999985e-49 or 8.0000000000000003e121 < 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.79999999999999985e-49 < j < 4e18Initial 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 4e18 < j < 8.0000000000000003e121Initial 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 -1.75e+87)
(* (fma i k (* (- y3) a)) (* y5 y))
(if (<= y -1.65e-304)
(* (* (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 <= -1.75e+87) {
tmp = fma(i, k, (-y3 * a)) * (y5 * y);
} else if (y <= -1.65e-304) {
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 <= -1.75e+87) tmp = Float64(fma(i, k, Float64(Float64(-y3) * a)) * Float64(y5 * y)); elseif (y <= -1.65e-304) 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, -1.75e+87], N[(N[(i * k + N[((-y3) * a), $MachinePrecision]), $MachinePrecision] * N[(y5 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.65e-304], 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 -1.75 \cdot 10^{+87}:\\
\;\;\;\;\mathsf{fma}\left(i, k, \left(-y3\right) \cdot a\right) \cdot \left(y5 \cdot y\right)\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{-304}:\\
\;\;\;\;\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 < -1.74999999999999993e87Initial 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 -1.74999999999999993e87 < y < -1.65000000000000006e-304Initial 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 -1.65000000000000006e-304 < 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 -4.8e+88)
(* (* (fma (- k) y0 (* a t)) y5) y2)
(if (<= k -2.3e+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 <= -4.8e+88) {
tmp = (fma(-k, y0, (a * t)) * y5) * y2;
} else if (k <= -2.3e+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 <= -4.8e+88) tmp = Float64(Float64(fma(Float64(-k), y0, Float64(a * t)) * y5) * y2); elseif (k <= -2.3e+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, -4.8e+88], N[(N[(N[((-k) * y0 + N[(a * t), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[k, -2.3e+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 -4.8 \cdot 10^{+88}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, y0, a \cdot t\right) \cdot y5\right) \cdot y2\\
\mathbf{elif}\;k \leq -2.3 \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 < -4.7999999999999998e88Initial 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 -4.7999999999999998e88 < k < -2.3e19Initial 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 -2.3e19 < 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 -3e+154)
(* (* (* (- y3) y4) j) y1)
(if (<= y4 3.6e+213)
(* (* (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 <= -3e+154) {
tmp = ((-y3 * y4) * j) * y1;
} else if (y4 <= 3.6e+213) {
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 <= -3e+154) tmp = Float64(Float64(Float64(Float64(-y3) * y4) * j) * y1); elseif (y4 <= 3.6e+213) 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, -3e+154], N[(N[(N[((-y3) * y4), $MachinePrecision] * j), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y4, 3.6e+213], 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 -3 \cdot 10^{+154}:\\
\;\;\;\;\left(\left(\left(-y3\right) \cdot y4\right) \cdot j\right) \cdot y1\\
\mathbf{elif}\;y4 \leq 3.6 \cdot 10^{+213}:\\
\;\;\;\;\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 < -3.00000000000000026e154Initial 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 -3.00000000000000026e154 < y4 < 3.6000000000000001e213Initial 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 3.6000000000000001e213 < 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.8e-49) t_1 (if (<= j 4.2e+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.8e-49) {
tmp = t_1;
} else if (j <= 4.2e+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.8d-49)) then
tmp = t_1
else if (j <= 4.2d+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.8e-49) {
tmp = t_1;
} else if (j <= 4.2e+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.8e-49: tmp = t_1 elif j <= 4.2e+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.8e-49) tmp = t_1; elseif (j <= 4.2e+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.8e-49) tmp = t_1; elseif (j <= 4.2e+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.8e-49], t$95$1, If[LessEqual[j, 4.2e+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.8 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 4.2 \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.79999999999999985e-49 or 4.19999999999999972e54 < 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.79999999999999985e-49 < j < 4.19999999999999972e54Initial 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 (if (<= y0 -7e+33) (* (* (* y5 y3) y0) j) (if (<= y0 4.6e+132) (* (* (* j t) y4) b) (* (* (* 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 (y0 <= -7e+33) {
tmp = ((y5 * y3) * y0) * j;
} else if (y0 <= 4.6e+132) {
tmp = ((j * t) * y4) * b;
} else {
tmp = ((y3 * y0) * y5) * j;
}
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 (y0 <= (-7d+33)) then
tmp = ((y5 * y3) * y0) * j
else if (y0 <= 4.6d+132) then
tmp = ((j * t) * y4) * b
else
tmp = ((y3 * y0) * y5) * j
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 (y0 <= -7e+33) {
tmp = ((y5 * y3) * y0) * j;
} else if (y0 <= 4.6e+132) {
tmp = ((j * t) * y4) * b;
} else {
tmp = ((y3 * y0) * y5) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -7e+33: tmp = ((y5 * y3) * y0) * j elif y0 <= 4.6e+132: tmp = ((j * t) * y4) * b else: tmp = ((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 (y0 <= -7e+33) tmp = Float64(Float64(Float64(y5 * y3) * y0) * j); elseif (y0 <= 4.6e+132) tmp = Float64(Float64(Float64(j * t) * y4) * b); else tmp = Float64(Float64(Float64(y3 * y0) * y5) * j); 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 (y0 <= -7e+33) tmp = ((y5 * y3) * y0) * j; elseif (y0 <= 4.6e+132) tmp = ((j * t) * y4) * b; else tmp = ((y3 * y0) * y5) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -7e+33], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y0, 4.6e+132], N[(N[(N[(j * t), $MachinePrecision] * y4), $MachinePrecision] * b), $MachinePrecision], N[(N[(N[(y3 * y0), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -7 \cdot 10^{+33}:\\
\;\;\;\;\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\mathbf{elif}\;y0 \leq 4.6 \cdot 10^{+132}:\\
\;\;\;\;\left(\left(j \cdot t\right) \cdot y4\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\end{array}
\end{array}
if y0 < -7.0000000000000002e33Initial program 22.8%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.1%
Taylor expanded in j around inf
Applied rewrites43.5%
Taylor expanded in t around 0
Applied rewrites39.5%
if -7.0000000000000002e33 < y0 < 4.6000000000000003e132Initial program 34.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.8%
Taylor expanded in b around inf
Applied rewrites30.2%
Taylor expanded in t around inf
Applied rewrites26.9%
if 4.6000000000000003e132 < y0 Initial program 14.5%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.2%
Taylor expanded in j around inf
Applied rewrites35.0%
Taylor expanded in t around 0
Applied rewrites35.3%
Taylor expanded in t around 0
Applied rewrites37.9%
Final simplification30.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y0 -1.12e+209) (* (* (* y5 y3) y0) j) (if (<= y0 5.2e+24) (* (* (* j x) y1) i) (* (* (* 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 (y0 <= -1.12e+209) {
tmp = ((y5 * y3) * y0) * j;
} else if (y0 <= 5.2e+24) {
tmp = ((j * x) * y1) * i;
} else {
tmp = ((y3 * y0) * y5) * j;
}
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 (y0 <= (-1.12d+209)) then
tmp = ((y5 * y3) * y0) * j
else if (y0 <= 5.2d+24) then
tmp = ((j * x) * y1) * i
else
tmp = ((y3 * y0) * y5) * j
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 (y0 <= -1.12e+209) {
tmp = ((y5 * y3) * y0) * j;
} else if (y0 <= 5.2e+24) {
tmp = ((j * x) * y1) * i;
} else {
tmp = ((y3 * y0) * y5) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -1.12e+209: tmp = ((y5 * y3) * y0) * j elif y0 <= 5.2e+24: tmp = ((j * x) * y1) * i else: tmp = ((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 (y0 <= -1.12e+209) tmp = Float64(Float64(Float64(y5 * y3) * y0) * j); elseif (y0 <= 5.2e+24) tmp = Float64(Float64(Float64(j * x) * y1) * i); else tmp = Float64(Float64(Float64(y3 * y0) * y5) * j); 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 (y0 <= -1.12e+209) tmp = ((y5 * y3) * y0) * j; elseif (y0 <= 5.2e+24) tmp = ((j * x) * y1) * i; else tmp = ((y3 * y0) * y5) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -1.12e+209], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y0, 5.2e+24], N[(N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision] * i), $MachinePrecision], N[(N[(N[(y3 * y0), $MachinePrecision] * y5), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -1.12 \cdot 10^{+209}:\\
\;\;\;\;\left(\left(y5 \cdot y3\right) \cdot y0\right) \cdot j\\
\mathbf{elif}\;y0 \leq 5.2 \cdot 10^{+24}:\\
\;\;\;\;\left(\left(j \cdot x\right) \cdot y1\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y3 \cdot y0\right) \cdot y5\right) \cdot j\\
\end{array}
\end{array}
if y0 < -1.12000000000000009e209Initial program 26.7%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.4%
Taylor expanded in j around inf
Applied rewrites66.9%
Taylor expanded in t around 0
Applied rewrites66.9%
if -1.12000000000000009e209 < y0 < 5.1999999999999997e24Initial 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%
if 5.1999999999999997e24 < y0 Initial program 20.9%
Taylor expanded in y5 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.7%
Taylor expanded in j around inf
Applied rewrites32.9%
Taylor expanded in t around 0
Applied rewrites29.5%
Taylor expanded in t around 0
Applied rewrites31.2%
Final simplification27.1%
(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)))))