
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i)))
(t_2
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j t_1))))
(if (<= t_2 2e+296)
t_2
(if (<= t_2 INFINITY)
(fma j t_1 (fma t (fma a (- x) (* b i)) (* z (fma c (- b) (* x y)))))
(* i (fma j (- y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * c) - (y * i);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * t_1);
double tmp;
if (t_2 <= 2e+296) {
tmp = t_2;
} else if (t_2 <= ((double) INFINITY)) {
tmp = fma(j, t_1, fma(t, fma(a, -x, (b * i)), (z * fma(c, -b, (x * y)))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * t_1)) tmp = 0.0 if (t_2 <= 2e+296) tmp = t_2; elseif (t_2 <= Inf) tmp = fma(j, t_1, fma(t, fma(a, Float64(-x), Float64(b * i)), Float64(z * fma(c, Float64(-b), Float64(x * y))))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, 2e+296], t$95$2, If[LessEqual[t$95$2, Infinity], N[(j * t$95$1 + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot t\_1\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{+296}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 1.99999999999999996e296Initial program 96.5%
if 1.99999999999999996e296 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 82.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites89.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification87.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c)))
(t_2 (- (* a c) (* y i)))
(t_3 (+ (+ (* x (- (* y z) (* t a))) (* b t_1)) (* j t_2))))
(if (<= t_3 5e+290)
(fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x z)))))
(if (<= t_3 INFINITY)
(fma j t_2 (fma t (fma a (- x) (* b i)) (* z (fma c (- b) (* x y)))))
(* i (fma j (- y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) - (z * c);
double t_2 = (a * c) - (y * i);
double t_3 = ((x * ((y * z) - (t * a))) + (b * t_1)) + (j * t_2);
double tmp;
if (t_3 <= 5e+290) {
tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
} else if (t_3 <= ((double) INFINITY)) {
tmp = fma(j, t_2, fma(t, fma(a, -x, (b * i)), (z * fma(c, -b, (x * y)))));
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) t_2 = Float64(Float64(a * c) - Float64(y * i)) t_3 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * t_1)) + Float64(j * t_2)) tmp = 0.0 if (t_3 <= 5e+290) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z))))); elseif (t_3 <= Inf) tmp = fma(j, t_2, fma(t, fma(a, Float64(-x), Float64(b * i)), Float64(z * fma(c, Float64(-b), Float64(x * y))))); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 5e+290], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(j * t$95$2 + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
t_2 := a \cdot c - y \cdot i\\
t_3 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot t\_1\right) + j \cdot t\_2\\
\mathbf{if}\;t\_3 \leq 5 \cdot 10^{+290}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 4.9999999999999998e290Initial program 96.5%
Taylor expanded in y around 0
Applied rewrites89.2%
if 4.9999999999999998e290 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 82.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites89.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification83.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t i) (* z c)))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (+ (+ t_2 (* b t_1)) t_3)))
(if (<= t_4 1e+225)
(fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x z)))))
(if (<= t_4 INFINITY)
(+ (- t_2 (* c (* z b))) t_3)
(* i (fma j (- y) (* t b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * i) - (z * c);
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double t_4 = (t_2 + (b * t_1)) + t_3;
double tmp;
if (t_4 <= 1e+225) {
tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
} else if (t_4 <= ((double) INFINITY)) {
tmp = (t_2 - (c * (z * b))) + t_3;
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * i) - Float64(z * c)) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(Float64(t_2 + Float64(b * t_1)) + t_3) tmp = 0.0 if (t_4 <= 1e+225) tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z))))); elseif (t_4 <= Inf) tmp = Float64(Float64(t_2 - Float64(c * Float64(z * b))) + t_3); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$2 + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]}, If[LessEqual[t$95$4, 1e+225], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, Infinity], N[(N[(t$95$2 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot i - z \cdot c\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := \left(t\_2 + b \cdot t\_1\right) + t\_3\\
\mathbf{if}\;t\_4 \leq 10^{+225}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;\left(t\_2 - c \cdot \left(z \cdot b\right)\right) + t\_3\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 9.99999999999999928e224Initial program 96.2%
Taylor expanded in y around 0
Applied rewrites90.3%
if 9.99999999999999928e224 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 85.4%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6482.5
Applied rewrites82.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification81.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= (+ (+ t_1 (* b (- (* t i) (* z c)))) t_2) INFINITY)
(+ (- t_1 (* c (* z b))) t_2)
(* i (fma j (- y) (* t b))))))
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));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (((t_1 + (b * ((t * i) - (z * c)))) + t_2) <= ((double) INFINITY)) {
tmp = (t_1 - (c * (z * b))) + t_2;
} else {
tmp = i * fma(j, -y, (t * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (Float64(Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + t_2) <= Inf) tmp = Float64(Float64(t_1 - Float64(c * Float64(z * b))) + t_2); else tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], Infinity], N[(N[(t$95$1 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;\left(t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right) + t\_2 \leq \infty:\\
\;\;\;\;\left(t\_1 - c \cdot \left(z \cdot b\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
Taylor expanded in c around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6481.3
Applied rewrites81.3%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6459.1
Applied rewrites59.1%
Final simplification76.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.5e+131)
t_2
(if (<= j -5e+23)
t_1
(if (<= j -4.8e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -7.5e-44)
(* a (fma j c (* x (- t))))
(if (<= j -5.5e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 5.5e-229)
(* z (* x (- y (/ (* b c) x))))
(if (<= j 8.5e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.5e+131) {
tmp = t_2;
} else if (j <= -5e+23) {
tmp = t_1;
} else if (j <= -4.8e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -7.5e-44) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -5.5e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 5.5e-229) {
tmp = z * (x * (y - ((b * c) / x)));
} else if (j <= 8.5e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+131) tmp = t_2; elseif (j <= -5e+23) tmp = t_1; elseif (j <= -4.8e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -7.5e-44) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -5.5e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 5.5e-229) tmp = Float64(z * Float64(x * Float64(y - Float64(Float64(b * c) / x)))); elseif (j <= 8.5e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+131], t$95$2, If[LessEqual[j, -5e+23], t$95$1, If[LessEqual[j, -4.8e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.5e-44], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.5e-229], N[(z * N[(x * N[(y - N[(N[(b * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.8 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-44}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 5.5 \cdot 10^{-229}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - \frac{b \cdot c}{x}\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.49999999999999998e131 or 8.50000000000000007e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -2.49999999999999998e131 < j < -4.9999999999999999e23 or 5.5000000000000001e-229 < j < 8.50000000000000007e80Initial program 75.9%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6460.9
Applied rewrites60.9%
if -4.9999999999999999e23 < j < -4.7999999999999997e-30Initial program 83.4%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.4
Applied rewrites75.4%
if -4.7999999999999997e-30 < j < -7.50000000000000008e-44Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -7.50000000000000008e-44 < j < -5.4999999999999999e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -5.4999999999999999e-135 < j < 5.5000000000000001e-229Initial program 66.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-*.f6463.1
Applied rewrites63.1%
Taylor expanded in x around inf
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6465.2
Applied rewrites65.2%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.5e+131)
t_2
(if (<= j -5e+23)
t_1
(if (<= j -4.8e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -7.5e-44)
(* a (fma j c (* x (- t))))
(if (<= j -5.5e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 1.6e-231)
(* z (fma c (- b) (* x y)))
(if (<= j 8.5e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.5e+131) {
tmp = t_2;
} else if (j <= -5e+23) {
tmp = t_1;
} else if (j <= -4.8e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -7.5e-44) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -5.5e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 1.6e-231) {
tmp = z * fma(c, -b, (x * y));
} else if (j <= 8.5e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+131) tmp = t_2; elseif (j <= -5e+23) tmp = t_1; elseif (j <= -4.8e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -7.5e-44) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -5.5e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 1.6e-231) tmp = Float64(z * fma(c, Float64(-b), Float64(x * y))); elseif (j <= 8.5e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+131], t$95$2, If[LessEqual[j, -5e+23], t$95$1, If[LessEqual[j, -4.8e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.5e-44], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e-231], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.8 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-44}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -5.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-231}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.49999999999999998e131 or 8.50000000000000007e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -2.49999999999999998e131 < j < -4.9999999999999999e23 or 1.60000000000000004e-231 < j < 8.50000000000000007e80Initial program 76.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if -4.9999999999999999e23 < j < -4.7999999999999997e-30Initial program 83.4%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.4
Applied rewrites75.4%
if -4.7999999999999997e-30 < j < -7.50000000000000008e-44Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -7.50000000000000008e-44 < j < -5.4999999999999999e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -5.4999999999999999e-135 < j < 1.60000000000000004e-231Initial program 65.1%
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-*.f6463.6
Applied rewrites63.6%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -2.5e+131)
t_2
(if (<= j -5e+23)
t_1
(if (<= j -4.8e-30)
(* y (fma j (- i) (* x z)))
(if (<= j -7.5e-44)
(* a (fma j c (* x (- t))))
(if (<= j -4.5e-135)
(* i (fma j (- y) (* t b)))
(if (<= j 1.25e-203)
(* x (fma a (- t) (* y z)))
(if (<= j 8.5e+80) 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.5e+131) {
tmp = t_2;
} else if (j <= -5e+23) {
tmp = t_1;
} else if (j <= -4.8e-30) {
tmp = y * fma(j, -i, (x * z));
} else if (j <= -7.5e-44) {
tmp = a * fma(j, c, (x * -t));
} else if (j <= -4.5e-135) {
tmp = i * fma(j, -y, (t * b));
} else if (j <= 1.25e-203) {
tmp = x * fma(a, -t, (y * z));
} else if (j <= 8.5e+80) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.5e+131) tmp = t_2; elseif (j <= -5e+23) tmp = t_1; elseif (j <= -4.8e-30) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); elseif (j <= -7.5e-44) tmp = Float64(a * fma(j, c, Float64(x * Float64(-t)))); elseif (j <= -4.5e-135) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); elseif (j <= 1.25e-203) tmp = Float64(x * fma(a, Float64(-t), Float64(y * z))); elseif (j <= 8.5e+80) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.5e+131], t$95$2, If[LessEqual[j, -5e+23], t$95$1, If[LessEqual[j, -4.8e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.5e-44], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.25e-203], N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.5 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5 \cdot 10^{+23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.8 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{-44}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-203}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -2.49999999999999998e131 or 8.50000000000000007e80 < j Initial program 71.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.5
Applied rewrites71.5%
if -2.49999999999999998e131 < j < -4.9999999999999999e23 or 1.25e-203 < j < 8.50000000000000007e80Initial program 76.9%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6463.5
Applied rewrites63.5%
if -4.9999999999999999e23 < j < -4.7999999999999997e-30Initial program 83.4%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.4
Applied rewrites75.4%
if -4.7999999999999997e-30 < j < -7.50000000000000008e-44Initial program 87.3%
Taylor expanded in a 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.f6487.7
Applied rewrites87.7%
if -7.50000000000000008e-44 < j < -4.49999999999999987e-135Initial program 83.6%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6475.3
Applied rewrites75.3%
if -4.49999999999999987e-135 < j < 1.25e-203Initial program 66.1%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.9
Applied rewrites54.9%
Final simplification66.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.9e+44)
t_1
(if (<= a -9e-168)
(* (* b i) (fma (- c) (/ z i) t))
(if (<= a 5.2e-68)
(* y (fma x z (* i (- j))))
(if (<= a 8000000.0)
(* t (fma a (- x) (* b i)))
(if (<= a 9.5e+79) (fma (* y z) x (* z (* 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.9e+44) {
tmp = t_1;
} else if (a <= -9e-168) {
tmp = (b * i) * fma(-c, (z / i), t);
} else if (a <= 5.2e-68) {
tmp = y * fma(x, z, (i * -j));
} else if (a <= 8000000.0) {
tmp = t * fma(a, -x, (b * i));
} else if (a <= 9.5e+79) {
tmp = fma((y * z), x, (z * (b * -c)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.9e+44) tmp = t_1; elseif (a <= -9e-168) tmp = Float64(Float64(b * i) * fma(Float64(-c), Float64(z / i), t)); elseif (a <= 5.2e-68) tmp = Float64(y * fma(x, z, Float64(i * Float64(-j)))); elseif (a <= 8000000.0) tmp = Float64(t * fma(a, Float64(-x), Float64(b * i))); elseif (a <= 9.5e+79) tmp = fma(Float64(y * z), x, Float64(z * 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[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+44], t$95$1, If[LessEqual[a, -9e-168], N[(N[(b * i), $MachinePrecision] * N[((-c) * N[(z / i), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-68], N[(y * N[(x * z + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8000000.0], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e+79], N[(N[(y * z), $MachinePrecision] * x + N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9 \cdot 10^{-168}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \mathsf{fma}\left(-c, \frac{z}{i}, t\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-68}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 8000000:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{+79}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, z \cdot \left(b \cdot \left(-c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.9000000000000001e44 or 9.49999999999999994e79 < a Initial program 67.6%
Taylor expanded in a 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.f6470.2
Applied rewrites70.2%
if -1.9000000000000001e44 < a < -9.0000000000000002e-168Initial program 72.2%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites75.3%
Taylor expanded in c around -inf
Applied rewrites76.0%
Taylor expanded in i around -inf
Applied rewrites53.9%
Taylor expanded in b around -inf
*-commutativeN/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-/.f64N/A
lower-*.f6460.8
Applied rewrites60.8%
if -9.0000000000000002e-168 < a < 5.1999999999999996e-68Initial program 78.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.2%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6461.9
Applied rewrites61.9%
if 5.1999999999999996e-68 < a < 8e6Initial program 79.3%
Taylor expanded in t 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-*.f6466.6
Applied rewrites66.6%
if 8e6 < a < 9.49999999999999994e79Initial program 80.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-*.f6460.8
Applied rewrites60.8%
lift-neg.f64N/A
lift-*.f64N/A
distribute-rgt-inN/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f64N/A
lift-neg.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-outN/A
lower-neg.f64N/A
lower-*.f64N/A
lower-*.f6460.9
Applied rewrites60.9%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* a c) (* y i))) (t_2 (fma j t_1 (* t (* a (- x))))))
(if (<= j -1.38e+141)
t_2
(if (<= j -6.5e-135)
(+ (* i (* t b)) (* j t_1))
(if (<= j 8.5e+80)
(fma c (* z (- b)) (* x (fma a (- t) (* y z))))
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 = (a * c) - (y * i);
double t_2 = fma(j, t_1, (t * (a * -x)));
double tmp;
if (j <= -1.38e+141) {
tmp = t_2;
} else if (j <= -6.5e-135) {
tmp = (i * (t * b)) + (j * t_1);
} else if (j <= 8.5e+80) {
tmp = fma(c, (z * -b), (x * fma(a, -t, (y * z))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * c) - Float64(y * i)) t_2 = fma(j, t_1, Float64(t * Float64(a * Float64(-x)))) tmp = 0.0 if (j <= -1.38e+141) tmp = t_2; elseif (j <= -6.5e-135) tmp = Float64(Float64(i * Float64(t * b)) + Float64(j * t_1)); elseif (j <= 8.5e+80) tmp = fma(c, Float64(z * Float64(-b)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t$95$1 + N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.38e+141], t$95$2, If[LessEqual[j, -6.5e-135], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], N[(c * N[(z * (-b)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \mathsf{fma}\left(j, t\_1, t \cdot \left(a \cdot \left(-x\right)\right)\right)\\
\mathbf{if}\;j \leq -1.38 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot t\_1\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{fma}\left(c, z \cdot \left(-b\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -1.38e141 or 8.50000000000000007e80 < j Initial program 70.7%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites71.0%
Taylor expanded in a around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6481.1
Applied rewrites81.1%
if -1.38e141 < j < -6.50000000000000056e-135Initial program 79.1%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6461.9
Applied rewrites61.9%
if -6.50000000000000056e-135 < j < 8.50000000000000007e80Initial program 73.6%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites72.2%
Taylor expanded in j around 0
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%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma a (- x) (* b i))) (t_2 (- (* a c) (* y i))))
(if (<= j -3.8e-65)
(fma j t_2 (* t t_1))
(if (<= j 9.2e+80)
(fma t t_1 (* z (fma b (- c) (* x y))))
(fma j t_2 (* t (* a (- x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(a, -x, (b * i));
double t_2 = (a * c) - (y * i);
double tmp;
if (j <= -3.8e-65) {
tmp = fma(j, t_2, (t * t_1));
} else if (j <= 9.2e+80) {
tmp = fma(t, t_1, (z * fma(b, -c, (x * y))));
} else {
tmp = fma(j, t_2, (t * (a * -x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(a, Float64(-x), Float64(b * i)) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (j <= -3.8e-65) tmp = fma(j, t_2, Float64(t * t_1)); elseif (j <= 9.2e+80) tmp = fma(t, t_1, Float64(z * fma(b, Float64(-c), Float64(x * y)))); else tmp = fma(j, t_2, Float64(t * Float64(a * Float64(-x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e-65], N[(j * t$95$2 + N[(t * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.2e+80], N[(t * t$95$1 + N[(z * N[(b * (-c) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * t$95$2 + N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, -x, b \cdot i\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{-65}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t \cdot t\_1\right)\\
\mathbf{elif}\;j \leq 9.2 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{fma}\left(t, t\_1, z \cdot \mathsf{fma}\left(b, -c, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t \cdot \left(a \cdot \left(-x\right)\right)\right)\\
\end{array}
\end{array}
if j < -3.8000000000000002e-65Initial program 72.5%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
cancel-sign-sub-invN/A
associate-*r*N/A
metadata-evalN/A
*-lft-identityN/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-inN/A
*-lft-identityN/A
metadata-evalN/A
cancel-sign-sub-invN/A
distribute-lft-out--N/A
mul-1-negN/A
Applied rewrites69.6%
if -3.8000000000000002e-65 < j < 9.20000000000000016e80Initial program 75.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.0%
Taylor expanded in j around 0
lower-fma.f64N/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-*.f64N/A
lower-*.f64N/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-*.f6480.6
Applied rewrites80.6%
if 9.20000000000000016e80 < j Initial program 74.4%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites66.9%
Taylor expanded in a around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6480.4
Applied rewrites80.4%
Final simplification76.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma j (- (* a c) (* y i)) (* t (* a (- x))))))
(if (<= j -1.6e+193)
t_1
(if (<= j 6e+82)
(fma b (- (* t i) (* z c)) (* y (fma j (- i) (* 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 = fma(j, ((a * c) - (y * i)), (t * (a * -x)));
double tmp;
if (j <= -1.6e+193) {
tmp = t_1;
} else if (j <= 6e+82) {
tmp = fma(b, ((t * i) - (z * c)), (y * fma(j, -i, (x * z))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(j, Float64(Float64(a * c) - Float64(y * i)), Float64(t * Float64(a * Float64(-x)))) tmp = 0.0 if (j <= -1.6e+193) tmp = t_1; elseif (j <= 6e+82) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), Float64(y * fma(j, Float64(-i), Float64(x * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.6e+193], t$95$1, If[LessEqual[j, 6e+82], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(a \cdot \left(-x\right)\right)\right)\\
\mathbf{if}\;j \leq -1.6 \cdot 10^{+193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6 \cdot 10^{+82}:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.60000000000000007e193 or 5.99999999999999978e82 < j Initial program 67.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites69.9%
Taylor expanded in a around inf
mul-1-negN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
distribute-rgt-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6481.7
Applied rewrites81.7%
if -1.60000000000000007e193 < j < 5.99999999999999978e82Initial program 77.0%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
Applied rewrites72.7%
Final simplification75.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.9e+44)
t_1
(if (<= a -7.2e-115)
(* b (fma t i (* c (- z))))
(if (<= a 5.2e-68)
(* y (fma x z (* i (- j))))
(if (<= a 4000000.0)
(* t (fma a (- x) (* b i)))
(if (<= a 2.4e+65) (* y (fma j (- i) (* 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.9e+44) {
tmp = t_1;
} else if (a <= -7.2e-115) {
tmp = b * fma(t, i, (c * -z));
} else if (a <= 5.2e-68) {
tmp = y * fma(x, z, (i * -j));
} else if (a <= 4000000.0) {
tmp = t * fma(a, -x, (b * i));
} else if (a <= 2.4e+65) {
tmp = y * fma(j, -i, (x * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.9e+44) tmp = t_1; elseif (a <= -7.2e-115) tmp = Float64(b * fma(t, i, Float64(c * Float64(-z)))); elseif (a <= 5.2e-68) tmp = Float64(y * fma(x, z, Float64(i * Float64(-j)))); elseif (a <= 4000000.0) tmp = Float64(t * fma(a, Float64(-x), Float64(b * i))); elseif (a <= 2.4e+65) tmp = Float64(y * fma(j, Float64(-i), Float64(x * z))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+44], t$95$1, If[LessEqual[a, -7.2e-115], N[(b * N[(t * i + N[(c * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-68], N[(y * N[(x * z + N[(i * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4000000.0], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e+65], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(t, i, c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-68}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 4000000:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+65}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.9000000000000001e44 or 2.4000000000000002e65 < a Initial program 67.9%
Taylor expanded in a 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.f6469.5
Applied rewrites69.5%
if -1.9000000000000001e44 < a < -7.20000000000000018e-115Initial program 73.7%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites74.1%
Taylor expanded in b around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6462.6
Applied rewrites62.6%
if -7.20000000000000018e-115 < a < 5.1999999999999996e-68Initial program 78.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.3%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6459.5
Applied rewrites59.5%
if 5.1999999999999996e-68 < a < 4e6Initial program 79.3%
Taylor expanded in t 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-*.f6466.6
Applied rewrites66.6%
if 4e6 < a < 2.4000000000000002e65Initial program 79.1%
Taylor expanded in y around inf
lower-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.3
Applied rewrites58.3%
Final simplification64.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))) (t_2 (* a (fma j c (* x (- t))))))
(if (<= a -1.9e+44)
t_2
(if (<= a -1.25e-167)
t_1
(if (<= a 5.5e-288)
(* y (* i (- j)))
(if (<= a 5.2e-68) (* x (* y z)) (if (<= a 5.2e-38) 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 = i * (t * b);
double t_2 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.9e+44) {
tmp = t_2;
} else if (a <= -1.25e-167) {
tmp = t_1;
} else if (a <= 5.5e-288) {
tmp = y * (i * -j);
} else if (a <= 5.2e-68) {
tmp = x * (y * z);
} else if (a <= 5.2e-38) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) t_2 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.9e+44) tmp = t_2; elseif (a <= -1.25e-167) tmp = t_1; elseif (a <= 5.5e-288) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 5.2e-68) tmp = Float64(x * Float64(y * z)); elseif (a <= 5.2e-38) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+44], t$95$2, If[LessEqual[a, -1.25e-167], t$95$1, If[LessEqual[a, 5.5e-288], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-68], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-38], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
t_2 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-288}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-68}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.9000000000000001e44 or 5.20000000000000022e-38 < a Initial program 69.9%
Taylor expanded in a 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.f6460.9
Applied rewrites60.9%
if -1.9000000000000001e44 < a < -1.25000000000000005e-167 or 5.1999999999999996e-68 < a < 5.20000000000000022e-38Initial program 76.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites79.3%
Taylor expanded in i 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.f6451.2
Applied rewrites51.2%
Taylor expanded in t around inf
lower-*.f6444.1
Applied rewrites44.1%
if -1.25000000000000005e-167 < a < 5.5e-288Initial program 68.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites66.7%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6466.2
Applied rewrites66.2%
Taylor expanded in x around 0
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6444.5
Applied rewrites44.5%
if 5.5e-288 < a < 5.1999999999999996e-68Initial program 83.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-*.f6453.9
Applied rewrites53.9%
Taylor expanded in c around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6442.4
Applied rewrites42.4%
Final simplification51.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -6.5e-135)
(+ (* i (* t b)) t_1)
(if (<= j 2.6e+97) (fma c (* z (- b)) (* x (fma a (- t) (* y 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -6.5e-135) {
tmp = (i * (t * b)) + t_1;
} else if (j <= 2.6e+97) {
tmp = fma(c, (z * -b), (x * fma(a, -t, (y * z))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -6.5e-135) tmp = Float64(Float64(i * Float64(t * b)) + t_1); elseif (j <= 2.6e+97) tmp = fma(c, Float64(z * Float64(-b)), Float64(x * fma(a, Float64(-t), Float64(y * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.5e-135], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 2.6e+97], N[(c * N[(z * (-b)), $MachinePrecision] + N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + t\_1\\
\mathbf{elif}\;j \leq 2.6 \cdot 10^{+97}:\\
\;\;\;\;\mathsf{fma}\left(c, z \cdot \left(-b\right), x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.50000000000000056e-135Initial program 74.2%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6461.6
Applied rewrites61.6%
if -6.50000000000000056e-135 < j < 2.6e97Initial program 74.3%
Taylor expanded in i around 0
sub-negN/A
+-commutativeN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
distribute-rgt-inN/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
lower-fma.f64N/A
Applied rewrites73.0%
Taylor expanded in j around 0
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6470.3
Applied rewrites70.3%
if 2.6e97 < j Initial program 72.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6477.3
Applied rewrites77.3%
Final simplification68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.4e+61)
(* z (fma y x (* b (- c))))
(if (<= z 3.4e+51)
(+ (* i (* t b)) (* j (- (* a c) (* y i))))
(* z (* x (- y (/ (* b c) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.4e+61) {
tmp = z * fma(y, x, (b * -c));
} else if (z <= 3.4e+51) {
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
} else {
tmp = z * (x * (y - ((b * c) / x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.4e+61) tmp = Float64(z * fma(y, x, Float64(b * Float64(-c)))); elseif (z <= 3.4e+51) tmp = Float64(Float64(i * Float64(t * b)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(z * Float64(x * Float64(y - Float64(Float64(b * c) / x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.4e+61], N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e+51], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * N[(y - N[(N[(b * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+61}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{+51}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - \frac{b \cdot c}{x}\right)\right)\\
\end{array}
\end{array}
if z < -2.3999999999999999e61Initial program 68.1%
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-*.f6470.7
Applied rewrites70.7%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lift-neg.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6472.9
Applied rewrites72.9%
if -2.3999999999999999e61 < z < 3.39999999999999984e51Initial program 80.9%
Taylor expanded in i around inf
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6463.7
Applied rewrites63.7%
if 3.39999999999999984e51 < z Initial program 60.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-*.f6460.6
Applied rewrites60.6%
Taylor expanded in x around inf
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6460.6
Applied rewrites60.6%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.75e+124)
t_1
(if (<= j -4.5e-135)
(* i (fma t b (* j (- y))))
(if (<= j 1.25e-203)
(* x (fma a (- t) (* y z)))
(if (<= j 8.5e+80) (* b (- (* t i) (* z 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.75e+124) {
tmp = t_1;
} else if (j <= -4.5e-135) {
tmp = i * fma(t, b, (j * -y));
} else if (j <= 1.25e-203) {
tmp = x * fma(a, -t, (y * z));
} else if (j <= 8.5e+80) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.75e+124) tmp = t_1; elseif (j <= -4.5e-135) tmp = Float64(i * fma(t, b, Float64(j * Float64(-y)))); elseif (j <= 1.25e-203) tmp = Float64(x * fma(a, Float64(-t), Float64(y * z))); elseif (j <= 8.5e+80) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e+124], t$95$1, If[LessEqual[j, -4.5e-135], N[(i * N[(t * b + N[(j * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.25e-203], N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(t, b, j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-203}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.7500000000000001e124 or 8.50000000000000007e80 < j Initial program 70.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.1
Applied rewrites71.1%
if -1.7500000000000001e124 < j < -4.49999999999999987e-135Initial program 80.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites78.9%
Taylor expanded in i 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.f6454.4
Applied rewrites54.4%
if -4.49999999999999987e-135 < j < 1.25e-203Initial program 66.1%
Taylor expanded in x around inf
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.9
Applied rewrites54.9%
if 1.25e-203 < j < 8.50000000000000007e80Initial program 81.6%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6461.5
Applied rewrites61.5%
Final simplification62.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.75e+124)
t_1
(if (<= j -4.1e-135)
(* i (fma t b (* j (- y))))
(if (<= j -3.2e-268)
(* y (* x z))
(if (<= j 8.5e+80) (* b (- (* t i) (* z 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.75e+124) {
tmp = t_1;
} else if (j <= -4.1e-135) {
tmp = i * fma(t, b, (j * -y));
} else if (j <= -3.2e-268) {
tmp = y * (x * z);
} else if (j <= 8.5e+80) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.75e+124) tmp = t_1; elseif (j <= -4.1e-135) tmp = Float64(i * fma(t, b, Float64(j * Float64(-y)))); elseif (j <= -3.2e-268) tmp = Float64(y * Float64(x * z)); elseif (j <= 8.5e+80) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e+124], t$95$1, If[LessEqual[j, -4.1e-135], N[(i * N[(t * b + N[(j * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.2e-268], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+80], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.1 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(t, b, j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;j \leq -3.2 \cdot 10^{-268}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+80}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.7500000000000001e124 or 8.50000000000000007e80 < j Initial program 70.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6471.1
Applied rewrites71.1%
if -1.7500000000000001e124 < j < -4.1000000000000001e-135Initial program 80.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites78.9%
Taylor expanded in i 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.f6454.4
Applied rewrites54.4%
if -4.1000000000000001e-135 < j < -3.1999999999999999e-268Initial program 53.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites61.2%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6453.3
Applied rewrites53.3%
Taylor expanded in x around inf
lower-*.f6449.5
Applied rewrites49.5%
if -3.1999999999999999e-268 < j < 8.50000000000000007e80Initial program 80.4%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6455.8
Applied rewrites55.8%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -5e+60)
(* z (fma y x (* b (- c))))
(if (<= z 6.5e+46)
(fma j (- (* a c) (* y i)) (* t (* b i)))
(* z (* x (- y (/ (* b c) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -5e+60) {
tmp = z * fma(y, x, (b * -c));
} else if (z <= 6.5e+46) {
tmp = fma(j, ((a * c) - (y * i)), (t * (b * i)));
} else {
tmp = z * (x * (y - ((b * c) / x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -5e+60) tmp = Float64(z * fma(y, x, Float64(b * Float64(-c)))); elseif (z <= 6.5e+46) tmp = fma(j, Float64(Float64(a * c) - Float64(y * i)), Float64(t * Float64(b * i))); else tmp = Float64(z * Float64(x * Float64(y - Float64(Float64(b * c) / x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5e+60], N[(z * N[(y * x + N[(b * (-c)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+46], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * N[(y - N[(N[(b * c), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+60}:\\
\;\;\;\;z \cdot \mathsf{fma}\left(y, x, b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{+46}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot \left(y - \frac{b \cdot c}{x}\right)\right)\\
\end{array}
\end{array}
if z < -4.99999999999999975e60Initial program 68.1%
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-*.f6470.7
Applied rewrites70.7%
lift-neg.f64N/A
lift-*.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f64N/A
lift-neg.f64N/A
distribute-rgt-neg-outN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6472.9
Applied rewrites72.9%
if -4.99999999999999975e60 < z < 6.50000000000000008e46Initial program 80.9%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.7%
Taylor expanded in i around inf
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6461.8
Applied rewrites61.8%
if 6.50000000000000008e46 < z Initial program 60.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-*.f6460.6
Applied rewrites60.6%
Taylor expanded in x around inf
lower-*.f64N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6460.6
Applied rewrites60.6%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.15e+195)
(* c (* a j))
(if (<= j -6.5e-53)
(* i (* j (- y)))
(if (<= j -4.5e-135)
(* i (* t b))
(if (<= j 1.7e-231)
(* y (* x z))
(if (<= j 1.85e+81) (* b (* t i)) (* j (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.15e+195) {
tmp = c * (a * j);
} else if (j <= -6.5e-53) {
tmp = i * (j * -y);
} else if (j <= -4.5e-135) {
tmp = i * (t * b);
} else if (j <= 1.7e-231) {
tmp = y * (x * z);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
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 (j <= (-2.15d+195)) then
tmp = c * (a * j)
else if (j <= (-6.5d-53)) then
tmp = i * (j * -y)
else if (j <= (-4.5d-135)) then
tmp = i * (t * b)
else if (j <= 1.7d-231) then
tmp = y * (x * z)
else if (j <= 1.85d+81) then
tmp = b * (t * i)
else
tmp = j * (a * c)
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 (j <= -2.15e+195) {
tmp = c * (a * j);
} else if (j <= -6.5e-53) {
tmp = i * (j * -y);
} else if (j <= -4.5e-135) {
tmp = i * (t * b);
} else if (j <= 1.7e-231) {
tmp = y * (x * z);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -2.15e+195: tmp = c * (a * j) elif j <= -6.5e-53: tmp = i * (j * -y) elif j <= -4.5e-135: tmp = i * (t * b) elif j <= 1.7e-231: tmp = y * (x * z) elif j <= 1.85e+81: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.15e+195) tmp = Float64(c * Float64(a * j)); elseif (j <= -6.5e-53) tmp = Float64(i * Float64(j * Float64(-y))); elseif (j <= -4.5e-135) tmp = Float64(i * Float64(t * b)); elseif (j <= 1.7e-231) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.85e+81) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -2.15e+195) tmp = c * (a * j); elseif (j <= -6.5e-53) tmp = i * (j * -y); elseif (j <= -4.5e-135) tmp = i * (t * b); elseif (j <= 1.7e-231) tmp = y * (x * z); elseif (j <= 1.85e+81) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.15e+195], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.5e-53], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.5e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e-231], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.85e+81], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.15 \cdot 10^{+195}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-53}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-231}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -2.14999999999999991e195Initial program 51.9%
Taylor expanded in a 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.f6464.8
Applied rewrites64.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6441.2
Applied rewrites41.2%
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-*.f6441.6
Applied rewrites41.6%
if -2.14999999999999991e195 < j < -6.4999999999999997e-53Initial program 81.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites78.6%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6448.2
Applied rewrites48.2%
Taylor expanded in x around 0
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
lower-*.f6436.4
Applied rewrites36.4%
if -6.4999999999999997e-53 < j < -4.49999999999999987e-135Initial program 82.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites82.2%
Taylor expanded in i 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.f6473.1
Applied rewrites73.1%
Taylor expanded in t around inf
lower-*.f6464.0
Applied rewrites64.0%
if -4.49999999999999987e-135 < j < 1.7e-231Initial program 65.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites67.4%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6449.6
Applied rewrites49.6%
Taylor expanded in x around inf
lower-*.f6445.3
Applied rewrites45.3%
if 1.7e-231 < j < 1.85e81Initial program 80.5%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites80.4%
Taylor expanded in i 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.f6440.3
Applied rewrites40.3%
Taylor expanded in t around inf
lower-*.f64N/A
*-commutativeN/A
lower-*.f6439.8
Applied rewrites39.8%
if 1.85e81 < j Initial program 74.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in a around inf
lower-*.f6453.6
Applied rewrites53.6%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -6.5e-53)
(* y (* i (- j)))
(if (<= j -4.5e-135)
(* i (* t b))
(if (<= j 1.7e-231)
(* y (* x z))
(if (<= j 1.85e+81) (* b (* t i)) (* j (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -6.5e-53) {
tmp = y * (i * -j);
} else if (j <= -4.5e-135) {
tmp = i * (t * b);
} else if (j <= 1.7e-231) {
tmp = y * (x * z);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
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 (j <= (-6.5d-53)) then
tmp = y * (i * -j)
else if (j <= (-4.5d-135)) then
tmp = i * (t * b)
else if (j <= 1.7d-231) then
tmp = y * (x * z)
else if (j <= 1.85d+81) then
tmp = b * (t * i)
else
tmp = j * (a * c)
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 (j <= -6.5e-53) {
tmp = y * (i * -j);
} else if (j <= -4.5e-135) {
tmp = i * (t * b);
} else if (j <= 1.7e-231) {
tmp = y * (x * z);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -6.5e-53: tmp = y * (i * -j) elif j <= -4.5e-135: tmp = i * (t * b) elif j <= 1.7e-231: tmp = y * (x * z) elif j <= 1.85e+81: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -6.5e-53) tmp = Float64(y * Float64(i * Float64(-j))); elseif (j <= -4.5e-135) tmp = Float64(i * Float64(t * b)); elseif (j <= 1.7e-231) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.85e+81) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -6.5e-53) tmp = y * (i * -j); elseif (j <= -4.5e-135) tmp = i * (t * b); elseif (j <= 1.7e-231) tmp = y * (x * z); elseif (j <= 1.85e+81) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -6.5e-53], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.5e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e-231], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.85e+81], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.5 \cdot 10^{-53}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-231}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -6.4999999999999997e-53Initial program 73.3%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.9%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6447.2
Applied rewrites47.2%
Taylor expanded in x around 0
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6437.4
Applied rewrites37.4%
if -6.4999999999999997e-53 < j < -4.49999999999999987e-135Initial program 82.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites82.2%
Taylor expanded in i 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.f6473.1
Applied rewrites73.1%
Taylor expanded in t around inf
lower-*.f6464.0
Applied rewrites64.0%
if -4.49999999999999987e-135 < j < 1.7e-231Initial program 65.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites67.4%
Taylor expanded in y around inf
lower-*.f64N/A
+-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6449.6
Applied rewrites49.6%
Taylor expanded in x around inf
lower-*.f6445.3
Applied rewrites45.3%
if 1.7e-231 < j < 1.85e81Initial program 80.5%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites80.4%
Taylor expanded in i 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.f6440.3
Applied rewrites40.3%
Taylor expanded in t around inf
lower-*.f64N/A
*-commutativeN/A
lower-*.f6439.8
Applied rewrites39.8%
if 1.85e81 < j Initial program 74.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in a around inf
lower-*.f6453.6
Applied rewrites53.6%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.4e+51)
t_1
(if (<= a 2.3e+51) (* i (fma j (- y) (* t b))) 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(j, c, (x * -t));
double tmp;
if (a <= -1.4e+51) {
tmp = t_1;
} else if (a <= 2.3e+51) {
tmp = i * fma(j, -y, (t * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.4e+51) tmp = t_1; elseif (a <= 2.3e+51) tmp = Float64(i * fma(j, Float64(-y), Float64(t * b))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.4e+51], t$95$1, If[LessEqual[a, 2.3e+51], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.4 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+51}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.40000000000000002e51 or 2.30000000000000005e51 < a Initial program 69.6%
Taylor expanded in a 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.f6468.3
Applied rewrites68.3%
if -1.40000000000000002e51 < a < 2.30000000000000005e51Initial program 76.7%
Taylor expanded in i around inf
lower-*.f64N/A
cancel-sign-sub-invN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
metadata-evalN/A
*-lft-identityN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6446.1
Applied rewrites46.1%
Final simplification54.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (fma j c (* x (- t))))))
(if (<= a -1.9e+44)
t_1
(if (<= a 2.9e+87) (* b (fma t i (* c (- 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.9e+44) {
tmp = t_1;
} else if (a <= 2.9e+87) {
tmp = b * fma(t, i, (c * -z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.9e+44) tmp = t_1; elseif (a <= 2.9e+87) tmp = Float64(b * fma(t, i, Float64(c * Float64(-z)))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+44], t$95$1, If[LessEqual[a, 2.9e+87], N[(b * N[(t * i + N[(c * (-z)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+87}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(t, i, c \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.9000000000000001e44 or 2.8999999999999998e87 < a Initial program 68.7%
Taylor expanded in a 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.f6470.3
Applied rewrites70.3%
if -1.9000000000000001e44 < a < 2.8999999999999998e87Initial program 77.0%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites77.8%
Taylor expanded in b around inf
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-negN/A
*-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6442.4
Applied rewrites42.4%
Final simplification52.4%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (fma j c (* x (- t)))))) (if (<= a -1.9e+44) t_1 (if (<= a 2.9e+87) (* b (- (* t i) (* z 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 = a * fma(j, c, (x * -t));
double tmp;
if (a <= -1.9e+44) {
tmp = t_1;
} else if (a <= 2.9e+87) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t)))) tmp = 0.0 if (a <= -1.9e+44) tmp = t_1; elseif (a <= 2.9e+87) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+44], t$95$1, If[LessEqual[a, 2.9e+87], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+87}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.9000000000000001e44 or 2.8999999999999998e87 < a Initial program 68.7%
Taylor expanded in a 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.f6470.3
Applied rewrites70.3%
if -1.9000000000000001e44 < a < 2.8999999999999998e87Initial program 77.0%
Taylor expanded in b around inf
cancel-sign-sub-invN/A
+-commutativeN/A
distribute-lft-neg-inN/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
remove-double-negN/A
+-commutativeN/A
sub-negN/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6442.3
Applied rewrites42.3%
Final simplification52.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.2e+116)
(* c (* a j))
(if (<= a -7e-115)
(* i (* t b))
(if (<= a 1.4e+94) (* x (* y z)) (* j (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.2e+116) {
tmp = c * (a * j);
} else if (a <= -7e-115) {
tmp = i * (t * b);
} else if (a <= 1.4e+94) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
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 (a <= (-2.2d+116)) then
tmp = c * (a * j)
else if (a <= (-7d-115)) then
tmp = i * (t * b)
else if (a <= 1.4d+94) then
tmp = x * (y * z)
else
tmp = j * (a * c)
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 (a <= -2.2e+116) {
tmp = c * (a * j);
} else if (a <= -7e-115) {
tmp = i * (t * b);
} else if (a <= 1.4e+94) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.2e+116: tmp = c * (a * j) elif a <= -7e-115: tmp = i * (t * b) elif a <= 1.4e+94: tmp = x * (y * z) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.2e+116) tmp = Float64(c * Float64(a * j)); elseif (a <= -7e-115) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.4e+94) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.2e+116) tmp = c * (a * j); elseif (a <= -7e-115) tmp = i * (t * b); elseif (a <= 1.4e+94) tmp = x * (y * z); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2e+116], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7e-115], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+94], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-115}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if a < -2.2e116Initial program 72.5%
Taylor expanded in a 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.f6470.6
Applied rewrites70.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6449.1
Applied rewrites49.1%
*-commutativeN/A
associate-*r*N/A
lift-*.f64N/A
lower-*.f6449.1
Applied rewrites49.1%
if -2.2e116 < a < -7.0000000000000004e-115Initial program 70.2%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites67.9%
Taylor expanded in i 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.f6452.4
Applied rewrites52.4%
Taylor expanded in t around inf
lower-*.f6444.3
Applied rewrites44.3%
if -7.0000000000000004e-115 < a < 1.39999999999999999e94Initial program 77.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-*.f6448.4
Applied rewrites48.4%
Taylor expanded in c around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6432.0
Applied rewrites32.0%
if 1.39999999999999999e94 < a Initial program 66.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6454.6
Applied rewrites54.6%
Taylor expanded in a around inf
lower-*.f6447.4
Applied rewrites47.4%
Final simplification38.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.2e+116)
(* a (* c j))
(if (<= a -7e-115)
(* i (* t b))
(if (<= a 1.4e+94) (* x (* y z)) (* j (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.2e+116) {
tmp = a * (c * j);
} else if (a <= -7e-115) {
tmp = i * (t * b);
} else if (a <= 1.4e+94) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
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 (a <= (-2.2d+116)) then
tmp = a * (c * j)
else if (a <= (-7d-115)) then
tmp = i * (t * b)
else if (a <= 1.4d+94) then
tmp = x * (y * z)
else
tmp = j * (a * c)
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 (a <= -2.2e+116) {
tmp = a * (c * j);
} else if (a <= -7e-115) {
tmp = i * (t * b);
} else if (a <= 1.4e+94) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.2e+116: tmp = a * (c * j) elif a <= -7e-115: tmp = i * (t * b) elif a <= 1.4e+94: tmp = x * (y * z) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.2e+116) tmp = Float64(a * Float64(c * j)); elseif (a <= -7e-115) tmp = Float64(i * Float64(t * b)); elseif (a <= 1.4e+94) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.2e+116) tmp = a * (c * j); elseif (a <= -7e-115) tmp = i * (t * b); elseif (a <= 1.4e+94) tmp = x * (y * z); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2e+116], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7e-115], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e+94], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+116}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-115}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if a < -2.2e116Initial program 72.5%
Taylor expanded in a 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.f6470.6
Applied rewrites70.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6449.1
Applied rewrites49.1%
if -2.2e116 < a < -7.0000000000000004e-115Initial program 70.2%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites67.9%
Taylor expanded in i 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.f6452.4
Applied rewrites52.4%
Taylor expanded in t around inf
lower-*.f6444.3
Applied rewrites44.3%
if -7.0000000000000004e-115 < a < 1.39999999999999999e94Initial program 77.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-*.f6448.4
Applied rewrites48.4%
Taylor expanded in c around 0
lower-*.f64N/A
*-commutativeN/A
lower-*.f6432.0
Applied rewrites32.0%
if 1.39999999999999999e94 < a Initial program 66.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6454.6
Applied rewrites54.6%
Taylor expanded in a around inf
lower-*.f6447.4
Applied rewrites47.4%
Final simplification38.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -1.75e+124) (* a (* c j)) (if (<= j 1.85e+81) (* b (* t i)) (* j (* a c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.75e+124) {
tmp = a * (c * j);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
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 (j <= (-1.75d+124)) then
tmp = a * (c * j)
else if (j <= 1.85d+81) then
tmp = b * (t * i)
else
tmp = j * (a * c)
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 (j <= -1.75e+124) {
tmp = a * (c * j);
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.75e+124: tmp = a * (c * j) elif j <= 1.85e+81: tmp = b * (t * i) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.75e+124) tmp = Float64(a * Float64(c * j)); elseif (j <= 1.85e+81) tmp = Float64(b * Float64(t * i)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.75e+124) tmp = a * (c * j); elseif (j <= 1.85e+81) tmp = b * (t * i); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.75e+124], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.85e+81], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.75 \cdot 10^{+124}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -1.7500000000000001e124Initial program 65.8%
Taylor expanded in a 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.f6448.8
Applied rewrites48.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6433.2
Applied rewrites33.2%
if -1.7500000000000001e124 < j < 1.85e81Initial program 76.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.2%
Taylor expanded in i 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.f6439.7
Applied rewrites39.7%
Taylor expanded in t around inf
lower-*.f64N/A
*-commutativeN/A
lower-*.f6428.2
Applied rewrites28.2%
if 1.85e81 < j Initial program 74.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in a around inf
lower-*.f6453.6
Applied rewrites53.6%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* a (* c j)))) (if (<= j -1.75e+124) t_1 (if (<= j 1.85e+81) (* b (* t 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 = a * (c * j);
double tmp;
if (j <= -1.75e+124) {
tmp = t_1;
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} 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 = a * (c * j)
if (j <= (-1.75d+124)) then
tmp = t_1
else if (j <= 1.85d+81) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -1.75e+124) {
tmp = t_1;
} else if (j <= 1.85e+81) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -1.75e+124: tmp = t_1 elif j <= 1.85e+81: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -1.75e+124) tmp = t_1; elseif (j <= 1.85e+81) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -1.75e+124) tmp = t_1; elseif (j <= 1.85e+81) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e+124], t$95$1, If[LessEqual[j, 1.85e+81], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.85 \cdot 10^{+81}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.7500000000000001e124 or 1.85e81 < j Initial program 70.4%
Taylor expanded in a 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.1
Applied rewrites57.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6444.1
Applied rewrites44.1%
if -1.7500000000000001e124 < j < 1.85e81Initial program 76.1%
Taylor expanded in t around 0
associate--l+N/A
sub-negN/A
associate-+r+N/A
sub-negN/A
associate-*r*N/A
associate-*r*N/A
distribute-rgt-out--N/A
lower-fma.f64N/A
Applied rewrites76.2%
Taylor expanded in i 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.f6439.7
Applied rewrites39.7%
Taylor expanded in t around inf
lower-*.f64N/A
*-commutativeN/A
lower-*.f6428.2
Applied rewrites28.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (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 = a * (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 a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 74.0%
Taylor expanded in a 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.f6436.4
Applied rewrites36.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f6422.1
Applied rewrites22.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024219
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))