
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
+-commutative0.0%
fma-define2.0%
*-commutative2.0%
*-commutative2.0%
cancel-sign-sub-inv2.0%
cancel-sign-sub2.0%
fmm-def4.1%
distribute-rgt-neg-out4.1%
remove-double-neg4.1%
*-commutative4.1%
*-commutative4.1%
Simplified4.1%
Taylor expanded in y around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
Simplified58.1%
Final simplification86.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* c j) (* x a))))
(if (<= b -4e-132)
(- (* t t_1) (* b (- (* z c) (* a i))))
(if (<= b 3.2e+68)
(+
(- (* x (* t (- (/ (* y z) t) a))) (* z (* b c)))
(* j (- (* t c) (* y i))))
(* b (+ (* t (/ t_1 b)) (- (* a i) (* z c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (c * j) - (x * a);
double tmp;
if (b <= -4e-132) {
tmp = (t * t_1) - (b * ((z * c) - (a * i)));
} else if (b <= 3.2e+68) {
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * ((t * (t_1 / b)) + ((a * i) - (z * 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) :: t_1
real(8) :: tmp
t_1 = (c * j) - (x * a)
if (b <= (-4d-132)) then
tmp = (t * t_1) - (b * ((z * c) - (a * i)))
else if (b <= 3.2d+68) then
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = b * ((t * (t_1 / b)) + ((a * i) - (z * 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 t_1 = (c * j) - (x * a);
double tmp;
if (b <= -4e-132) {
tmp = (t * t_1) - (b * ((z * c) - (a * i)));
} else if (b <= 3.2e+68) {
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * ((t * (t_1 / b)) + ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * j) - (x * a) tmp = 0 if b <= -4e-132: tmp = (t * t_1) - (b * ((z * c) - (a * i))) elif b <= 3.2e+68: tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) + (j * ((t * c) - (y * i))) else: tmp = b * ((t * (t_1 / b)) + ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * j) - Float64(x * a)) tmp = 0.0 if (b <= -4e-132) tmp = Float64(Float64(t * t_1) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); elseif (b <= 3.2e+68) tmp = Float64(Float64(Float64(x * Float64(t * Float64(Float64(Float64(y * z) / t) - a))) - Float64(z * Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(b * Float64(Float64(t * Float64(t_1 / b)) + Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * j) - (x * a); tmp = 0.0; if (b <= -4e-132) tmp = (t * t_1) - (b * ((z * c) - (a * i))); elseif (b <= 3.2e+68) tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) + (j * ((t * c) - (y * i))); else tmp = b * ((t * (t_1 / b)) + ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e-132], N[(N[(t * t$95$1), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+68], N[(N[(N[(x * N[(t * N[(N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * N[(t$95$1 / b), $MachinePrecision]), $MachinePrecision] + N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot j - x \cdot a\\
\mathbf{if}\;b \leq -4 \cdot 10^{-132}:\\
\;\;\;\;t \cdot t\_1 - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+68}:\\
\;\;\;\;\left(x \cdot \left(t \cdot \left(\frac{y \cdot z}{t} - a\right)\right) - z \cdot \left(b \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \frac{t\_1}{b} + \left(a \cdot i - z \cdot c\right)\right)\\
\end{array}
\end{array}
if b < -3.9999999999999999e-132Initial program 74.6%
+-commutative74.6%
fma-define75.7%
*-commutative75.7%
*-commutative75.7%
cancel-sign-sub-inv75.7%
cancel-sign-sub75.7%
fmm-def76.9%
distribute-rgt-neg-out76.9%
remove-double-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in y around 0 69.5%
+-commutative69.5%
*-commutative69.5%
associate-*r*67.3%
*-commutative67.3%
associate-*l*69.6%
mul-1-neg69.6%
*-commutative69.6%
associate-*r*71.7%
*-commutative71.7%
distribute-rgt-neg-in71.7%
mul-1-neg71.7%
distribute-lft-in72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -3.9999999999999999e-132 < b < 3.19999999999999994e68Initial program 77.1%
Taylor expanded in t around inf 73.4%
Taylor expanded in c around inf 75.1%
*-commutative75.1%
*-commutative75.1%
associate-*l*79.9%
*-commutative79.9%
Simplified79.9%
if 3.19999999999999994e68 < b Initial program 70.4%
+-commutative70.4%
fma-define70.4%
*-commutative70.4%
*-commutative70.4%
cancel-sign-sub-inv70.4%
cancel-sign-sub70.4%
fmm-def70.4%
distribute-rgt-neg-out70.4%
remove-double-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in y around 0 61.6%
+-commutative61.6%
*-commutative61.6%
associate-*r*61.7%
*-commutative61.7%
associate-*l*59.4%
mul-1-neg59.4%
*-commutative59.4%
associate-*r*61.4%
*-commutative61.4%
distribute-rgt-neg-in61.4%
mul-1-neg61.4%
distribute-lft-in63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in b around -inf 68.3%
associate-*r*68.3%
neg-mul-168.3%
distribute-lft-out--68.3%
associate-/l*75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Final simplification76.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -6e+79)
t_2
(if (<= y -1.8e-86)
(+ t_1 (* a (* b i)))
(if (<= y 1.9e-190)
(* t (- (* c j) (* x a)))
(if (<= y 6.4e+34) (- t_1 (* b (* z c))) 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 * ((t * c) - (y * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6e+79) {
tmp = t_2;
} else if (y <= -1.8e-86) {
tmp = t_1 + (a * (b * i));
} else if (y <= 1.9e-190) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 6.4e+34) {
tmp = t_1 - (b * (z * c));
} 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 * ((t * c) - (y * i))
t_2 = y * ((x * z) - (i * j))
if (y <= (-6d+79)) then
tmp = t_2
else if (y <= (-1.8d-86)) then
tmp = t_1 + (a * (b * i))
else if (y <= 1.9d-190) then
tmp = t * ((c * j) - (x * a))
else if (y <= 6.4d+34) then
tmp = t_1 - (b * (z * c))
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 * ((t * c) - (y * i));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6e+79) {
tmp = t_2;
} else if (y <= -1.8e-86) {
tmp = t_1 + (a * (b * i));
} else if (y <= 1.9e-190) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 6.4e+34) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -6e+79: tmp = t_2 elif y <= -1.8e-86: tmp = t_1 + (a * (b * i)) elif y <= 1.9e-190: tmp = t * ((c * j) - (x * a)) elif y <= 6.4e+34: tmp = t_1 - (b * (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -6e+79) tmp = t_2; elseif (y <= -1.8e-86) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (y <= 1.9e-190) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 6.4e+34) tmp = Float64(t_1 - Float64(b * Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -6e+79) tmp = t_2; elseif (y <= -1.8e-86) tmp = t_1 + (a * (b * i)); elseif (y <= 1.9e-190) tmp = t * ((c * j) - (x * a)); elseif (y <= 6.4e+34) tmp = t_1 - (b * (z * c)); 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+79], t$95$2, If[LessEqual[y, -1.8e-86], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-190], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.4e+34], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -6 \cdot 10^{+79}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-86}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-190}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 6.4 \cdot 10^{+34}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.99999999999999948e79 or 6.3999999999999997e34 < y Initial program 65.0%
+-commutative65.0%
fma-define65.8%
*-commutative65.8%
*-commutative65.8%
cancel-sign-sub-inv65.8%
cancel-sign-sub65.8%
fmm-def66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
if -5.99999999999999948e79 < y < -1.79999999999999983e-86Initial program 82.4%
cancel-sign-sub-inv82.4%
cancel-sign-sub82.4%
*-commutative82.4%
fmm-def82.4%
distribute-rgt-neg-in82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in i around inf 59.8%
if -1.79999999999999983e-86 < y < 1.8999999999999999e-190Initial program 82.9%
+-commutative82.9%
fma-define82.9%
*-commutative82.9%
*-commutative82.9%
cancel-sign-sub-inv82.9%
cancel-sign-sub82.9%
fmm-def82.9%
distribute-rgt-neg-out82.9%
remove-double-neg82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in t around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
*-commutative64.9%
Simplified64.9%
if 1.8999999999999999e-190 < y < 6.3999999999999997e34Initial program 90.7%
cancel-sign-sub-inv90.7%
cancel-sign-sub90.7%
*-commutative90.7%
fmm-def90.7%
distribute-rgt-neg-in90.7%
remove-double-neg90.7%
*-commutative90.7%
*-commutative90.7%
*-commutative90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in c around inf 67.4%
associate-*r*67.4%
neg-mul-167.4%
*-commutative67.4%
Simplified67.4%
Final simplification67.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -6.6e+22)
t_3
(if (<= b -6e-224)
t_2
(if (<= b 3.05e-118)
t_1
(if (<= b 1.16e-66) t_2 (if (<= b 4.9e+72) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.6e+22) {
tmp = t_3;
} else if (b <= -6e-224) {
tmp = t_2;
} else if (b <= 3.05e-118) {
tmp = t_1;
} else if (b <= 1.16e-66) {
tmp = t_2;
} else if (b <= 4.9e+72) {
tmp = t_1;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-6.6d+22)) then
tmp = t_3
else if (b <= (-6d-224)) then
tmp = t_2
else if (b <= 3.05d-118) then
tmp = t_1
else if (b <= 1.16d-66) then
tmp = t_2
else if (b <= 4.9d+72) then
tmp = t_1
else
tmp = t_3
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 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6.6e+22) {
tmp = t_3;
} else if (b <= -6e-224) {
tmp = t_2;
} else if (b <= 3.05e-118) {
tmp = t_1;
} else if (b <= 1.16e-66) {
tmp = t_2;
} else if (b <= 4.9e+72) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -6.6e+22: tmp = t_3 elif b <= -6e-224: tmp = t_2 elif b <= 3.05e-118: tmp = t_1 elif b <= 1.16e-66: tmp = t_2 elif b <= 4.9e+72: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.6e+22) tmp = t_3; elseif (b <= -6e-224) tmp = t_2; elseif (b <= 3.05e-118) tmp = t_1; elseif (b <= 1.16e-66) tmp = t_2; elseif (b <= 4.9e+72) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6.6e+22) tmp = t_3; elseif (b <= -6e-224) tmp = t_2; elseif (b <= 3.05e-118) tmp = t_1; elseif (b <= 1.16e-66) tmp = t_2; elseif (b <= 4.9e+72) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.6e+22], t$95$3, If[LessEqual[b, -6e-224], t$95$2, If[LessEqual[b, 3.05e-118], t$95$1, If[LessEqual[b, 1.16e-66], t$95$2, If[LessEqual[b, 4.9e+72], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.6 \cdot 10^{+22}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-224}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 3.05 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.16 \cdot 10^{-66}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 4.9 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -6.5999999999999996e22 or 4.90000000000000006e72 < b Initial program 75.2%
+-commutative75.2%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
fmm-def77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around 0 68.0%
+-commutative68.0%
*-commutative68.0%
associate-*r*68.0%
*-commutative68.0%
associate-*l*67.0%
mul-1-neg67.0%
*-commutative67.0%
associate-*r*68.0%
*-commutative68.0%
distribute-rgt-neg-in68.0%
mul-1-neg68.0%
distribute-lft-in69.0%
mul-1-neg69.0%
unsub-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 70.3%
*-commutative70.3%
Simplified70.3%
if -6.5999999999999996e22 < b < -5.99999999999999963e-224 or 3.04999999999999992e-118 < b < 1.16000000000000002e-66Initial program 69.3%
+-commutative69.3%
fma-define69.3%
*-commutative69.3%
*-commutative69.3%
cancel-sign-sub-inv69.3%
cancel-sign-sub69.3%
fmm-def69.3%
distribute-rgt-neg-out69.3%
remove-double-neg69.3%
*-commutative69.3%
*-commutative69.3%
Simplified69.3%
Taylor expanded in t around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
Simplified70.8%
if -5.99999999999999963e-224 < b < 3.04999999999999992e-118 or 1.16000000000000002e-66 < b < 4.90000000000000006e72Initial program 80.2%
+-commutative80.2%
fma-define80.2%
*-commutative80.2%
*-commutative80.2%
cancel-sign-sub-inv80.2%
cancel-sign-sub80.2%
fmm-def80.2%
distribute-rgt-neg-out80.2%
remove-double-neg80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in y around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
Simplified65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -9.6e+210)
t_1
(if (or (<= j -4.7e-251) (not (<= j 6.6e-40)))
(+ (* z (- (* x y) (* b c))) t_1)
(- (* t (- (* c j) (* x a))) (* b (- (* z c) (* a i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -9.6e+210) {
tmp = t_1;
} else if ((j <= -4.7e-251) || !(j <= 6.6e-40)) {
tmp = (z * ((x * y) - (b * c))) + t_1;
} else {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-9.6d+210)) then
tmp = t_1
else if ((j <= (-4.7d-251)) .or. (.not. (j <= 6.6d-40))) then
tmp = (z * ((x * y) - (b * c))) + t_1
else
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -9.6e+210) {
tmp = t_1;
} else if ((j <= -4.7e-251) || !(j <= 6.6e-40)) {
tmp = (z * ((x * y) - (b * c))) + t_1;
} else {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -9.6e+210: tmp = t_1 elif (j <= -4.7e-251) or not (j <= 6.6e-40): tmp = (z * ((x * y) - (b * c))) + t_1 else: tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -9.6e+210) tmp = t_1; elseif ((j <= -4.7e-251) || !(j <= 6.6e-40)) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + t_1); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -9.6e+210) tmp = t_1; elseif ((j <= -4.7e-251) || ~((j <= 6.6e-40))) tmp = (z * ((x * y) - (b * c))) + t_1; else tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9.6e+210], t$95$1, If[Or[LessEqual[j, -4.7e-251], N[Not[LessEqual[j, 6.6e-40]], $MachinePrecision]], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -9.6 \cdot 10^{+210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.7 \cdot 10^{-251} \lor \neg \left(j \leq 6.6 \cdot 10^{-40}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if j < -9.59999999999999953e210Initial program 66.6%
+-commutative66.6%
fma-define72.1%
*-commutative72.1%
*-commutative72.1%
cancel-sign-sub-inv72.1%
cancel-sign-sub72.1%
fmm-def72.1%
distribute-rgt-neg-out72.1%
remove-double-neg72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in j around inf 94.4%
*-commutative94.4%
*-commutative94.4%
Simplified94.4%
if -9.59999999999999953e210 < j < -4.7000000000000001e-251 or 6.59999999999999986e-40 < j Initial program 75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
*-commutative75.8%
fmm-def76.4%
distribute-rgt-neg-in76.4%
remove-double-neg76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in z around inf 73.9%
if -4.7000000000000001e-251 < j < 6.59999999999999986e-40Initial program 75.6%
+-commutative75.6%
fma-define75.6%
*-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
cancel-sign-sub75.6%
fmm-def75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y around 0 77.4%
+-commutative77.4%
*-commutative77.4%
associate-*r*71.0%
*-commutative71.0%
associate-*l*77.4%
mul-1-neg77.4%
*-commutative77.4%
associate-*r*79.8%
*-commutative79.8%
distribute-rgt-neg-in79.8%
mul-1-neg79.8%
distribute-lft-in79.8%
mul-1-neg79.8%
unsub-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Final simplification77.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.55e+103) (and (not (<= a -3e-23)) (<= a 8.5e+114))) (+ (* z (- (* x y) (* b c))) (* j (- (* t c) (* y i)))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.55e+103) || (!(a <= -3e-23) && (a <= 8.5e+114))) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = a * ((b * i) - (x * t));
}
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 <= (-1.55d+103)) .or. (.not. (a <= (-3d-23))) .and. (a <= 8.5d+114)) then
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.55e+103) || (!(a <= -3e-23) && (a <= 8.5e+114))) {
tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.55e+103) or (not (a <= -3e-23) and (a <= 8.5e+114)): tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.55e+103) || (!(a <= -3e-23) && (a <= 8.5e+114))) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.55e+103) || (~((a <= -3e-23)) && (a <= 8.5e+114))) tmp = (z * ((x * y) - (b * c))) + (j * ((t * c) - (y * i))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.55e+103], And[N[Not[LessEqual[a, -3e-23]], $MachinePrecision], LessEqual[a, 8.5e+114]]], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.55 \cdot 10^{+103} \lor \neg \left(a \leq -3 \cdot 10^{-23}\right) \land a \leq 8.5 \cdot 10^{+114}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.5500000000000001e103 or -3.00000000000000003e-23 < a < 8.5000000000000001e114Initial program 77.0%
cancel-sign-sub-inv77.0%
cancel-sign-sub77.0%
*-commutative77.0%
fmm-def77.0%
distribute-rgt-neg-in77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in z around inf 71.6%
if -1.5500000000000001e103 < a < -3.00000000000000003e-23 or 8.5000000000000001e114 < a Initial program 69.9%
+-commutative69.9%
fma-define71.3%
*-commutative71.3%
*-commutative71.3%
cancel-sign-sub-inv71.3%
cancel-sign-sub71.3%
fmm-def72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around 0 77.3%
+-commutative77.3%
*-commutative77.3%
associate-*r*77.3%
*-commutative77.3%
associate-*l*75.9%
mul-1-neg75.9%
*-commutative75.9%
associate-*r*75.8%
*-commutative75.8%
distribute-rgt-neg-in75.8%
mul-1-neg75.8%
distribute-lft-in77.2%
mul-1-neg77.2%
unsub-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in a around -inf 72.7%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ (* z (- (* x y) (* b c))) t_1)))
(if (<= z -3450000.0)
t_2
(if (<= z -1.02e-250)
(* b (+ (* t (/ (- (* c j) (* x a)) b)) (- (* a i) (* z c))))
(if (<= z 6.8e-52) (+ t_1 (* a (- (* b i) (* x t)))) 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 * ((t * c) - (y * i));
double t_2 = (z * ((x * y) - (b * c))) + t_1;
double tmp;
if (z <= -3450000.0) {
tmp = t_2;
} else if (z <= -1.02e-250) {
tmp = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)));
} else if (z <= 6.8e-52) {
tmp = t_1 + (a * ((b * i) - (x * t)));
} 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 * ((t * c) - (y * i))
t_2 = (z * ((x * y) - (b * c))) + t_1
if (z <= (-3450000.0d0)) then
tmp = t_2
else if (z <= (-1.02d-250)) then
tmp = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)))
else if (z <= 6.8d-52) then
tmp = t_1 + (a * ((b * i) - (x * t)))
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 * ((t * c) - (y * i));
double t_2 = (z * ((x * y) - (b * c))) + t_1;
double tmp;
if (z <= -3450000.0) {
tmp = t_2;
} else if (z <= -1.02e-250) {
tmp = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)));
} else if (z <= 6.8e-52) {
tmp = t_1 + (a * ((b * i) - (x * t)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = (z * ((x * y) - (b * c))) + t_1 tmp = 0 if z <= -3450000.0: tmp = t_2 elif z <= -1.02e-250: tmp = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c))) elif z <= 6.8e-52: tmp = t_1 + (a * ((b * i) - (x * t))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + t_1) tmp = 0.0 if (z <= -3450000.0) tmp = t_2; elseif (z <= -1.02e-250) tmp = Float64(b * Float64(Float64(t * Float64(Float64(Float64(c * j) - Float64(x * a)) / b)) + Float64(Float64(a * i) - Float64(z * c)))); elseif (z <= 6.8e-52) tmp = Float64(t_1 + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = (z * ((x * y) - (b * c))) + t_1; tmp = 0.0; if (z <= -3450000.0) tmp = t_2; elseif (z <= -1.02e-250) tmp = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c))); elseif (z <= 6.8e-52) tmp = t_1 + (a * ((b * i) - (x * t))); 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[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[z, -3450000.0], t$95$2, If[LessEqual[z, -1.02e-250], N[(b * N[(N[(t * N[(N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] + N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e-52], N[(t$95$1 + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\mathbf{if}\;z \leq -3450000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-250}:\\
\;\;\;\;b \cdot \left(t \cdot \frac{c \cdot j - x \cdot a}{b} + \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-52}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -3.45e6 or 6.80000000000000035e-52 < z Initial program 65.6%
cancel-sign-sub-inv65.6%
cancel-sign-sub65.6%
*-commutative65.6%
fmm-def66.4%
distribute-rgt-neg-in66.4%
remove-double-neg66.4%
*-commutative66.4%
*-commutative66.4%
*-commutative66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in z around inf 77.8%
if -3.45e6 < z < -1.02000000000000001e-250Initial program 90.2%
+-commutative90.2%
fma-define90.2%
*-commutative90.2%
*-commutative90.2%
cancel-sign-sub-inv90.2%
cancel-sign-sub90.2%
fmm-def90.2%
distribute-rgt-neg-out90.2%
remove-double-neg90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.2%
Taylor expanded in y around 0 55.0%
+-commutative55.0%
*-commutative55.0%
associate-*r*55.1%
*-commutative55.1%
associate-*l*60.6%
mul-1-neg60.6%
*-commutative60.6%
associate-*r*69.6%
*-commutative69.6%
distribute-rgt-neg-in69.6%
mul-1-neg69.6%
distribute-lft-in69.6%
mul-1-neg69.6%
unsub-neg69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in b around -inf 73.4%
associate-*r*73.4%
neg-mul-173.4%
distribute-lft-out--73.4%
associate-/l*75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
if -1.02000000000000001e-250 < z < 6.80000000000000035e-52Initial program 82.5%
cancel-sign-sub-inv82.5%
cancel-sign-sub82.5%
*-commutative82.5%
fmm-def82.5%
distribute-rgt-neg-in82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in a around -inf 78.2%
Final simplification77.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.25e+83)
t_1
(if (<= y -3e-87)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= y 1.65e-170)
(* t (- (* c j) (* x a)))
(if (<= y 0.00022) (* b (- (* a 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+83) {
tmp = t_1;
} else if (y <= -3e-87) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (y <= 1.65e-170) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 0.00022) {
tmp = b * ((a * i) - (z * c));
} 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 = y * ((x * z) - (i * j))
if (y <= (-1.25d+83)) then
tmp = t_1
else if (y <= (-3d-87)) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (y <= 1.65d-170) then
tmp = t * ((c * j) - (x * a))
else if (y <= 0.00022d0) then
tmp = b * ((a * i) - (z * c))
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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.25e+83) {
tmp = t_1;
} else if (y <= -3e-87) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (y <= 1.65e-170) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 0.00022) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.25e+83: tmp = t_1 elif y <= -3e-87: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif y <= 1.65e-170: tmp = t * ((c * j) - (x * a)) elif y <= 0.00022: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.25e+83) tmp = t_1; elseif (y <= -3e-87) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (y <= 1.65e-170) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 0.00022) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.25e+83) tmp = t_1; elseif (y <= -3e-87) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (y <= 1.65e-170) tmp = t * ((c * j) - (x * a)); elseif (y <= 0.00022) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+83], t$95$1, If[LessEqual[y, -3e-87], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e-170], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00022], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-87}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-170}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 0.00022:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.25000000000000007e83 or 2.20000000000000008e-4 < y Initial program 65.0%
+-commutative65.0%
fma-define65.8%
*-commutative65.8%
*-commutative65.8%
cancel-sign-sub-inv65.8%
cancel-sign-sub65.8%
fmm-def66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
if -1.25000000000000007e83 < y < -3.00000000000000016e-87Initial program 82.4%
cancel-sign-sub-inv82.4%
cancel-sign-sub82.4%
*-commutative82.4%
fmm-def82.4%
distribute-rgt-neg-in82.4%
remove-double-neg82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in i around inf 59.8%
if -3.00000000000000016e-87 < y < 1.65000000000000002e-170Initial program 82.7%
+-commutative82.7%
fma-define82.7%
*-commutative82.7%
*-commutative82.7%
cancel-sign-sub-inv82.7%
cancel-sign-sub82.7%
fmm-def82.7%
distribute-rgt-neg-out82.7%
remove-double-neg82.7%
*-commutative82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in t around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
*-commutative64.6%
Simplified64.6%
if 1.65000000000000002e-170 < y < 2.20000000000000008e-4Initial program 92.7%
+-commutative92.7%
fma-define92.7%
*-commutative92.7%
*-commutative92.7%
cancel-sign-sub-inv92.7%
cancel-sign-sub92.7%
fmm-def92.7%
distribute-rgt-neg-out92.7%
remove-double-neg92.7%
*-commutative92.7%
*-commutative92.7%
Simplified92.7%
Taylor expanded in y around 0 78.9%
+-commutative78.9%
*-commutative78.9%
associate-*r*78.9%
*-commutative78.9%
associate-*l*82.5%
mul-1-neg82.5%
*-commutative82.5%
associate-*r*82.4%
*-commutative82.4%
distribute-rgt-neg-in82.4%
mul-1-neg82.4%
distribute-lft-in82.4%
mul-1-neg82.4%
unsub-neg82.4%
*-commutative82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in b around inf 68.6%
*-commutative68.6%
Simplified68.6%
Final simplification67.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.4e+23)
t_2
(if (<= b -8e-224)
t_1
(if (<= b 4.4e-287)
(* j (- (* t c) (* y i)))
(if (<= b 5.5e+28) 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 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.4e+23) {
tmp = t_2;
} else if (b <= -8e-224) {
tmp = t_1;
} else if (b <= 4.4e-287) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 5.5e+28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.4d+23)) then
tmp = t_2
else if (b <= (-8d-224)) then
tmp = t_1
else if (b <= 4.4d-287) then
tmp = j * ((t * c) - (y * i))
else if (b <= 5.5d+28) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.4e+23) {
tmp = t_2;
} else if (b <= -8e-224) {
tmp = t_1;
} else if (b <= 4.4e-287) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 5.5e+28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.4e+23: tmp = t_2 elif b <= -8e-224: tmp = t_1 elif b <= 4.4e-287: tmp = j * ((t * c) - (y * i)) elif b <= 5.5e+28: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.4e+23) tmp = t_2; elseif (b <= -8e-224) tmp = t_1; elseif (b <= 4.4e-287) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 5.5e+28) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.4e+23) tmp = t_2; elseif (b <= -8e-224) tmp = t_1; elseif (b <= 4.4e-287) tmp = j * ((t * c) - (y * i)); elseif (b <= 5.5e+28) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.4e+23], t$95$2, If[LessEqual[b, -8e-224], t$95$1, If[LessEqual[b, 4.4e-287], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+28], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-287}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.4e23 or 5.5000000000000003e28 < b Initial program 75.2%
+-commutative75.2%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
cancel-sign-sub-inv76.2%
cancel-sign-sub76.2%
fmm-def77.2%
distribute-rgt-neg-out77.2%
remove-double-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in y around 0 64.9%
+-commutative64.9%
*-commutative64.9%
associate-*r*64.9%
*-commutative64.9%
associate-*l*64.8%
mul-1-neg64.8%
*-commutative64.8%
associate-*r*65.7%
*-commutative65.7%
distribute-rgt-neg-in65.7%
mul-1-neg65.7%
distribute-lft-in66.7%
mul-1-neg66.7%
unsub-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in b around inf 66.9%
*-commutative66.9%
Simplified66.9%
if -1.4e23 < b < -8.0000000000000002e-224 or 4.4e-287 < b < 5.5000000000000003e28Initial program 75.8%
+-commutative75.8%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def75.8%
distribute-rgt-neg-out75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in t around inf 58.2%
+-commutative58.2%
mul-1-neg58.2%
unsub-neg58.2%
*-commutative58.2%
Simplified58.2%
if -8.0000000000000002e-224 < b < 4.4e-287Initial program 71.1%
+-commutative71.1%
fma-define71.1%
*-commutative71.1%
*-commutative71.1%
cancel-sign-sub-inv71.1%
cancel-sign-sub71.1%
fmm-def71.1%
distribute-rgt-neg-out71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in j around inf 63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -8e+21)
t_2
(if (<= b -2.5e-209)
t_1
(if (<= b 1.9e-118) (* x (* y z)) (if (<= b 32000000000.0) 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 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e+21) {
tmp = t_2;
} else if (b <= -2.5e-209) {
tmp = t_1;
} else if (b <= 1.9e-118) {
tmp = x * (y * z);
} else if (b <= 32000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = b * ((a * i) - (z * c))
if (b <= (-8d+21)) then
tmp = t_2
else if (b <= (-2.5d-209)) then
tmp = t_1
else if (b <= 1.9d-118) then
tmp = x * (y * z)
else if (b <= 32000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8e+21) {
tmp = t_2;
} else if (b <= -2.5e-209) {
tmp = t_1;
} else if (b <= 1.9e-118) {
tmp = x * (y * z);
} else if (b <= 32000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -8e+21: tmp = t_2 elif b <= -2.5e-209: tmp = t_1 elif b <= 1.9e-118: tmp = x * (y * z) elif b <= 32000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -8e+21) tmp = t_2; elseif (b <= -2.5e-209) tmp = t_1; elseif (b <= 1.9e-118) tmp = Float64(x * Float64(y * z)); elseif (b <= 32000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -8e+21) tmp = t_2; elseif (b <= -2.5e-209) tmp = t_1; elseif (b <= 1.9e-118) tmp = x * (y * z); elseif (b <= 32000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8e+21], t$95$2, If[LessEqual[b, -2.5e-209], t$95$1, If[LessEqual[b, 1.9e-118], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 32000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -8 \cdot 10^{+21}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-209}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.9 \cdot 10^{-118}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 32000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8e21 or 3.2e10 < b Initial program 77.2%
+-commutative77.2%
fma-define78.1%
*-commutative78.1%
*-commutative78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
fmm-def79.0%
distribute-rgt-neg-out79.0%
remove-double-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in y around 0 64.1%
+-commutative64.1%
*-commutative64.1%
associate-*r*64.1%
*-commutative64.1%
associate-*l*64.1%
mul-1-neg64.1%
*-commutative64.1%
associate-*r*64.9%
*-commutative64.9%
distribute-rgt-neg-in64.9%
mul-1-neg64.9%
distribute-lft-in65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
Simplified64.3%
if -8e21 < b < -2.5000000000000002e-209 or 1.9e-118 < b < 3.2e10Initial program 70.9%
+-commutative70.9%
fma-define70.9%
*-commutative70.9%
*-commutative70.9%
cancel-sign-sub-inv70.9%
cancel-sign-sub70.9%
fmm-def70.9%
distribute-rgt-neg-out70.9%
remove-double-neg70.9%
*-commutative70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in c around inf 44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
if -2.5000000000000002e-209 < b < 1.9e-118Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
fmm-def77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around inf 66.5%
+-commutative66.5%
mul-1-neg66.5%
unsub-neg66.5%
Simplified66.5%
Taylor expanded in x around inf 42.6%
Taylor expanded in y around 0 45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (or (<= z -4.2e+57) (not (<= z 1.05e-57)))
(+ (* z (- (* x y) (* b c))) t_1)
(+ t_1 (* a (- (* b i) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if ((z <= -4.2e+57) || !(z <= 1.05e-57)) {
tmp = (z * ((x * y) - (b * c))) + t_1;
} else {
tmp = t_1 + (a * ((b * i) - (x * t)));
}
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 = j * ((t * c) - (y * i))
if ((z <= (-4.2d+57)) .or. (.not. (z <= 1.05d-57))) then
tmp = (z * ((x * y) - (b * c))) + t_1
else
tmp = t_1 + (a * ((b * i) - (x * t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if ((z <= -4.2e+57) || !(z <= 1.05e-57)) {
tmp = (z * ((x * y) - (b * c))) + t_1;
} else {
tmp = t_1 + (a * ((b * i) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if (z <= -4.2e+57) or not (z <= 1.05e-57): tmp = (z * ((x * y) - (b * c))) + t_1 else: tmp = t_1 + (a * ((b * i) - (x * t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if ((z <= -4.2e+57) || !(z <= 1.05e-57)) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) + t_1); else tmp = Float64(t_1 + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if ((z <= -4.2e+57) || ~((z <= 1.05e-57))) tmp = (z * ((x * y) - (b * c))) + t_1; else tmp = t_1 + (a * ((b * i) - (x * t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[z, -4.2e+57], N[Not[LessEqual[z, 1.05e-57]], $MachinePrecision]], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+57} \lor \neg \left(z \leq 1.05 \cdot 10^{-57}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if z < -4.19999999999999982e57 or 1.05e-57 < z Initial program 64.5%
cancel-sign-sub-inv64.5%
cancel-sign-sub64.5%
*-commutative64.5%
fmm-def65.3%
distribute-rgt-neg-in65.3%
remove-double-neg65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in z around inf 79.0%
if -4.19999999999999982e57 < z < 1.05e-57Initial program 85.4%
cancel-sign-sub-inv85.4%
cancel-sign-sub85.4%
*-commutative85.4%
fmm-def85.4%
distribute-rgt-neg-in85.4%
remove-double-neg85.4%
*-commutative85.4%
*-commutative85.4%
*-commutative85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in a around -inf 72.7%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -5.8e+77)
t_1
(if (<= y -5.5e-56)
(* b (* a i))
(if (<= y 5.5e-233)
(* c (* t j))
(if (<= y 7.8e-22) (* 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 = x * (y * z);
double tmp;
if (y <= -5.8e+77) {
tmp = t_1;
} else if (y <= -5.5e-56) {
tmp = b * (a * i);
} else if (y <= 5.5e-233) {
tmp = c * (t * j);
} else if (y <= 7.8e-22) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-5.8d+77)) then
tmp = t_1
else if (y <= (-5.5d-56)) then
tmp = b * (a * i)
else if (y <= 5.5d-233) then
tmp = c * (t * j)
else if (y <= 7.8d-22) then
tmp = z * (b * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -5.8e+77) {
tmp = t_1;
} else if (y <= -5.5e-56) {
tmp = b * (a * i);
} else if (y <= 5.5e-233) {
tmp = c * (t * j);
} else if (y <= 7.8e-22) {
tmp = z * (b * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -5.8e+77: tmp = t_1 elif y <= -5.5e-56: tmp = b * (a * i) elif y <= 5.5e-233: tmp = c * (t * j) elif y <= 7.8e-22: tmp = z * (b * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -5.8e+77) tmp = t_1; elseif (y <= -5.5e-56) tmp = Float64(b * Float64(a * i)); elseif (y <= 5.5e-233) tmp = Float64(c * Float64(t * j)); elseif (y <= 7.8e-22) tmp = Float64(z * Float64(b * Float64(-c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -5.8e+77) tmp = t_1; elseif (y <= -5.5e-56) tmp = b * (a * i); elseif (y <= 5.5e-233) tmp = c * (t * j); elseif (y <= 7.8e-22) tmp = z * (b * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+77], t$95$1, If[LessEqual[y, -5.5e-56], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-233], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e-22], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-56}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-233}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-22}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.8000000000000003e77 or 7.79999999999999996e-22 < y Initial program 66.1%
+-commutative66.1%
fma-define66.8%
*-commutative66.8%
*-commutative66.8%
cancel-sign-sub-inv66.8%
cancel-sign-sub66.8%
fmm-def67.6%
distribute-rgt-neg-out67.6%
remove-double-neg67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in y around inf 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
Simplified69.0%
Taylor expanded in x around inf 42.5%
Taylor expanded in y around 0 47.6%
if -5.8000000000000003e77 < y < -5.4999999999999999e-56Initial program 82.0%
+-commutative82.0%
fma-define82.0%
*-commutative82.0%
*-commutative82.0%
cancel-sign-sub-inv82.0%
cancel-sign-sub82.0%
fmm-def82.0%
distribute-rgt-neg-out82.0%
remove-double-neg82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around 0 75.6%
+-commutative75.6%
*-commutative75.6%
associate-*r*75.6%
*-commutative75.6%
associate-*l*75.6%
mul-1-neg75.6%
*-commutative75.6%
associate-*r*75.6%
*-commutative75.6%
distribute-rgt-neg-in75.6%
mul-1-neg75.6%
distribute-lft-in75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in b around inf 47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in a around inf 40.5%
*-commutative40.5%
Simplified40.5%
if -5.4999999999999999e-56 < y < 5.50000000000000005e-233Initial program 83.0%
+-commutative83.0%
fma-define83.0%
*-commutative83.0%
*-commutative83.0%
cancel-sign-sub-inv83.0%
cancel-sign-sub83.0%
fmm-def83.0%
distribute-rgt-neg-out83.0%
remove-double-neg83.0%
*-commutative83.0%
*-commutative83.0%
Simplified83.0%
Taylor expanded in c around inf 48.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in t around inf 34.4%
*-commutative34.4%
Simplified34.4%
if 5.50000000000000005e-233 < y < 7.79999999999999996e-22Initial program 88.4%
+-commutative88.4%
fma-define88.4%
*-commutative88.4%
*-commutative88.4%
cancel-sign-sub-inv88.4%
cancel-sign-sub88.4%
fmm-def88.4%
distribute-rgt-neg-out88.4%
remove-double-neg88.4%
*-commutative88.4%
*-commutative88.4%
Simplified88.4%
Taylor expanded in c around inf 58.0%
*-commutative58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in t around 0 44.1%
mul-1-neg44.1%
*-commutative44.1%
*-commutative44.1%
associate-*r*44.2%
distribute-rgt-neg-out44.2%
Simplified44.2%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -2.2e+73)
t_1
(if (<= y -2.8e-49)
(* b (* a i))
(if (<= y 5.8e-170)
(* c (* t j))
(if (<= y 4e-22) (* c (* z (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -2.2e+73) {
tmp = t_1;
} else if (y <= -2.8e-49) {
tmp = b * (a * i);
} else if (y <= 5.8e-170) {
tmp = c * (t * j);
} else if (y <= 4e-22) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-2.2d+73)) then
tmp = t_1
else if (y <= (-2.8d-49)) then
tmp = b * (a * i)
else if (y <= 5.8d-170) then
tmp = c * (t * j)
else if (y <= 4d-22) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -2.2e+73) {
tmp = t_1;
} else if (y <= -2.8e-49) {
tmp = b * (a * i);
} else if (y <= 5.8e-170) {
tmp = c * (t * j);
} else if (y <= 4e-22) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -2.2e+73: tmp = t_1 elif y <= -2.8e-49: tmp = b * (a * i) elif y <= 5.8e-170: tmp = c * (t * j) elif y <= 4e-22: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -2.2e+73) tmp = t_1; elseif (y <= -2.8e-49) tmp = Float64(b * Float64(a * i)); elseif (y <= 5.8e-170) tmp = Float64(c * Float64(t * j)); elseif (y <= 4e-22) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -2.2e+73) tmp = t_1; elseif (y <= -2.8e-49) tmp = b * (a * i); elseif (y <= 5.8e-170) tmp = c * (t * j); elseif (y <= 4e-22) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.2e+73], t$95$1, If[LessEqual[y, -2.8e-49], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.8e-170], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e-22], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -2.2 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-49}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{-170}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-22}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.2e73 or 4.0000000000000002e-22 < y Initial program 66.1%
+-commutative66.1%
fma-define66.8%
*-commutative66.8%
*-commutative66.8%
cancel-sign-sub-inv66.8%
cancel-sign-sub66.8%
fmm-def67.6%
distribute-rgt-neg-out67.6%
remove-double-neg67.6%
*-commutative67.6%
*-commutative67.6%
Simplified67.6%
Taylor expanded in y around inf 69.0%
+-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
Simplified69.0%
Taylor expanded in x around inf 42.5%
Taylor expanded in y around 0 47.6%
if -2.2e73 < y < -2.79999999999999997e-49Initial program 82.0%
+-commutative82.0%
fma-define82.0%
*-commutative82.0%
*-commutative82.0%
cancel-sign-sub-inv82.0%
cancel-sign-sub82.0%
fmm-def82.0%
distribute-rgt-neg-out82.0%
remove-double-neg82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around 0 75.6%
+-commutative75.6%
*-commutative75.6%
associate-*r*75.6%
*-commutative75.6%
associate-*l*75.6%
mul-1-neg75.6%
*-commutative75.6%
associate-*r*75.6%
*-commutative75.6%
distribute-rgt-neg-in75.6%
mul-1-neg75.6%
distribute-lft-in75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in b around inf 47.7%
*-commutative47.7%
Simplified47.7%
Taylor expanded in a around inf 40.5%
*-commutative40.5%
Simplified40.5%
if -2.79999999999999997e-49 < y < 5.8000000000000001e-170Initial program 82.8%
+-commutative82.8%
fma-define82.8%
*-commutative82.8%
*-commutative82.8%
cancel-sign-sub-inv82.8%
cancel-sign-sub82.8%
fmm-def82.8%
distribute-rgt-neg-out82.8%
remove-double-neg82.8%
*-commutative82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in c around inf 46.6%
*-commutative46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in t around inf 32.3%
*-commutative32.3%
Simplified32.3%
if 5.8000000000000001e-170 < y < 4.0000000000000002e-22Initial program 91.6%
+-commutative91.6%
fma-define91.6%
*-commutative91.6%
*-commutative91.6%
cancel-sign-sub-inv91.6%
cancel-sign-sub91.6%
fmm-def91.6%
distribute-rgt-neg-out91.6%
remove-double-neg91.6%
*-commutative91.6%
*-commutative91.6%
Simplified91.6%
Taylor expanded in c around inf 67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in t around 0 55.2%
mul-1-neg55.2%
*-commutative55.2%
distribute-rgt-neg-in55.2%
Simplified55.2%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.55e-53)
t_1
(if (<= b -9.8e-207)
(* c (* t j))
(if (<= b 8.2e+72) (* x (* 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e-53) {
tmp = t_1;
} else if (b <= -9.8e-207) {
tmp = c * (t * j);
} else if (b <= 8.2e+72) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.55d-53)) then
tmp = t_1
else if (b <= (-9.8d-207)) then
tmp = c * (t * j)
else if (b <= 8.2d+72) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.55e-53) {
tmp = t_1;
} else if (b <= -9.8e-207) {
tmp = c * (t * j);
} else if (b <= 8.2e+72) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.55e-53: tmp = t_1 elif b <= -9.8e-207: tmp = c * (t * j) elif b <= 8.2e+72: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.55e-53) tmp = t_1; elseif (b <= -9.8e-207) tmp = Float64(c * Float64(t * j)); elseif (b <= 8.2e+72) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.55e-53) tmp = t_1; elseif (b <= -9.8e-207) tmp = c * (t * j); elseif (b <= 8.2e+72) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.55e-53], t$95$1, If[LessEqual[b, -9.8e-207], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+72], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.55 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -9.8 \cdot 10^{-207}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+72}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.55000000000000008e-53 or 8.19999999999999926e72 < b Initial program 76.1%
+-commutative76.1%
fma-define76.9%
*-commutative76.9%
*-commutative76.9%
cancel-sign-sub-inv76.9%
cancel-sign-sub76.9%
fmm-def77.8%
distribute-rgt-neg-out77.8%
remove-double-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in y around 0 68.9%
+-commutative68.9%
*-commutative68.9%
associate-*r*67.3%
*-commutative67.3%
associate-*l*68.2%
mul-1-neg68.2%
*-commutative68.2%
associate-*r*69.7%
*-commutative69.7%
distribute-rgt-neg-in69.7%
mul-1-neg69.7%
distribute-lft-in70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in b around inf 64.1%
*-commutative64.1%
Simplified64.1%
if -1.55000000000000008e-53 < b < -9.7999999999999999e-207Initial program 56.2%
+-commutative56.2%
fma-define56.2%
*-commutative56.2%
*-commutative56.2%
cancel-sign-sub-inv56.2%
cancel-sign-sub56.2%
fmm-def56.2%
distribute-rgt-neg-out56.2%
remove-double-neg56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in c around inf 46.7%
*-commutative46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in t around inf 39.9%
*-commutative39.9%
Simplified39.9%
if -9.7999999999999999e-207 < b < 8.19999999999999926e72Initial program 79.0%
+-commutative79.0%
fma-define79.0%
*-commutative79.0%
*-commutative79.0%
cancel-sign-sub-inv79.0%
cancel-sign-sub79.0%
fmm-def79.0%
distribute-rgt-neg-out79.0%
remove-double-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in y around inf 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
Simplified58.6%
Taylor expanded in x around inf 35.3%
Taylor expanded in y around 0 36.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.1e+55) (not (<= j 1.9e-40))) (* j (- (* t c) (* y i))) (* b (- (* a i) (* z 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.1e+55) || !(j <= 1.9e-40)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * i) - (z * 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.1d+55)) .or. (.not. (j <= 1.9d-40))) then
tmp = j * ((t * c) - (y * i))
else
tmp = b * ((a * i) - (z * 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.1e+55) || !(j <= 1.9e-40)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.1e+55) or not (j <= 1.9e-40): tmp = j * ((t * c) - (y * i)) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.1e+55) || !(j <= 1.9e-40)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.1e+55) || ~((j <= 1.9e-40))) tmp = j * ((t * c) - (y * i)); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.1e+55], N[Not[LessEqual[j, 1.9e-40]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.1 \cdot 10^{+55} \lor \neg \left(j \leq 1.9 \cdot 10^{-40}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.10000000000000005e55 or 1.8999999999999999e-40 < j Initial program 78.2%
+-commutative78.2%
fma-define79.1%
*-commutative79.1%
*-commutative79.1%
cancel-sign-sub-inv79.1%
cancel-sign-sub79.1%
fmm-def80.0%
distribute-rgt-neg-out80.0%
remove-double-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in j around inf 65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
if -1.10000000000000005e55 < j < 1.8999999999999999e-40Initial program 72.5%
+-commutative72.5%
fma-define72.5%
*-commutative72.5%
*-commutative72.5%
cancel-sign-sub-inv72.5%
cancel-sign-sub72.5%
fmm-def72.5%
distribute-rgt-neg-out72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in y around 0 65.4%
+-commutative65.4%
*-commutative65.4%
associate-*r*61.3%
*-commutative61.3%
associate-*l*65.4%
mul-1-neg65.4%
*-commutative65.4%
associate-*r*68.7%
*-commutative68.7%
distribute-rgt-neg-in68.7%
mul-1-neg68.7%
distribute-lft-in69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around inf 46.1%
*-commutative46.1%
Simplified46.1%
Final simplification55.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -5.2e-47) (not (<= i 1.05e+145))) (* i (- (* a b) (* y j))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -5.2e-47) || !(i <= 1.05e+145)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-5.2d-47)) .or. (.not. (i <= 1.05d+145))) then
tmp = i * ((a * b) - (y * j))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -5.2e-47) || !(i <= 1.05e+145)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -5.2e-47) or not (i <= 1.05e+145): tmp = i * ((a * b) - (y * j)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -5.2e-47) || !(i <= 1.05e+145)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -5.2e-47) || ~((i <= 1.05e+145))) tmp = i * ((a * b) - (y * j)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -5.2e-47], N[Not[LessEqual[i, 1.05e+145]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.2 \cdot 10^{-47} \lor \neg \left(i \leq 1.05 \cdot 10^{+145}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if i < -5.2e-47 or 1.04999999999999995e145 < i Initial program 69.7%
+-commutative69.7%
fma-define69.7%
*-commutative69.7%
*-commutative69.7%
cancel-sign-sub-inv69.7%
cancel-sign-sub69.7%
fmm-def69.7%
distribute-rgt-neg-out69.7%
remove-double-neg69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in i around inf 69.4%
distribute-lft-out--69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in i around 0 69.4%
mul-1-neg69.4%
*-commutative69.4%
distribute-rgt-neg-in69.4%
neg-sub069.4%
associate--r-69.4%
neg-sub069.4%
+-commutative69.4%
unsub-neg69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
if -5.2e-47 < i < 1.04999999999999995e145Initial program 78.5%
+-commutative78.5%
fma-define79.1%
*-commutative79.1%
*-commutative79.1%
cancel-sign-sub-inv79.1%
cancel-sign-sub79.1%
fmm-def79.8%
distribute-rgt-neg-out79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in c around inf 45.4%
*-commutative45.4%
*-commutative45.4%
Simplified45.4%
Final simplification54.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -7600000.0) (not (<= z 1.25e+46))) (* x (* y z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7600000.0) || !(z <= 1.25e+46)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-7600000.0d0)) .or. (.not. (z <= 1.25d+46))) then
tmp = x * (y * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7600000.0) || !(z <= 1.25e+46)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -7600000.0) or not (z <= 1.25e+46): tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -7600000.0) || !(z <= 1.25e+46)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -7600000.0) || ~((z <= 1.25e+46))) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7600000.0], N[Not[LessEqual[z, 1.25e+46]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7600000 \lor \neg \left(z \leq 1.25 \cdot 10^{+46}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if z < -7.6e6 or 1.2500000000000001e46 < z Initial program 63.4%
+-commutative63.4%
fma-define63.4%
*-commutative63.4%
*-commutative63.4%
cancel-sign-sub-inv63.4%
cancel-sign-sub63.4%
fmm-def64.3%
distribute-rgt-neg-out64.3%
remove-double-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y around inf 56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
Simplified56.6%
Taylor expanded in x around inf 45.1%
Taylor expanded in y around 0 49.9%
if -7.6e6 < z < 1.2500000000000001e46Initial program 84.9%
+-commutative84.9%
fma-define85.6%
*-commutative85.6%
*-commutative85.6%
cancel-sign-sub-inv85.6%
cancel-sign-sub85.6%
fmm-def85.6%
distribute-rgt-neg-out85.6%
remove-double-neg85.6%
*-commutative85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in y around 0 64.2%
+-commutative64.2%
*-commutative64.2%
associate-*r*62.2%
*-commutative62.2%
associate-*l*63.5%
mul-1-neg63.5%
*-commutative63.5%
associate-*r*66.8%
*-commutative66.8%
distribute-rgt-neg-in66.8%
mul-1-neg66.8%
distribute-lft-in68.2%
mul-1-neg68.2%
unsub-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in b around inf 34.7%
*-commutative34.7%
Simplified34.7%
Taylor expanded in a around inf 28.6%
*-commutative28.6%
Simplified28.6%
Final simplification38.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.4e+22) (not (<= b 150000000000.0))) (* b (* a i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.4e+22) || !(b <= 150000000000.0)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
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 ((b <= (-1.4d+22)) .or. (.not. (b <= 150000000000.0d0))) then
tmp = b * (a * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.4e+22) || !(b <= 150000000000.0)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.4e+22) or not (b <= 150000000000.0): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.4e+22) || !(b <= 150000000000.0)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.4e+22) || ~((b <= 150000000000.0))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.4e+22], N[Not[LessEqual[b, 150000000000.0]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.4 \cdot 10^{+22} \lor \neg \left(b \leq 150000000000\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -1.4e22 or 1.5e11 < b Initial program 77.2%
+-commutative77.2%
fma-define78.1%
*-commutative78.1%
*-commutative78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
fmm-def79.0%
distribute-rgt-neg-out79.0%
remove-double-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in y around 0 64.1%
+-commutative64.1%
*-commutative64.1%
associate-*r*64.1%
*-commutative64.1%
associate-*l*64.1%
mul-1-neg64.1%
*-commutative64.1%
associate-*r*64.9%
*-commutative64.9%
distribute-rgt-neg-in64.9%
mul-1-neg64.9%
distribute-lft-in65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in b around inf 64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in a around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -1.4e22 < b < 1.5e11Initial program 73.5%
+-commutative73.5%
fma-define73.5%
*-commutative73.5%
*-commutative73.5%
cancel-sign-sub-inv73.5%
cancel-sign-sub73.5%
fmm-def73.5%
distribute-rgt-neg-out73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in c around inf 35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in t around inf 29.2%
*-commutative29.2%
Simplified29.2%
Final simplification32.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -1.35e+22) (* b (* a i)) (if (<= b 340000000.0) (* c (* t j)) (* i (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.35e+22) {
tmp = b * (a * i);
} else if (b <= 340000000.0) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
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 (b <= (-1.35d+22)) then
tmp = b * (a * i)
else if (b <= 340000000.0d0) then
tmp = c * (t * j)
else
tmp = i * (a * b)
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 (b <= -1.35e+22) {
tmp = b * (a * i);
} else if (b <= 340000000.0) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.35e+22: tmp = b * (a * i) elif b <= 340000000.0: tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.35e+22) tmp = Float64(b * Float64(a * i)); elseif (b <= 340000000.0) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.35e+22) tmp = b * (a * i); elseif (b <= 340000000.0) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.35e+22], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 340000000.0], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.35 \cdot 10^{+22}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;b \leq 340000000:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if b < -1.3500000000000001e22Initial program 78.3%
+-commutative78.3%
fma-define80.3%
*-commutative80.3%
*-commutative80.3%
cancel-sign-sub-inv80.3%
cancel-sign-sub80.3%
fmm-def82.3%
distribute-rgt-neg-out82.3%
remove-double-neg82.3%
*-commutative82.3%
*-commutative82.3%
Simplified82.3%
Taylor expanded in y around 0 72.7%
+-commutative72.7%
*-commutative72.7%
associate-*r*72.7%
*-commutative72.7%
associate-*l*72.9%
mul-1-neg72.9%
*-commutative72.9%
associate-*r*72.9%
*-commutative72.9%
distribute-rgt-neg-in72.9%
mul-1-neg72.9%
distribute-lft-in72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in b around inf 67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in a around inf 38.4%
*-commutative38.4%
Simplified38.4%
if -1.3500000000000001e22 < b < 3.4e8Initial program 73.5%
+-commutative73.5%
fma-define73.5%
*-commutative73.5%
*-commutative73.5%
cancel-sign-sub-inv73.5%
cancel-sign-sub73.5%
fmm-def73.5%
distribute-rgt-neg-out73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in c around inf 35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
Taylor expanded in t around inf 29.2%
*-commutative29.2%
Simplified29.2%
if 3.4e8 < b Initial program 76.2%
+-commutative76.2%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
cancel-sign-sub-inv76.2%
cancel-sign-sub76.2%
fmm-def76.2%
distribute-rgt-neg-out76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in y around 0 56.6%
+-commutative56.6%
*-commutative56.6%
associate-*r*56.7%
*-commutative56.7%
associate-*l*56.4%
mul-1-neg56.4%
*-commutative56.4%
associate-*r*58.0%
*-commutative58.0%
distribute-rgt-neg-in58.0%
mul-1-neg58.0%
distribute-lft-in59.7%
mul-1-neg59.7%
unsub-neg59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in b around inf 61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around inf 35.3%
*-commutative35.3%
*-commutative35.3%
associate-*r*38.7%
Simplified38.7%
Final simplification33.2%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 75.1%
+-commutative75.1%
fma-define75.5%
*-commutative75.5%
*-commutative75.5%
cancel-sign-sub-inv75.5%
cancel-sign-sub75.5%
fmm-def75.9%
distribute-rgt-neg-out75.9%
remove-double-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in y around 0 57.3%
+-commutative57.3%
*-commutative57.3%
associate-*r*56.4%
*-commutative56.4%
associate-*l*57.9%
mul-1-neg57.9%
*-commutative57.9%
associate-*r*60.5%
*-commutative60.5%
distribute-rgt-neg-in60.5%
mul-1-neg60.5%
distribute-lft-in61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in b around inf 37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in a around inf 21.3%
*-commutative21.3%
Simplified21.3%
Final simplification21.3%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 75.1%
+-commutative75.1%
fma-define75.5%
*-commutative75.5%
*-commutative75.5%
cancel-sign-sub-inv75.5%
cancel-sign-sub75.5%
fmm-def75.9%
distribute-rgt-neg-out75.9%
remove-double-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in y around 0 57.3%
+-commutative57.3%
*-commutative57.3%
associate-*r*56.4%
*-commutative56.4%
associate-*l*57.9%
mul-1-neg57.9%
*-commutative57.9%
associate-*r*60.5%
*-commutative60.5%
distribute-rgt-neg-in60.5%
mul-1-neg60.5%
distribute-lft-in61.2%
mul-1-neg61.2%
unsub-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in i around inf 20.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024163
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))