
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 5e+301)
t_1
(fma
i
(fma b a (* y (- j)))
(fma t (fma j c (* x (- a))) (* z (fma c (- b) (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= 5e+301) {
tmp = t_1;
} else {
tmp = fma(i, fma(b, a, (y * -j)), fma(t, fma(j, c, (x * -a)), (z * fma(c, -b, (x * y)))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= 5e+301) tmp = t_1; else tmp = fma(i, fma(b, a, Float64(y * Float64(-j))), fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(z * fma(c, Float64(-b), Float64(x * y))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+301], t$95$1, N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+301}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 5.0000000000000004e301Initial program 96.6%
if 5.0000000000000004e301 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 39.1%
Taylor expanded in y around 0
Applied rewrites63.9%
Taylor expanded in z around 0
Applied rewrites67.2%
Final simplification84.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a))))
(t_2
(fma
i
(fma b a (* y (- j)))
(fma t t_1 (* z (fma c (- b) (* x y)))))))
(if (<= i -1.6e-31)
t_2
(if (<= i 3.2e+86)
(fma t t_1 (fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i)))))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, c, (x * -a));
double t_2 = fma(i, fma(b, a, (y * -j)), fma(t, t_1, (z * fma(c, -b, (x * y)))));
double tmp;
if (i <= -1.6e-31) {
tmp = t_2;
} else if (i <= 3.2e+86) {
tmp = fma(t, t_1, fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i)))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) t_2 = fma(i, fma(b, a, Float64(y * Float64(-j))), fma(t, t_1, Float64(z * fma(c, Float64(-b), Float64(x * y))))) tmp = 0.0 if (i <= -1.6e-31) tmp = t_2; elseif (i <= 3.2e+86) tmp = fma(t, t_1, fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i))))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$1 + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.6e-31], t$95$2, If[LessEqual[i, 3.2e+86], N[(t * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
t_2 := \mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), \mathsf{fma}\left(t, t\_1, z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{if}\;i \leq -1.6 \cdot 10^{-31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{+86}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, \mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.60000000000000009e-31 or 3.2e86 < i Initial program 65.0%
Taylor expanded in y around 0
Applied rewrites65.2%
Taylor expanded in z around 0
Applied rewrites80.9%
if -1.60000000000000009e-31 < i < 3.2e86Initial program 81.8%
Taylor expanded in y around 0
Applied rewrites88.3%
Final simplification84.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (fma c (- z) (* a i)))) (t_2 (fma j c (* x (- a)))))
(if (<= b -4.2e+115)
(fma t t_2 t_1)
(if (<= b 2.6e+207)
(fma i (fma b a (* y (- j))) (fma t t_2 (* z (fma c (- b) (* x y)))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * fma(c, -z, (a * i));
double t_2 = fma(j, c, (x * -a));
double tmp;
if (b <= -4.2e+115) {
tmp = fma(t, t_2, t_1);
} else if (b <= 2.6e+207) {
tmp = fma(i, fma(b, a, (y * -j)), fma(t, t_2, (z * fma(c, -b, (x * y)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i))) t_2 = fma(j, c, Float64(x * Float64(-a))) tmp = 0.0 if (b <= -4.2e+115) tmp = fma(t, t_2, t_1); elseif (b <= 2.6e+207) tmp = fma(i, fma(b, a, Float64(y * Float64(-j))), fma(t, t_2, Float64(z * fma(c, Float64(-b), Float64(x * y))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e+115], N[(t * t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 2.6e+207], N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(t * t$95$2 + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
t_2 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{+115}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_2, t\_1\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+207}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), \mathsf{fma}\left(t, t\_2, z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.20000000000000007e115Initial program 66.5%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites70.6%
if -4.20000000000000007e115 < b < 2.5999999999999998e207Initial program 73.7%
Taylor expanded in y around 0
Applied rewrites77.8%
Taylor expanded in z around 0
Applied rewrites82.1%
if 2.5999999999999998e207 < b Initial program 78.1%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
Final simplification82.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a))))
(t_2 (fma x (- (* y z) (* t a)) (* i (fma j (- y) (* a b))))))
(if (<= i -48000.0)
t_2
(if (<= i 1e+38)
(fma t t_1 (* z (fma c (- b) (* x y))))
(if (<= i 5e+97)
(fma t t_1 (* b (fma c (- z) (* a i))))
(if (<= i 2.45e+238)
t_2
(fma i (fma b a (* y (- j))) (* c (fma j t (* z (- b)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, c, (x * -a));
double t_2 = fma(x, ((y * z) - (t * a)), (i * fma(j, -y, (a * b))));
double tmp;
if (i <= -48000.0) {
tmp = t_2;
} else if (i <= 1e+38) {
tmp = fma(t, t_1, (z * fma(c, -b, (x * y))));
} else if (i <= 5e+97) {
tmp = fma(t, t_1, (b * fma(c, -z, (a * i))));
} else if (i <= 2.45e+238) {
tmp = t_2;
} else {
tmp = fma(i, fma(b, a, (y * -j)), (c * fma(j, t, (z * -b))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) t_2 = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(i * fma(j, Float64(-y), Float64(a * b)))) tmp = 0.0 if (i <= -48000.0) tmp = t_2; elseif (i <= 1e+38) tmp = fma(t, t_1, Float64(z * fma(c, Float64(-b), Float64(x * y)))); elseif (i <= 5e+97) tmp = fma(t, t_1, Float64(b * fma(c, Float64(-z), Float64(a * i)))); elseif (i <= 2.45e+238) tmp = t_2; else tmp = fma(i, fma(b, a, Float64(y * Float64(-j))), Float64(c * fma(j, t, Float64(z * Float64(-b))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -48000.0], t$95$2, If[LessEqual[i, 1e+38], N[(t * t$95$1 + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5e+97], N[(t * t$95$1 + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.45e+238], t$95$2, N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
t_2 := \mathsf{fma}\left(x, y \cdot z - t \cdot a, i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\right)\\
\mathbf{if}\;i \leq -48000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{elif}\;i \leq 5 \cdot 10^{+97}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{elif}\;i \leq 2.45 \cdot 10^{+238}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\right)\\
\end{array}
\end{array}
if i < -48000 or 4.99999999999999999e97 < i < 2.45000000000000013e238Initial program 64.0%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites76.4%
if -48000 < i < 9.99999999999999977e37Initial program 82.5%
Taylor expanded in y around 0
Applied rewrites88.0%
Taylor expanded in i around 0
Applied rewrites80.7%
if 9.99999999999999977e37 < i < 4.99999999999999999e97Initial program 83.2%
Taylor expanded in y around 0
sub-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
Applied rewrites91.6%
if 2.45000000000000013e238 < i Initial program 47.7%
Taylor expanded in y around 0
Applied rewrites64.9%
Taylor expanded in z around 0
Applied rewrites76.3%
Taylor expanded in c around inf
Applied rewrites76.3%
Final simplification79.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j t (* z (- b))))
(t_2 (fma c t_1 (* x (- (* y z) (* t a))))))
(if (<= c -4.5e-27)
t_2
(if (<= c 7.2e+78)
(fma t (fma j c (* x (- a))) (* y (- (* x z) (* i j))))
(if (<= c 9.2e+188) t_2 (fma i (fma b a (* y (- j))) (* c t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, t, (z * -b));
double t_2 = fma(c, t_1, (x * ((y * z) - (t * a))));
double tmp;
if (c <= -4.5e-27) {
tmp = t_2;
} else if (c <= 7.2e+78) {
tmp = fma(t, fma(j, c, (x * -a)), (y * ((x * z) - (i * j))));
} else if (c <= 9.2e+188) {
tmp = t_2;
} else {
tmp = fma(i, fma(b, a, (y * -j)), (c * t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, t, Float64(z * Float64(-b))) t_2 = fma(c, t_1, Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (c <= -4.5e-27) tmp = t_2; elseif (c <= 7.2e+78) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (c <= 9.2e+188) tmp = t_2; else tmp = fma(i, fma(b, a, Float64(y * Float64(-j))), Float64(c * t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-27], t$95$2, If[LessEqual[c, 7.2e+78], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+188], t$95$2, N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
t_2 := \mathsf{fma}\left(c, t\_1, x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{if}\;c \leq -4.5 \cdot 10^{-27}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+78}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z - i \cdot j\right)\right)\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{+188}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), c \cdot t\_1\right)\\
\end{array}
\end{array}
if c < -4.5000000000000002e-27 or 7.20000000000000039e78 < c < 9.20000000000000046e188Initial program 71.3%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites82.6%
if -4.5000000000000002e-27 < c < 7.20000000000000039e78Initial program 78.0%
Taylor expanded in y around 0
Applied rewrites83.7%
Taylor expanded in y around inf
Applied rewrites69.6%
if 9.20000000000000046e188 < c Initial program 57.0%
Taylor expanded in y around 0
Applied rewrites66.5%
Taylor expanded in z around 0
Applied rewrites78.3%
Taylor expanded in c around inf
Applied rewrites84.6%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a)))))
(if (<= i -14000000000.0)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= i 1.05e-168)
(fma t t_1 (* y (* x z)))
(if (<= i 7.6e+98)
(fma t t_1 (- (* c (* z b))))
(* i (fma j (- y) (* a b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, c, (x * -a));
double tmp;
if (i <= -14000000000.0) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (i <= 1.05e-168) {
tmp = fma(t, t_1, (y * (x * z)));
} else if (i <= 7.6e+98) {
tmp = fma(t, t_1, -(c * (z * b)));
} else {
tmp = i * fma(j, -y, (a * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) tmp = 0.0 if (i <= -14000000000.0) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (i <= 1.05e-168) tmp = fma(t, t_1, Float64(y * Float64(x * z))); elseif (i <= 7.6e+98) tmp = fma(t, t_1, Float64(-Float64(c * Float64(z * b)))); else tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -14000000000.0], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e-168], N[(t * t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.6e+98], N[(t * t$95$1 + (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;i \leq -14000000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{-168}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, y \cdot \left(x \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 7.6 \cdot 10^{+98}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, -c \cdot \left(z \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\end{array}
\end{array}
if i < -1.4e10Initial program 65.5%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6467.3
Applied rewrites67.3%
if -1.4e10 < i < 1.04999999999999997e-168Initial program 83.7%
Taylor expanded in y around 0
Applied rewrites89.0%
Taylor expanded in a around inf
Applied rewrites43.1%
Taylor expanded in x around inf
Applied rewrites67.9%
if 1.04999999999999997e-168 < i < 7.5999999999999998e98Initial program 80.5%
Taylor expanded in y around 0
Applied rewrites83.0%
Taylor expanded in a around inf
Applied rewrites54.5%
Taylor expanded in c around inf
Applied rewrites74.7%
if 7.5999999999999998e98 < i Initial program 55.7%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6461.1
Applied rewrites61.1%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (fma j c (* x (- a))) (* z (fma c (- b) (* x y))))))
(if (<= t -1.6e-31)
t_1
(if (<= t 6e-35)
(fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(t, fma(j, c, (x * -a)), (z * fma(c, -b, (x * y))));
double tmp;
if (t <= -1.6e-31) {
tmp = t_1;
} else if (t <= 6e-35) {
tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(z * fma(c, Float64(-b), Float64(x * y)))) tmp = 0.0 if (t <= -1.6e-31) tmp = t_1; elseif (t <= 6e-35) tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.6e-31], t$95$1, If[LessEqual[t, 6e-35], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{if}\;t \leq -1.6 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6 \cdot 10^{-35}:\\
\;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.60000000000000009e-31 or 5.99999999999999978e-35 < t Initial program 67.0%
Taylor expanded in y around 0
Applied rewrites77.9%
Taylor expanded in i around 0
Applied rewrites77.7%
if -1.60000000000000009e-31 < t < 5.99999999999999978e-35Initial program 81.3%
Taylor expanded in t around 0
sub-negN/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-inN/A
lower-fma.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
Applied rewrites76.1%
Final simplification77.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma i (fma b a (* y (- j))) (* c (fma j t (* z (- b)))))))
(if (<= i -15500000000.0)
t_1
(if (<= i 1.76e+21)
(fma t (fma j c (* x (- a))) (* z (fma c (- b) (* x y))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(i, fma(b, a, (y * -j)), (c * fma(j, t, (z * -b))));
double tmp;
if (i <= -15500000000.0) {
tmp = t_1;
} else if (i <= 1.76e+21) {
tmp = fma(t, fma(j, c, (x * -a)), (z * fma(c, -b, (x * y))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(i, fma(b, a, Float64(y * Float64(-j))), Float64(c * fma(j, t, Float64(z * Float64(-b))))) tmp = 0.0 if (i <= -15500000000.0) tmp = t_1; elseif (i <= 1.76e+21) tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(z * fma(c, Float64(-b), Float64(x * y)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -15500000000.0], t$95$1, If[LessEqual[i, 1.76e+21], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\right)\\
\mathbf{if}\;i \leq -15500000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.76 \cdot 10^{+21}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.55e10 or 1.76e21 < i Initial program 62.6%
Taylor expanded in y around 0
Applied rewrites64.4%
Taylor expanded in z around 0
Applied rewrites78.1%
Taylor expanded in c around inf
Applied rewrites68.2%
if -1.55e10 < i < 1.76e21Initial program 83.8%
Taylor expanded in y around 0
Applied rewrites88.6%
Taylor expanded in i around 0
Applied rewrites81.2%
Final simplification74.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j t (* z (- b))))
(t_2 (fma i (fma b a (* y (- j))) (* c t_1))))
(if (<= i -5400000000.0)
t_2
(if (<= i 1e+24) (fma c t_1 (* x (- (* y z) (* t a)))) t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, t, (z * -b));
double t_2 = fma(i, fma(b, a, (y * -j)), (c * t_1));
double tmp;
if (i <= -5400000000.0) {
tmp = t_2;
} else if (i <= 1e+24) {
tmp = fma(c, t_1, (x * ((y * z) - (t * a))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, t, Float64(z * Float64(-b))) t_2 = fma(i, fma(b, a, Float64(y * Float64(-j))), Float64(c * t_1)) tmp = 0.0 if (i <= -5400000000.0) tmp = t_2; elseif (i <= 1e+24) tmp = fma(c, t_1, Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5400000000.0], t$95$2, If[LessEqual[i, 1e+24], N[(c * t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
t_2 := \mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), c \cdot t\_1\right)\\
\mathbf{if}\;i \leq -5400000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 10^{+24}:\\
\;\;\;\;\mathsf{fma}\left(c, t\_1, x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -5.4e9 or 9.9999999999999998e23 < i Initial program 62.6%
Taylor expanded in y around 0
Applied rewrites64.4%
Taylor expanded in z around 0
Applied rewrites78.1%
Taylor expanded in c around inf
Applied rewrites68.2%
if -5.4e9 < i < 9.9999999999999998e23Initial program 83.8%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
*-commutativeN/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites77.2%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -2.8e+83)
(* y (fma z x (* i (- j))))
(if (<= y 2.65e+157)
(fma i (fma b a (* y (- j))) (* c (fma j t (* z (- b)))))
(fma t (fma j c (* x (- a))) (* y (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -2.8e+83) {
tmp = y * fma(z, x, (i * -j));
} else if (y <= 2.65e+157) {
tmp = fma(i, fma(b, a, (y * -j)), (c * fma(j, t, (z * -b))));
} else {
tmp = fma(t, fma(j, c, (x * -a)), (y * (x * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -2.8e+83) tmp = Float64(y * fma(z, x, Float64(i * Float64(-j)))); elseif (y <= 2.65e+157) tmp = fma(i, fma(b, a, Float64(y * Float64(-j))), Float64(c * fma(j, t, Float64(z * Float64(-b))))); else tmp = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -2.8e+83], N[(y * N[(z * x + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e+157], N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision] + N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+83}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(z, x, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+157}:\\
\;\;\;\;\mathsf{fma}\left(i, \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right), c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z\right)\right)\\
\end{array}
\end{array}
if y < -2.8e83Initial program 58.9%
Taylor expanded in y around 0
Applied rewrites80.4%
Taylor expanded in a around inf
Applied rewrites30.4%
Taylor expanded in y around inf
Applied rewrites80.4%
Taylor expanded in y around inf
mul-1-negN/A
+-commutativeN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6474.2
Applied rewrites74.2%
if -2.8e83 < y < 2.6499999999999999e157Initial program 76.8%
Taylor expanded in y around 0
Applied rewrites73.3%
Taylor expanded in z around 0
Applied rewrites80.6%
Taylor expanded in c around inf
Applied rewrites68.1%
if 2.6499999999999999e157 < y Initial program 73.4%
Taylor expanded in y around 0
Applied rewrites92.8%
Taylor expanded in a around inf
Applied rewrites44.5%
Taylor expanded in x around inf
Applied rewrites74.9%
Final simplification69.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma t (fma j c (* x (- a))) (* y (* x z)))))
(if (<= t -1.55e-75)
t_1
(if (<= t -2e-175)
(* i (fma j (- y) (* a b)))
(if (<= t 5e+38) (* z (fma y x (* b (- c)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(t, fma(j, c, (x * -a)), (y * (x * z)));
double tmp;
if (t <= -1.55e-75) {
tmp = t_1;
} else if (t <= -2e-175) {
tmp = i * fma(j, -y, (a * b));
} else if (t <= 5e+38) {
tmp = z * fma(y, x, (b * -c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(t, fma(j, c, Float64(x * Float64(-a))), Float64(y * Float64(x * z))) tmp = 0.0 if (t <= -1.55e-75) tmp = t_1; elseif (t <= -2e-175) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (t <= 5e+38) tmp = Float64(z * fma(y, x, Float64(b * Float64(-c)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.55e-75], t$95$1, If[LessEqual[t, -2e-175], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+38], N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), y \cdot \left(x \cdot z\right)\right)\\
\mathbf{if}\;t \leq -1.55 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+38}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.55000000000000003e-75 or 4.9999999999999997e38 < t Initial program 68.2%
Taylor expanded in y around 0
Applied rewrites79.6%
Taylor expanded in a around inf
Applied rewrites62.1%
Taylor expanded in x around inf
Applied rewrites72.3%
if -1.55000000000000003e-75 < t < -2e-175Initial program 79.6%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.9
Applied rewrites57.9%
if -2e-175 < t < 4.9999999999999997e38Initial program 79.0%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.0
Applied rewrites55.0%
Applied rewrites56.1%
Final simplification64.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j c (* x (- a)))))
(if (<= y -1.05e+23)
(* y (fma z x (* i (- j))))
(if (<= y 1.3e+173)
(fma t t_1 (- (* c (* z b))))
(fma t t_1 (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, c, (x * -a));
double tmp;
if (y <= -1.05e+23) {
tmp = y * fma(z, x, (i * -j));
} else if (y <= 1.3e+173) {
tmp = fma(t, t_1, -(c * (z * b)));
} else {
tmp = fma(t, t_1, (y * (x * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, c, Float64(x * Float64(-a))) tmp = 0.0 if (y <= -1.05e+23) tmp = Float64(y * fma(z, x, Float64(i * Float64(-j)))); elseif (y <= 1.3e+173) tmp = fma(t, t_1, Float64(-Float64(c * Float64(z * b)))); else tmp = fma(t, t_1, Float64(y * Float64(x * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.05e+23], N[(y * N[(z * x + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+173], N[(t * t$95$1 + (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])), $MachinePrecision], N[(t * t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{if}\;y \leq -1.05 \cdot 10^{+23}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(z, x, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+173}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, -c \cdot \left(z \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, y \cdot \left(x \cdot z\right)\right)\\
\end{array}
\end{array}
if y < -1.0500000000000001e23Initial program 61.0%
Taylor expanded in y around 0
Applied rewrites75.5%
Taylor expanded in a around inf
Applied rewrites31.6%
Taylor expanded in y around inf
Applied rewrites75.5%
Taylor expanded in y around inf
mul-1-negN/A
+-commutativeN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
lower-fma.f64N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6469.1
Applied rewrites69.1%
if -1.0500000000000001e23 < y < 1.2999999999999999e173Initial program 76.9%
Taylor expanded in y around 0
Applied rewrites74.9%
Taylor expanded in a around inf
Applied rewrites52.5%
Taylor expanded in c around inf
Applied rewrites61.0%
if 1.2999999999999999e173 < y Initial program 78.6%
Taylor expanded in y around 0
Applied rewrites91.8%
Taylor expanded in a around inf
Applied rewrites41.4%
Taylor expanded in x around inf
Applied rewrites79.8%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma t (- x) (* b i)))))
(if (<= a -5.2e+25)
t_1
(if (<= a -3.8e-270)
(- (* c (* z b)))
(if (<= a 8.6e-219)
(* y (* x z))
(if (<= a 3.6e-21) (* c (* t j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * fma(t, -x, (b * i));
double tmp;
if (a <= -5.2e+25) {
tmp = t_1;
} else if (a <= -3.8e-270) {
tmp = -(c * (z * b));
} else if (a <= 8.6e-219) {
tmp = y * (x * z);
} else if (a <= 3.6e-21) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i))) tmp = 0.0 if (a <= -5.2e+25) tmp = t_1; elseif (a <= -3.8e-270) tmp = Float64(-Float64(c * Float64(z * b))); elseif (a <= 8.6e-219) tmp = Float64(y * Float64(x * z)); elseif (a <= 3.6e-21) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e+25], t$95$1, If[LessEqual[a, -3.8e-270], (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 8.6e-219], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.6e-21], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -3.8 \cdot 10^{-270}:\\
\;\;\;\;-c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq 8.6 \cdot 10^{-219}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-21}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.1999999999999997e25 or 3.59999999999999989e-21 < a Initial program 71.2%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.2
Applied rewrites58.2%
if -5.1999999999999997e25 < a < -3.80000000000000041e-270Initial program 69.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.5
Applied rewrites55.5%
Taylor expanded in c around inf
Applied rewrites34.6%
Applied rewrites41.1%
if -3.80000000000000041e-270 < a < 8.6000000000000005e-219Initial program 80.8%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites61.8%
Taylor expanded in j around inf
Applied rewrites24.3%
Taylor expanded in z around inf
Applied rewrites43.7%
if 8.6000000000000005e-219 < a < 3.59999999999999989e-21Initial program 76.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6461.4
Applied rewrites61.4%
Taylor expanded in c around inf
Applied rewrites37.8%
Applied rewrites39.4%
Final simplification48.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.05e+63)
(* y (* i (- j)))
(if (<= i -2.9e-180)
(* j (* t c))
(if (<= i 6.4e-166)
(* y (* x z))
(if (<= i 1.7e+85) (* a (* x (- t))) (* a (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.05e+63) {
tmp = y * (i * -j);
} else if (i <= -2.9e-180) {
tmp = j * (t * c);
} else if (i <= 6.4e-166) {
tmp = y * (x * z);
} else if (i <= 1.7e+85) {
tmp = a * (x * -t);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (i <= (-2.05d+63)) then
tmp = y * (i * -j)
else if (i <= (-2.9d-180)) then
tmp = j * (t * c)
else if (i <= 6.4d-166) then
tmp = y * (x * z)
else if (i <= 1.7d+85) then
tmp = a * (x * -t)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.05e+63) {
tmp = y * (i * -j);
} else if (i <= -2.9e-180) {
tmp = j * (t * c);
} else if (i <= 6.4e-166) {
tmp = y * (x * z);
} else if (i <= 1.7e+85) {
tmp = a * (x * -t);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.05e+63: tmp = y * (i * -j) elif i <= -2.9e-180: tmp = j * (t * c) elif i <= 6.4e-166: tmp = y * (x * z) elif i <= 1.7e+85: tmp = a * (x * -t) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.05e+63) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -2.9e-180) tmp = Float64(j * Float64(t * c)); elseif (i <= 6.4e-166) tmp = Float64(y * Float64(x * z)); elseif (i <= 1.7e+85) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.05e+63) tmp = y * (i * -j); elseif (i <= -2.9e-180) tmp = j * (t * c); elseif (i <= 6.4e-166) tmp = y * (x * z); elseif (i <= 1.7e+85) tmp = a * (x * -t); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.05e+63], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.9e-180], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.4e-166], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e+85], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.05 \cdot 10^{+63}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -2.9 \cdot 10^{-180}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 6.4 \cdot 10^{-166}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -2.04999999999999996e63Initial program 64.8%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites71.9%
Taylor expanded in j around inf
Applied rewrites39.1%
Applied rewrites40.9%
if -2.04999999999999996e63 < i < -2.8999999999999998e-180Initial program 87.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6450.6
Applied rewrites50.6%
Taylor expanded in c around inf
Applied rewrites43.0%
if -2.8999999999999998e-180 < i < 6.40000000000000002e-166Initial program 76.4%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites45.0%
Taylor expanded in j around inf
Applied rewrites6.3%
Taylor expanded in z around inf
Applied rewrites49.8%
if 6.40000000000000002e-166 < i < 1.7000000000000002e85Initial program 81.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6441.5
Applied rewrites41.5%
Taylor expanded in t around inf
Applied rewrites39.4%
if 1.7000000000000002e85 < i Initial program 57.1%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.9
Applied rewrites42.9%
Taylor expanded in t around 0
Applied rewrites40.6%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma y x (* b (- c))))))
(if (<= z -1.75e+21)
t_1
(if (<= z -6.5e-252)
(* i (fma j (- y) (* a b)))
(if (<= z 1.05e+92) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * fma(y, x, (b * -c));
double tmp;
if (z <= -1.75e+21) {
tmp = t_1;
} else if (z <= -6.5e-252) {
tmp = i * fma(j, -y, (a * b));
} else if (z <= 1.05e+92) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(y, x, Float64(b * Float64(-c)))) tmp = 0.0 if (z <= -1.75e+21) tmp = t_1; elseif (z <= -6.5e-252) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (z <= 1.05e+92) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+21], t$95$1, If[LessEqual[z, -6.5e-252], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+92], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-252}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+92}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.75e21 or 1.04999999999999993e92 < z Initial program 60.0%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6469.2
Applied rewrites69.2%
Applied rewrites70.2%
if -1.75e21 < z < -6.4999999999999998e-252Initial program 80.7%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.6
Applied rewrites51.6%
if -6.4999999999999998e-252 < z < 1.04999999999999993e92Initial program 83.6%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.8
Applied rewrites57.8%
Final simplification61.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (fma c (- b) (* x y)))))
(if (<= z -1.05e-101)
t_1
(if (<= z -6.5e-252)
(* i (fma j (- y) (* a b)))
(if (<= z 1.05e+92) (* t (fma j c (* x (- a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * fma(c, -b, (x * y));
double tmp;
if (z <= -1.05e-101) {
tmp = t_1;
} else if (z <= -6.5e-252) {
tmp = i * fma(j, -y, (a * b));
} else if (z <= 1.05e+92) {
tmp = t * fma(j, c, (x * -a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * fma(c, Float64(-b), Float64(x * y))) tmp = 0.0 if (z <= -1.05e-101) tmp = t_1; elseif (z <= -6.5e-252) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (z <= 1.05e+92) tmp = Float64(t * fma(j, c, Float64(x * Float64(-a)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e-101], t$95$1, If[LessEqual[z, -6.5e-252], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+92], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{-101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -6.5 \cdot 10^{-252}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+92}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.05000000000000008e-101 or 1.04999999999999993e92 < z Initial program 66.2%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.6
Applied rewrites64.6%
if -1.05000000000000008e-101 < z < -6.4999999999999998e-252Initial program 75.5%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.0
Applied rewrites56.0%
if -6.4999999999999998e-252 < z < 1.04999999999999993e92Initial program 83.6%
Taylor expanded in t around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.8
Applied rewrites57.8%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3.2e-29)
(* c (fma j t (* z (- b))))
(if (<= c -1.4e-236)
(* i (fma j (- y) (* a b)))
(if (<= c 7.2e+132)
(* x (fma z y (* t (- a))))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.2e-29) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -1.4e-236) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 7.2e+132) {
tmp = x * fma(z, y, (t * -a));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.2e-29) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -1.4e-236) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 7.2e+132) tmp = Float64(x * fma(z, y, Float64(t * Float64(-a)))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.2e-29], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.4e-236], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+132], N[(x * N[(z * y + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(z, y, t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -3.2e-29Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -3.2e-29 < c < -1.39999999999999993e-236Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.4
Applied rewrites54.4%
if -1.39999999999999993e-236 < c < 7.20000000000000031e132Initial program 76.8%
Taylor expanded in y around 0
Applied rewrites83.9%
Taylor expanded in a around inf
Applied rewrites48.4%
Taylor expanded in y around inf
Applied rewrites76.9%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6452.9
Applied rewrites52.9%
if 7.20000000000000031e132 < c Initial program 55.4%
Taylor expanded in y around 0
Applied rewrites58.1%
Taylor expanded in a around inf
Applied rewrites53.8%
Taylor expanded in y around inf
Applied rewrites53.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.8
Applied rewrites71.8%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3.2e-29)
(* c (fma j t (* z (- b))))
(if (<= c -1.1e-236)
(* i (fma j (- y) (* a b)))
(if (<= c 7.2e+132)
(* x (- (* y z) (* t a)))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.2e-29) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -1.1e-236) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 7.2e+132) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.2e-29) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -1.1e-236) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 7.2e+132) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.2e-29], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.1e-236], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e+132], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 7.2 \cdot 10^{+132}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -3.2e-29Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -3.2e-29 < c < -1.09999999999999996e-236Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.4
Applied rewrites54.4%
if -1.09999999999999996e-236 < c < 7.20000000000000031e132Initial program 76.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6450.9
Applied rewrites50.9%
if 7.20000000000000031e132 < c Initial program 55.4%
Taylor expanded in y around 0
Applied rewrites58.1%
Taylor expanded in a around inf
Applied rewrites53.8%
Taylor expanded in y around inf
Applied rewrites53.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6471.8
Applied rewrites71.8%
Final simplification59.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3.2e-29)
(* c (fma j t (* z (- b))))
(if (<= c -1.25e-236)
(* i (fma j (- y) (* a b)))
(if (<= c 6e-10)
(* a (fma t (- x) (* b i)))
(* c (fma b (- z) (* t j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.2e-29) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= -1.25e-236) {
tmp = i * fma(j, -y, (a * b));
} else if (c <= 6e-10) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.2e-29) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= -1.25e-236) tmp = Float64(i * fma(j, Float64(-y), Float64(a * b))); elseif (c <= 6e-10) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.2e-29], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.25e-236], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e-10], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.2 \cdot 10^{-29}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-236}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -3.2e-29Initial program 73.5%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.4
Applied rewrites70.4%
if -3.2e-29 < c < -1.2499999999999999e-236Initial program 80.9%
Taylor expanded in i around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.4
Applied rewrites54.4%
if -1.2499999999999999e-236 < c < 6e-10Initial program 77.4%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.9
Applied rewrites45.9%
if 6e-10 < c Initial program 63.3%
Taylor expanded in y around 0
Applied rewrites70.6%
Taylor expanded in a around inf
Applied rewrites54.2%
Taylor expanded in y around inf
Applied rewrites65.0%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
Final simplification57.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* c (* z b)))))
(if (<= z -6.2e+189)
t_1
(if (<= z -1.35e-6)
(* z (* x y))
(if (<= z 3.1e+68) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -(c * (z * b));
double tmp;
if (z <= -6.2e+189) {
tmp = t_1;
} else if (z <= -1.35e-6) {
tmp = z * (x * y);
} else if (z <= 3.1e+68) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = -(c * (z * b))
if (z <= (-6.2d+189)) then
tmp = t_1
else if (z <= (-1.35d-6)) then
tmp = z * (x * y)
else if (z <= 3.1d+68) then
tmp = c * (t * j)
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 t_1 = -(c * (z * b));
double tmp;
if (z <= -6.2e+189) {
tmp = t_1;
} else if (z <= -1.35e-6) {
tmp = z * (x * y);
} else if (z <= 3.1e+68) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -(c * (z * b)) tmp = 0 if z <= -6.2e+189: tmp = t_1 elif z <= -1.35e-6: tmp = z * (x * y) elif z <= 3.1e+68: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(-Float64(c * Float64(z * b))) tmp = 0.0 if (z <= -6.2e+189) tmp = t_1; elseif (z <= -1.35e-6) tmp = Float64(z * Float64(x * y)); elseif (z <= 3.1e+68) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -(c * (z * b)); tmp = 0.0; if (z <= -6.2e+189) tmp = t_1; elseif (z <= -1.35e-6) tmp = z * (x * y); elseif (z <= 3.1e+68) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = (-N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[z, -6.2e+189], t$95$1, If[LessEqual[z, -1.35e-6], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+68], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -c \cdot \left(z \cdot b\right)\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{+189}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-6}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+68}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.1999999999999999e189 or 3.0999999999999998e68 < z Initial program 63.6%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.0
Applied rewrites71.0%
Taylor expanded in c around inf
Applied rewrites44.9%
Applied rewrites51.7%
if -6.1999999999999999e189 < z < -1.34999999999999999e-6Initial program 59.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.7
Applied rewrites59.7%
Taylor expanded in c around 0
Applied rewrites41.4%
if -1.34999999999999999e-6 < z < 3.0999999999999998e68Initial program 82.7%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6450.8
Applied rewrites50.8%
Taylor expanded in c around inf
Applied rewrites32.1%
Applied rewrites34.8%
Final simplification40.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -1.1e-95) (* c (fma j t (* z (- b)))) (if (<= c 6e-10) (* a (fma t (- x) (* b i))) (* c (fma b (- z) (* t j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -1.1e-95) {
tmp = c * fma(j, t, (z * -b));
} else if (c <= 6e-10) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = c * fma(b, -z, (t * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.1e-95) tmp = Float64(c * fma(j, t, Float64(z * Float64(-b)))); elseif (c <= 6e-10) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = Float64(c * fma(b, Float64(-z), Float64(t * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.1e-95], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e-10], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.1 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\end{array}
\end{array}
if c < -1.0999999999999999e-95Initial program 73.2%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6461.6
Applied rewrites61.6%
if -1.0999999999999999e-95 < c < 6e-10Initial program 80.0%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
if 6e-10 < c Initial program 63.3%
Taylor expanded in y around 0
Applied rewrites70.6%
Taylor expanded in a around inf
Applied rewrites54.2%
Taylor expanded in y around inf
Applied rewrites65.0%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
Final simplification54.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (fma b (- z) (* t j)))))
(if (<= c -1950000000.0)
t_1
(if (<= c 6e-10) (* a (fma t (- x) (* b i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * fma(b, -z, (t * j));
double tmp;
if (c <= -1950000000.0) {
tmp = t_1;
} else if (c <= 6e-10) {
tmp = a * fma(t, -x, (b * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * fma(b, Float64(-z), Float64(t * j))) tmp = 0.0 if (c <= -1950000000.0) tmp = t_1; elseif (c <= 6e-10) tmp = Float64(a * fma(t, Float64(-x), Float64(b * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1950000000.0], t$95$1, If[LessEqual[c, 6e-10], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\
\mathbf{if}\;c \leq -1950000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.95e9 or 6e-10 < c Initial program 67.9%
Taylor expanded in y around 0
Applied rewrites70.4%
Taylor expanded in a around inf
Applied rewrites52.0%
Taylor expanded in y around inf
Applied rewrites62.9%
Taylor expanded in c around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6465.8
Applied rewrites65.8%
if -1.95e9 < c < 6e-10Initial program 78.8%
Taylor expanded in a around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.6
Applied rewrites42.6%
Final simplification54.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= y -2.2e+124)
t_1
(if (<= y 1.05e+178) (* b (fma c (- z) (* a i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (y <= -2.2e+124) {
tmp = t_1;
} else if (y <= 1.05e+178) {
tmp = b * fma(c, -z, (a * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (y <= -2.2e+124) tmp = t_1; elseif (y <= 1.05e+178) tmp = Float64(b * fma(c, Float64(-z), Float64(a * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+124], t$95$1, If[LessEqual[y, 1.05e+178], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+178}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.2000000000000001e124 or 1.0499999999999999e178 < y Initial program 63.7%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.0
Applied rewrites65.0%
Taylor expanded in c around 0
Applied rewrites60.2%
if -2.2000000000000001e124 < y < 1.0499999999999999e178Initial program 76.2%
Taylor expanded in b around inf
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6442.5
Applied rewrites42.5%
Final simplification46.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= j -3.8e+92)
t_1
(if (<= j -7e+18)
(- (* b (* z c)))
(if (<= j 5.5e+70) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -3.8e+92) {
tmp = t_1;
} else if (j <= -7e+18) {
tmp = -(b * (z * c));
} else if (j <= 5.5e+70) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-3.8d+92)) then
tmp = t_1
else if (j <= (-7d+18)) then
tmp = -(b * (z * c))
else if (j <= 5.5d+70) then
tmp = z * (x * y)
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 t_1 = c * (t * j);
double tmp;
if (j <= -3.8e+92) {
tmp = t_1;
} else if (j <= -7e+18) {
tmp = -(b * (z * c));
} else if (j <= 5.5e+70) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -3.8e+92: tmp = t_1 elif j <= -7e+18: tmp = -(b * (z * c)) elif j <= 5.5e+70: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -3.8e+92) tmp = t_1; elseif (j <= -7e+18) tmp = Float64(-Float64(b * Float64(z * c))); elseif (j <= 5.5e+70) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -3.8e+92) tmp = t_1; elseif (j <= -7e+18) tmp = -(b * (z * c)); elseif (j <= 5.5e+70) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+92], t$95$1, If[LessEqual[j, -7e+18], (-N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), If[LessEqual[j, 5.5e+70], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -7 \cdot 10^{+18}:\\
\;\;\;\;-b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+70}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.8e92 or 5.49999999999999986e70 < j Initial program 74.8%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6461.5
Applied rewrites61.5%
Taylor expanded in c around inf
Applied rewrites42.1%
Applied rewrites45.8%
if -3.8e92 < j < -7e18Initial program 70.4%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6453.6
Applied rewrites53.6%
Taylor expanded in c around inf
Applied rewrites48.9%
if -7e18 < j < 5.49999999999999986e70Initial program 72.5%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Applied rewrites54.5%
Taylor expanded in c around 0
Applied rewrites34.0%
Final simplification39.7%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -1.25e+19) t_1 (if (<= j 5.5e+70) (* z (* x y)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -1.25e+19) {
tmp = t_1;
} else if (j <= 5.5e+70) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-1.25d+19)) then
tmp = t_1
else if (j <= 5.5d+70) then
tmp = z * (x * y)
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 t_1 = c * (t * j);
double tmp;
if (j <= -1.25e+19) {
tmp = t_1;
} else if (j <= 5.5e+70) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -1.25e+19: tmp = t_1 elif j <= 5.5e+70: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -1.25e+19) tmp = t_1; elseif (j <= 5.5e+70) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -1.25e+19) tmp = t_1; elseif (j <= 5.5e+70) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.25e+19], t$95$1, If[LessEqual[j, 5.5e+70], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -1.25 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{+70}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.25e19 or 5.49999999999999986e70 < j Initial program 74.2%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6460.3
Applied rewrites60.3%
Taylor expanded in c around inf
Applied rewrites39.7%
Applied rewrites42.9%
if -1.25e19 < j < 5.49999999999999986e70Initial program 72.5%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6454.5
Applied rewrites54.5%
Taylor expanded in c around 0
Applied rewrites34.0%
Final simplification38.2%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* c (* t j)))) (if (<= j -2.25e+18) t_1 (if (<= j 3.8e+76) (* y (* x z)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (j <= -2.25e+18) {
tmp = t_1;
} else if (j <= 3.8e+76) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (j <= (-2.25d+18)) then
tmp = t_1
else if (j <= 3.8d+76) then
tmp = y * (x * z)
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 t_1 = c * (t * j);
double tmp;
if (j <= -2.25e+18) {
tmp = t_1;
} else if (j <= 3.8e+76) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if j <= -2.25e+18: tmp = t_1 elif j <= 3.8e+76: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (j <= -2.25e+18) tmp = t_1; elseif (j <= 3.8e+76) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (j <= -2.25e+18) tmp = t_1; elseif (j <= 3.8e+76) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.25e+18], t$95$1, If[LessEqual[j, 3.8e+76], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -2.25 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{+76}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -2.25e18 or 3.80000000000000024e76 < j Initial program 74.2%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6460.3
Applied rewrites60.3%
Taylor expanded in c around inf
Applied rewrites39.7%
Applied rewrites42.9%
if -2.25e18 < j < 3.80000000000000024e76Initial program 72.5%
Taylor expanded in c around 0
associate-*r*N/A
mul-1-negN/A
cancel-sign-subN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
cancel-sign-subN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
Applied rewrites63.9%
Taylor expanded in j around inf
Applied rewrites13.3%
Taylor expanded in z around inf
Applied rewrites33.3%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* x (* y z)))) (if (<= y -4.5e-15) t_1 (if (<= y 3.9e+142) (* c (* t j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -4.5e-15) {
tmp = t_1;
} else if (y <= 3.9e+142) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-4.5d-15)) then
tmp = t_1
else if (y <= 3.9d+142) then
tmp = c * (t * j)
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 t_1 = x * (y * z);
double tmp;
if (y <= -4.5e-15) {
tmp = t_1;
} else if (y <= 3.9e+142) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -4.5e-15: tmp = t_1 elif y <= 3.9e+142: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -4.5e-15) tmp = t_1; elseif (y <= 3.9e+142) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -4.5e-15) tmp = t_1; elseif (y <= 3.9e+142) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e-15], t$95$1, If[LessEqual[y, 3.9e+142], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{-15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{+142}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.4999999999999998e-15 or 3.9e142 < y Initial program 65.9%
Taylor expanded in z around inf
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6459.2
Applied rewrites59.2%
Taylor expanded in c around inf
Applied rewrites19.0%
Taylor expanded in c around 0
Applied rewrites46.6%
if -4.4999999999999998e-15 < y < 3.9e142Initial program 77.9%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6440.9
Applied rewrites40.9%
Taylor expanded in c around inf
Applied rewrites28.0%
Applied rewrites31.0%
Final simplification37.0%
(FPCore (x y z t a b c i j) :precision binary64 (* c (* t j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return c * (t * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = c * (t * 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) {
return c * (t * j);
}
def code(x, y, z, t, a, b, c, i, j): return c * (t * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(c * Float64(t * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = c * (t * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(t \cdot j\right)
\end{array}
Initial program 73.3%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6440.5
Applied rewrites40.5%
Taylor expanded in c around inf
Applied rewrites24.6%
Applied rewrites26.1%
Final simplification26.1%
(FPCore (x y z t a b c i j) :precision binary64 (* t (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return t * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = t * (c * 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) {
return t * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return t * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(t * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = t * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
t \cdot \left(c \cdot j\right)
\end{array}
Initial program 73.3%
Taylor expanded in j around inf
lower-*.f64N/A
sub-negN/A
lower-fma.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
neg-mul-1N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f6440.5
Applied rewrites40.5%
Taylor expanded in c around inf
Applied rewrites24.6%
Final simplification24.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
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 t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024219
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))