
(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 31 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
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY)
t_1
(*
t
(*
a
(-
(fma c (/ j a) (- x))
(/ (- (* b (- (* c (/ z a)) i)) (* x (* z (/ y a)))) 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))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * (a * (fma(c, (j / a), -x) - (((b * ((c * (z / a)) - i)) - (x * (z * (y / a)))) / t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(a * Float64(fma(c, Float64(j / a), Float64(-x)) - Float64(Float64(Float64(b * Float64(Float64(c * Float64(z / a)) - i)) - Float64(x * Float64(z * Float64(y / a)))) / t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(a * N[(N[(c * N[(j / a), $MachinePrecision] + (-x)), $MachinePrecision] - N[(N[(N[(b * N[(N[(c * N[(z / a), $MachinePrecision]), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision] - N[(x * N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(\mathsf{fma}\left(c, \frac{j}{a}, -x\right) - \frac{b \cdot \left(c \cdot \frac{z}{a} - i\right) - x \cdot \left(z \cdot \frac{y}{a}\right)}{t}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +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%
Taylor expanded in c around inf 17.7%
*-commutative17.7%
associate-*r*12.9%
*-commutative12.9%
associate-*r*16.1%
Simplified16.1%
Taylor expanded in a around inf 29.0%
sub-neg29.0%
+-commutative29.0%
mul-1-neg29.0%
unsub-neg29.0%
+-commutative29.0%
*-commutative29.0%
associate-*r*29.0%
*-commutative29.0%
neg-mul-129.0%
Simplified29.0%
Taylor expanded in t around inf 33.9%
Simplified55.1%
Final simplification83.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* i (- (* a b) (* y j))))))
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))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((a * b) - (y * 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 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \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-define9.7%
*-commutative9.7%
*-commutative9.7%
cancel-sign-sub-inv9.7%
cancel-sign-sub9.7%
fmm-def12.9%
distribute-rgt-neg-out12.9%
remove-double-neg12.9%
*-commutative12.9%
*-commutative12.9%
Simplified12.9%
Taylor expanded in i around inf 49.1%
distribute-lft-out--49.1%
*-commutative49.1%
Simplified49.1%
Final simplification82.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))))
(if (<= c -7.8e+192)
(* t (- (* c j) (* b (/ (* z c) t))))
(if (<= c -8.2e-41)
(* x (+ t_1 (* c (/ (- (* t j) (* z b)) x))))
(if (<= c -2.7e-146)
(+ (* j (- (* t c) (* y i))) (* a (- (* b i) (* x t))))
(if (<= c 2.55e+132)
(+ (* t (* c j)) (+ (* x t_1) (* b (- (* a i) (* z c)))))
(* (* t c) (- j (* b (/ z t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double tmp;
if (c <= -7.8e+192) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -8.2e-41) {
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)));
} else if (c <= -2.7e-146) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (c <= 2.55e+132) {
tmp = (t * (c * j)) + ((x * t_1) + (b * ((a * i) - (z * c))));
} else {
tmp = (t * c) * (j - (b * (z / 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 = (y * z) - (t * a)
if (c <= (-7.8d+192)) then
tmp = t * ((c * j) - (b * ((z * c) / t)))
else if (c <= (-8.2d-41)) then
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)))
else if (c <= (-2.7d-146)) then
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)))
else if (c <= 2.55d+132) then
tmp = (t * (c * j)) + ((x * t_1) + (b * ((a * i) - (z * c))))
else
tmp = (t * c) * (j - (b * (z / 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 = (y * z) - (t * a);
double tmp;
if (c <= -7.8e+192) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -8.2e-41) {
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)));
} else if (c <= -2.7e-146) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (c <= 2.55e+132) {
tmp = (t * (c * j)) + ((x * t_1) + (b * ((a * i) - (z * c))));
} else {
tmp = (t * c) * (j - (b * (z / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * z) - (t * a) tmp = 0 if c <= -7.8e+192: tmp = t * ((c * j) - (b * ((z * c) / t))) elif c <= -8.2e-41: tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x))) elif c <= -2.7e-146: tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))) elif c <= 2.55e+132: tmp = (t * (c * j)) + ((x * t_1) + (b * ((a * i) - (z * c)))) else: tmp = (t * c) * (j - (b * (z / t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (c <= -7.8e+192) tmp = Float64(t * Float64(Float64(c * j) - Float64(b * Float64(Float64(z * c) / t)))); elseif (c <= -8.2e-41) tmp = Float64(x * Float64(t_1 + Float64(c * Float64(Float64(Float64(t * j) - Float64(z * b)) / x)))); elseif (c <= -2.7e-146) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (c <= 2.55e+132) tmp = Float64(Float64(t * Float64(c * j)) + Float64(Float64(x * t_1) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))); else tmp = Float64(Float64(t * c) * Float64(j - Float64(b * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * z) - (t * a); tmp = 0.0; if (c <= -7.8e+192) tmp = t * ((c * j) - (b * ((z * c) / t))); elseif (c <= -8.2e-41) tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x))); elseif (c <= -2.7e-146) tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))); elseif (c <= 2.55e+132) tmp = (t * (c * j)) + ((x * t_1) + (b * ((a * i) - (z * c)))); else tmp = (t * c) * (j - (b * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.8e+192], N[(t * N[(N[(c * j), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.2e-41], N[(x * N[(t$95$1 + N[(c * N[(N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e-146], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.55e+132], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(N[(x * t$95$1), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * c), $MachinePrecision] * N[(j - N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
\mathbf{if}\;c \leq -7.8 \cdot 10^{+192}:\\
\;\;\;\;t \cdot \left(c \cdot j - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(t\_1 + c \cdot \frac{t \cdot j - z \cdot b}{x}\right)\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{-146}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 2.55 \cdot 10^{+132}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + \left(x \cdot t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(j - b \cdot \frac{z}{t}\right)\\
\end{array}
\end{array}
if c < -7.7999999999999996e192Initial program 54.4%
+-commutative54.4%
fma-define58.2%
*-commutative58.2%
*-commutative58.2%
cancel-sign-sub-inv58.2%
cancel-sign-sub58.2%
fmm-def58.2%
distribute-rgt-neg-out58.2%
remove-double-neg58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in c around inf 80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in t around inf 88.6%
+-commutative88.6%
mul-1-neg88.6%
unsub-neg88.6%
associate-/l*88.6%
Simplified88.6%
if -7.7999999999999996e192 < c < -8.20000000000000028e-41Initial program 65.2%
Taylor expanded in c around inf 73.7%
*-commutative73.7%
associate-*r*69.5%
*-commutative69.5%
associate-*r*69.4%
Simplified69.4%
Taylor expanded in x around -inf 67.8%
mul-1-neg67.8%
*-commutative67.8%
distribute-rgt-neg-in67.8%
Simplified63.5%
Taylor expanded in c around inf 76.5%
associate-/l*78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
if -8.20000000000000028e-41 < c < -2.69999999999999995e-146Initial program 65.8%
cancel-sign-sub-inv65.8%
cancel-sign-sub65.8%
*-commutative65.8%
fmm-def65.8%
distribute-rgt-neg-in65.8%
remove-double-neg65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in a around -inf 77.0%
if -2.69999999999999995e-146 < c < 2.55e132Initial program 81.4%
Taylor expanded in c around inf 73.9%
*-commutative73.9%
associate-*r*74.8%
*-commutative74.8%
associate-*r*75.7%
Simplified75.7%
if 2.55e132 < c Initial program 59.2%
+-commutative59.2%
fma-define59.2%
*-commutative59.2%
*-commutative59.2%
cancel-sign-sub-inv59.2%
cancel-sign-sub59.2%
fmm-def59.2%
distribute-rgt-neg-out59.2%
remove-double-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in c around inf 72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in c around 0 72.7%
associate-*r*72.9%
*-commutative72.9%
associate-/l*75.0%
Simplified75.0%
Final simplification77.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -4.8e+111)
t_2
(if (<= c -1.7e-66)
(* x (- (* y z) (* t a)))
(if (<= c -1.75e-163)
(* i (* j (- (* a (/ b j)) y)))
(if (<= c 1.55e-178)
t_1
(if (<= c 2750.0)
(* a (- (* b i) (* x t)))
(if (<= c 3.3e+90) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.8e+111) {
tmp = t_2;
} else if (c <= -1.7e-66) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -1.75e-163) {
tmp = i * (j * ((a * (b / j)) - y));
} else if (c <= 1.55e-178) {
tmp = t_1;
} else if (c <= 2750.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.3e+90) {
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 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-4.8d+111)) then
tmp = t_2
else if (c <= (-1.7d-66)) then
tmp = x * ((y * z) - (t * a))
else if (c <= (-1.75d-163)) then
tmp = i * (j * ((a * (b / j)) - y))
else if (c <= 1.55d-178) then
tmp = t_1
else if (c <= 2750.0d0) then
tmp = a * ((b * i) - (x * t))
else if (c <= 3.3d+90) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -4.8e+111) {
tmp = t_2;
} else if (c <= -1.7e-66) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -1.75e-163) {
tmp = i * (j * ((a * (b / j)) - y));
} else if (c <= 1.55e-178) {
tmp = t_1;
} else if (c <= 2750.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 3.3e+90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -4.8e+111: tmp = t_2 elif c <= -1.7e-66: tmp = x * ((y * z) - (t * a)) elif c <= -1.75e-163: tmp = i * (j * ((a * (b / j)) - y)) elif c <= 1.55e-178: tmp = t_1 elif c <= 2750.0: tmp = a * ((b * i) - (x * t)) elif c <= 3.3e+90: tmp = t_1 else: tmp = t_2 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -4.8e+111) tmp = t_2; elseif (c <= -1.7e-66) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= -1.75e-163) tmp = Float64(i * Float64(j * Float64(Float64(a * Float64(b / j)) - y))); elseif (c <= 1.55e-178) tmp = t_1; elseif (c <= 2750.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 3.3e+90) 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 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -4.8e+111) tmp = t_2; elseif (c <= -1.7e-66) tmp = x * ((y * z) - (t * a)); elseif (c <= -1.75e-163) tmp = i * (j * ((a * (b / j)) - y)); elseif (c <= 1.55e-178) tmp = t_1; elseif (c <= 2750.0) tmp = a * ((b * i) - (x * t)); elseif (c <= 3.3e+90) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.8e+111], t$95$2, If[LessEqual[c, -1.7e-66], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.75e-163], N[(i * N[(j * N[(N[(a * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.55e-178], t$95$1, If[LessEqual[c, 2750.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.3e+90], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.8 \cdot 10^{+111}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-66}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-163}:\\
\;\;\;\;i \cdot \left(j \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\
\mathbf{elif}\;c \leq 1.55 \cdot 10^{-178}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2750:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 3.3 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -4.80000000000000011e111 or 3.30000000000000008e90 < c Initial program 60.9%
+-commutative60.9%
fma-define64.5%
*-commutative64.5%
*-commutative64.5%
cancel-sign-sub-inv64.5%
cancel-sign-sub64.5%
fmm-def64.5%
distribute-rgt-neg-out64.5%
remove-double-neg64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in c around inf 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if -4.80000000000000011e111 < c < -1.69999999999999999e-66Initial program 61.9%
Taylor expanded in a around inf 64.4%
mul-1-neg64.4%
+-commutative64.4%
unsub-neg64.4%
*-commutative64.4%
*-commutative64.4%
associate-*r*64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in x around inf 56.5%
*-commutative56.5%
Simplified56.5%
if -1.69999999999999999e-66 < c < -1.75000000000000014e-163Initial program 76.1%
+-commutative76.1%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
cancel-sign-sub-inv76.0%
cancel-sign-sub76.0%
fmm-def76.0%
distribute-rgt-neg-out76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in i around inf 58.5%
distribute-lft-out--58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in j around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
associate-/l*58.7%
Simplified58.7%
if -1.75000000000000014e-163 < c < 1.55e-178 or 2750 < c < 3.30000000000000008e90Initial program 78.5%
+-commutative78.5%
fma-define80.1%
*-commutative80.1%
*-commutative80.1%
cancel-sign-sub-inv80.1%
cancel-sign-sub80.1%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if 1.55e-178 < c < 2750Initial program 82.9%
Taylor expanded in a around inf 63.8%
mul-1-neg63.8%
+-commutative63.8%
unsub-neg63.8%
*-commutative63.8%
*-commutative63.8%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -2.15e+114)
t_2
(if (<= c -6.8e-65)
(* x (- (* y z) (* t a)))
(if (<= c -6e-162)
(* i (- (* a b) (* y j)))
(if (<= c 1.02e-180)
t_1
(if (<= c 22000000.0)
(* a (- (* b i) (* x t)))
(if (<= c 1.65e+92) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.15e+114) {
tmp = t_2;
} else if (c <= -6.8e-65) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -6e-162) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 1.02e-180) {
tmp = t_1;
} else if (c <= 22000000.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 1.65e+92) {
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 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-2.15d+114)) then
tmp = t_2
else if (c <= (-6.8d-65)) then
tmp = x * ((y * z) - (t * a))
else if (c <= (-6d-162)) then
tmp = i * ((a * b) - (y * j))
else if (c <= 1.02d-180) then
tmp = t_1
else if (c <= 22000000.0d0) then
tmp = a * ((b * i) - (x * t))
else if (c <= 1.65d+92) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.15e+114) {
tmp = t_2;
} else if (c <= -6.8e-65) {
tmp = x * ((y * z) - (t * a));
} else if (c <= -6e-162) {
tmp = i * ((a * b) - (y * j));
} else if (c <= 1.02e-180) {
tmp = t_1;
} else if (c <= 22000000.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 1.65e+92) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -2.15e+114: tmp = t_2 elif c <= -6.8e-65: tmp = x * ((y * z) - (t * a)) elif c <= -6e-162: tmp = i * ((a * b) - (y * j)) elif c <= 1.02e-180: tmp = t_1 elif c <= 22000000.0: tmp = a * ((b * i) - (x * t)) elif c <= 1.65e+92: tmp = t_1 else: tmp = t_2 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.15e+114) tmp = t_2; elseif (c <= -6.8e-65) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= -6e-162) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= 1.02e-180) tmp = t_1; elseif (c <= 22000000.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 1.65e+92) 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 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -2.15e+114) tmp = t_2; elseif (c <= -6.8e-65) tmp = x * ((y * z) - (t * a)); elseif (c <= -6e-162) tmp = i * ((a * b) - (y * j)); elseif (c <= 1.02e-180) tmp = t_1; elseif (c <= 22000000.0) tmp = a * ((b * i) - (x * t)); elseif (c <= 1.65e+92) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.15e+114], t$95$2, If[LessEqual[c, -6.8e-65], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6e-162], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.02e-180], t$95$1, If[LessEqual[c, 22000000.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.65e+92], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.15 \cdot 10^{+114}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -6.8 \cdot 10^{-65}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-162}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{-180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 22000000:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 1.65 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.15e114 or 1.64999999999999987e92 < c Initial program 60.9%
+-commutative60.9%
fma-define64.5%
*-commutative64.5%
*-commutative64.5%
cancel-sign-sub-inv64.5%
cancel-sign-sub64.5%
fmm-def64.5%
distribute-rgt-neg-out64.5%
remove-double-neg64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in c around inf 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if -2.15e114 < c < -6.79999999999999973e-65Initial program 61.9%
Taylor expanded in a around inf 64.4%
mul-1-neg64.4%
+-commutative64.4%
unsub-neg64.4%
*-commutative64.4%
*-commutative64.4%
associate-*r*64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in x around inf 56.5%
*-commutative56.5%
Simplified56.5%
if -6.79999999999999973e-65 < c < -5.99999999999999997e-162Initial program 76.1%
+-commutative76.1%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
cancel-sign-sub-inv76.0%
cancel-sign-sub76.0%
fmm-def76.0%
distribute-rgt-neg-out76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in i around inf 58.5%
distribute-lft-out--58.5%
*-commutative58.5%
Simplified58.5%
if -5.99999999999999997e-162 < c < 1.0199999999999999e-180 or 2.2e7 < c < 1.64999999999999987e92Initial program 78.5%
+-commutative78.5%
fma-define80.1%
*-commutative80.1%
*-commutative80.1%
cancel-sign-sub-inv80.1%
cancel-sign-sub80.1%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if 1.0199999999999999e-180 < c < 2.2e7Initial program 82.9%
Taylor expanded in a around inf 63.8%
mul-1-neg63.8%
+-commutative63.8%
unsub-neg63.8%
*-commutative63.8%
*-commutative63.8%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))))
(if (<= c -6.5e+192)
(* t (- (* c j) (* b (/ (* z c) t))))
(if (<= c -1.45e-41)
(* x (+ t_1 (* c (/ (- (* t j) (* z b)) x))))
(if (<= c -4e-148)
(+ (* j (- (* t c) (* y i))) (* a (- (* b i) (* x t))))
(if (<= c 4e+132)
(+ (* x t_1) (* b (- (* a i) (* z c))))
(* (* t c) (- j (* b (/ z t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double tmp;
if (c <= -6.5e+192) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -1.45e-41) {
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)));
} else if (c <= -4e-148) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (c <= 4e+132) {
tmp = (x * t_1) + (b * ((a * i) - (z * c)));
} else {
tmp = (t * c) * (j - (b * (z / 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 = (y * z) - (t * a)
if (c <= (-6.5d+192)) then
tmp = t * ((c * j) - (b * ((z * c) / t)))
else if (c <= (-1.45d-41)) then
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)))
else if (c <= (-4d-148)) then
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)))
else if (c <= 4d+132) then
tmp = (x * t_1) + (b * ((a * i) - (z * c)))
else
tmp = (t * c) * (j - (b * (z / 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 = (y * z) - (t * a);
double tmp;
if (c <= -6.5e+192) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -1.45e-41) {
tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x)));
} else if (c <= -4e-148) {
tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t)));
} else if (c <= 4e+132) {
tmp = (x * t_1) + (b * ((a * i) - (z * c)));
} else {
tmp = (t * c) * (j - (b * (z / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * z) - (t * a) tmp = 0 if c <= -6.5e+192: tmp = t * ((c * j) - (b * ((z * c) / t))) elif c <= -1.45e-41: tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x))) elif c <= -4e-148: tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))) elif c <= 4e+132: tmp = (x * t_1) + (b * ((a * i) - (z * c))) else: tmp = (t * c) * (j - (b * (z / t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) tmp = 0.0 if (c <= -6.5e+192) tmp = Float64(t * Float64(Float64(c * j) - Float64(b * Float64(Float64(z * c) / t)))); elseif (c <= -1.45e-41) tmp = Float64(x * Float64(t_1 + Float64(c * Float64(Float64(Float64(t * j) - Float64(z * b)) / x)))); elseif (c <= -4e-148) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); elseif (c <= 4e+132) tmp = Float64(Float64(x * t_1) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(t * c) * Float64(j - Float64(b * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * z) - (t * a); tmp = 0.0; if (c <= -6.5e+192) tmp = t * ((c * j) - (b * ((z * c) / t))); elseif (c <= -1.45e-41) tmp = x * (t_1 + (c * (((t * j) - (z * b)) / x))); elseif (c <= -4e-148) tmp = (j * ((t * c) - (y * i))) + (a * ((b * i) - (x * t))); elseif (c <= 4e+132) tmp = (x * t_1) + (b * ((a * i) - (z * c))); else tmp = (t * c) * (j - (b * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.5e+192], N[(t * N[(N[(c * j), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.45e-41], N[(x * N[(t$95$1 + N[(c * N[(N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4e-148], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4e+132], N[(N[(x * t$95$1), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * c), $MachinePrecision] * N[(j - N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
\mathbf{if}\;c \leq -6.5 \cdot 10^{+192}:\\
\;\;\;\;t \cdot \left(c \cdot j - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-41}:\\
\;\;\;\;x \cdot \left(t\_1 + c \cdot \frac{t \cdot j - z \cdot b}{x}\right)\\
\mathbf{elif}\;c \leq -4 \cdot 10^{-148}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 4 \cdot 10^{+132}:\\
\;\;\;\;x \cdot t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(j - b \cdot \frac{z}{t}\right)\\
\end{array}
\end{array}
if c < -6.50000000000000033e192Initial program 54.4%
+-commutative54.4%
fma-define58.2%
*-commutative58.2%
*-commutative58.2%
cancel-sign-sub-inv58.2%
cancel-sign-sub58.2%
fmm-def58.2%
distribute-rgt-neg-out58.2%
remove-double-neg58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in c around inf 80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in t around inf 88.6%
+-commutative88.6%
mul-1-neg88.6%
unsub-neg88.6%
associate-/l*88.6%
Simplified88.6%
if -6.50000000000000033e192 < c < -1.44999999999999989e-41Initial program 65.2%
Taylor expanded in c around inf 73.7%
*-commutative73.7%
associate-*r*69.5%
*-commutative69.5%
associate-*r*69.4%
Simplified69.4%
Taylor expanded in x around -inf 67.8%
mul-1-neg67.8%
*-commutative67.8%
distribute-rgt-neg-in67.8%
Simplified63.5%
Taylor expanded in c around inf 76.5%
associate-/l*78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
if -1.44999999999999989e-41 < c < -3.99999999999999974e-148Initial program 65.8%
cancel-sign-sub-inv65.8%
cancel-sign-sub65.8%
*-commutative65.8%
fmm-def65.8%
distribute-rgt-neg-in65.8%
remove-double-neg65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in a around -inf 77.0%
if -3.99999999999999974e-148 < c < 3.99999999999999996e132Initial program 81.4%
Taylor expanded in j around 0 70.4%
if 3.99999999999999996e132 < c Initial program 59.2%
+-commutative59.2%
fma-define59.2%
*-commutative59.2%
*-commutative59.2%
cancel-sign-sub-inv59.2%
cancel-sign-sub59.2%
fmm-def59.2%
distribute-rgt-neg-out59.2%
remove-double-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in c around inf 72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in c around 0 72.7%
associate-*r*72.9%
*-commutative72.9%
associate-/l*75.0%
Simplified75.0%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ t_1 (* b (- (* a i) (* z c))))))
(if (<= c -7e+202)
(* t (- (* c j) (* b (/ (* z c) t))))
(if (<= c -3.3e+72)
t_2
(if (<= c -1.55e-139)
(+ (* j (- (* t c) (* y i))) t_1)
(if (<= c 3e+131) t_2 (* (* t c) (- j (* b (/ z t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (c <= -7e+202) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -3.3e+72) {
tmp = t_2;
} else if (c <= -1.55e-139) {
tmp = (j * ((t * c) - (y * i))) + t_1;
} else if (c <= 3e+131) {
tmp = t_2;
} else {
tmp = (t * c) * (j - (b * (z / 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) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = t_1 + (b * ((a * i) - (z * c)))
if (c <= (-7d+202)) then
tmp = t * ((c * j) - (b * ((z * c) / t)))
else if (c <= (-3.3d+72)) then
tmp = t_2
else if (c <= (-1.55d-139)) then
tmp = (j * ((t * c) - (y * i))) + t_1
else if (c <= 3d+131) then
tmp = t_2
else
tmp = (t * c) * (j - (b * (z / 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 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double tmp;
if (c <= -7e+202) {
tmp = t * ((c * j) - (b * ((z * c) / t)));
} else if (c <= -3.3e+72) {
tmp = t_2;
} else if (c <= -1.55e-139) {
tmp = (j * ((t * c) - (y * i))) + t_1;
} else if (c <= 3e+131) {
tmp = t_2;
} else {
tmp = (t * c) * (j - (b * (z / t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 + (b * ((a * i) - (z * c))) tmp = 0 if c <= -7e+202: tmp = t * ((c * j) - (b * ((z * c) / t))) elif c <= -3.3e+72: tmp = t_2 elif c <= -1.55e-139: tmp = (j * ((t * c) - (y * i))) + t_1 elif c <= 3e+131: tmp = t_2 else: tmp = (t * c) * (j - (b * (z / t))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (c <= -7e+202) tmp = Float64(t * Float64(Float64(c * j) - Float64(b * Float64(Float64(z * c) / t)))); elseif (c <= -3.3e+72) tmp = t_2; elseif (c <= -1.55e-139) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1); elseif (c <= 3e+131) tmp = t_2; else tmp = Float64(Float64(t * c) * Float64(j - Float64(b * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = t_1 + (b * ((a * i) - (z * c))); tmp = 0.0; if (c <= -7e+202) tmp = t * ((c * j) - (b * ((z * c) / t))); elseif (c <= -3.3e+72) tmp = t_2; elseif (c <= -1.55e-139) tmp = (j * ((t * c) - (y * i))) + t_1; elseif (c <= 3e+131) tmp = t_2; else tmp = (t * c) * (j - (b * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7e+202], N[(t * N[(N[(c * j), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.3e+72], t$95$2, If[LessEqual[c, -1.55e-139], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[c, 3e+131], t$95$2, N[(N[(t * c), $MachinePrecision] * N[(j - N[(b * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;c \leq -7 \cdot 10^{+202}:\\
\;\;\;\;t \cdot \left(c \cdot j - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{+72}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{-139}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(j - b \cdot \frac{z}{t}\right)\\
\end{array}
\end{array}
if c < -6.99999999999999975e202Initial program 54.8%
+-commutative54.8%
fma-define54.8%
*-commutative54.8%
*-commutative54.8%
cancel-sign-sub-inv54.8%
cancel-sign-sub54.8%
fmm-def54.8%
distribute-rgt-neg-out54.8%
remove-double-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in c around inf 83.6%
*-commutative83.6%
*-commutative83.6%
Simplified83.6%
Taylor expanded in t around inf 88.5%
+-commutative88.5%
mul-1-neg88.5%
unsub-neg88.5%
associate-/l*88.5%
Simplified88.5%
if -6.99999999999999975e202 < c < -3.3e72 or -1.55e-139 < c < 3.0000000000000001e131Initial program 75.5%
Taylor expanded in j around 0 70.7%
if -3.3e72 < c < -1.55e-139Initial program 72.2%
Taylor expanded in b around 0 74.7%
if 3.0000000000000001e131 < c Initial program 59.2%
+-commutative59.2%
fma-define59.2%
*-commutative59.2%
*-commutative59.2%
cancel-sign-sub-inv59.2%
cancel-sign-sub59.2%
fmm-def59.2%
distribute-rgt-neg-out59.2%
remove-double-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in c around inf 72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in c around 0 72.7%
associate-*r*72.9%
*-commutative72.9%
associate-/l*75.0%
Simplified75.0%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.8e+208)
(* t (- (* c j) (* x a)))
(if (<= t -2.9e+159)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (or (<= t -1.15e-5) (not (<= t 250.0)))
(+ (* t (* c j)) (* x (- (* y z) (* t a))))
(+ (* x (* y z)) (* 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 (t <= -3.8e+208) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -2.9e+159) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if ((t <= -1.15e-5) || !(t <= 250.0)) {
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)));
} else {
tmp = (x * (y * z)) + (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 (t <= (-3.8d+208)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-2.9d+159)) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if ((t <= (-1.15d-5)) .or. (.not. (t <= 250.0d0))) then
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)))
else
tmp = (x * (y * z)) + (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 (t <= -3.8e+208) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -2.9e+159) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if ((t <= -1.15e-5) || !(t <= 250.0)) {
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)));
} else {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.8e+208: tmp = t * ((c * j) - (x * a)) elif t <= -2.9e+159: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif (t <= -1.15e-5) or not (t <= 250.0): tmp = (t * (c * j)) + (x * ((y * z) - (t * a))) else: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.8e+208) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -2.9e+159) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif ((t <= -1.15e-5) || !(t <= 250.0)) tmp = Float64(Float64(t * Float64(c * j)) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(x * Float64(y * z)) + 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 (t <= -3.8e+208) tmp = t * ((c * j) - (x * a)); elseif (t <= -2.9e+159) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif ((t <= -1.15e-5) || ~((t <= 250.0))) tmp = (t * (c * j)) + (x * ((y * z) - (t * a))); else tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.8e+208], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e+159], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.15e-5], N[Not[LessEqual[t, 250.0]], $MachinePrecision]], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+208}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -2.9 \cdot 10^{+159}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-5} \lor \neg \left(t \leq 250\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -3.8000000000000002e208Initial program 38.0%
+-commutative38.0%
fma-define42.2%
*-commutative42.2%
*-commutative42.2%
cancel-sign-sub-inv42.2%
cancel-sign-sub42.2%
fmm-def50.5%
distribute-rgt-neg-out50.5%
remove-double-neg50.5%
*-commutative50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in t around inf 75.5%
+-commutative75.5%
mul-1-neg75.5%
unsub-neg75.5%
*-commutative75.5%
Simplified75.5%
if -3.8000000000000002e208 < t < -2.90000000000000014e159Initial program 36.2%
cancel-sign-sub-inv36.2%
cancel-sign-sub36.2%
*-commutative36.2%
fmm-def36.2%
distribute-rgt-neg-in36.2%
remove-double-neg36.2%
*-commutative36.2%
*-commutative36.2%
*-commutative36.2%
*-commutative36.2%
Simplified36.2%
Taylor expanded in i around inf 81.7%
if -2.90000000000000014e159 < t < -1.15e-5 or 250 < t Initial program 68.0%
Taylor expanded in b around 0 69.6%
Taylor expanded in c around inf 63.8%
*-commutative68.0%
associate-*r*65.7%
*-commutative65.7%
associate-*r*71.4%
Simplified66.1%
if -1.15e-5 < t < 250Initial program 80.3%
Taylor expanded in c around inf 71.6%
*-commutative71.6%
associate-*r*72.1%
*-commutative72.1%
associate-*r*69.3%
Simplified69.3%
Taylor expanded in t around 0 62.0%
*-commutative62.0%
Simplified62.0%
Final simplification65.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -8.2e+107)
t_2
(if (<= c -3.4e-52)
(* x (- (* y z) (* t a)))
(if (<= c 1.68e-187)
t_1
(if (<= c 61.0)
(* a (- (* b i) (* x t)))
(if (<= c 2.6e+90) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.2e+107) {
tmp = t_2;
} else if (c <= -3.4e-52) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.68e-187) {
tmp = t_1;
} else if (c <= 61.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.6e+90) {
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 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-8.2d+107)) then
tmp = t_2
else if (c <= (-3.4d-52)) then
tmp = x * ((y * z) - (t * a))
else if (c <= 1.68d-187) then
tmp = t_1
else if (c <= 61.0d0) then
tmp = a * ((b * i) - (x * t))
else if (c <= 2.6d+90) 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.2e+107) {
tmp = t_2;
} else if (c <= -3.4e-52) {
tmp = x * ((y * z) - (t * a));
} else if (c <= 1.68e-187) {
tmp = t_1;
} else if (c <= 61.0) {
tmp = a * ((b * i) - (x * t));
} else if (c <= 2.6e+90) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -8.2e+107: tmp = t_2 elif c <= -3.4e-52: tmp = x * ((y * z) - (t * a)) elif c <= 1.68e-187: tmp = t_1 elif c <= 61.0: tmp = a * ((b * i) - (x * t)) elif c <= 2.6e+90: tmp = t_1 else: tmp = t_2 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.2e+107) tmp = t_2; elseif (c <= -3.4e-52) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (c <= 1.68e-187) tmp = t_1; elseif (c <= 61.0) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (c <= 2.6e+90) 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 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -8.2e+107) tmp = t_2; elseif (c <= -3.4e-52) tmp = x * ((y * z) - (t * a)); elseif (c <= 1.68e-187) tmp = t_1; elseif (c <= 61.0) tmp = a * ((b * i) - (x * t)); elseif (c <= 2.6e+90) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.2e+107], t$95$2, If[LessEqual[c, -3.4e-52], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.68e-187], t$95$1, If[LessEqual[c, 61.0], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.6e+90], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.2 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -3.4 \cdot 10^{-52}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 1.68 \cdot 10^{-187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 61:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -8.1999999999999998e107 or 2.5999999999999998e90 < c Initial program 60.9%
+-commutative60.9%
fma-define64.5%
*-commutative64.5%
*-commutative64.5%
cancel-sign-sub-inv64.5%
cancel-sign-sub64.5%
fmm-def64.5%
distribute-rgt-neg-out64.5%
remove-double-neg64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
Taylor expanded in c around inf 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if -8.1999999999999998e107 < c < -3.40000000000000017e-52Initial program 65.7%
Taylor expanded in a around inf 65.9%
mul-1-neg65.9%
+-commutative65.9%
unsub-neg65.9%
*-commutative65.9%
*-commutative65.9%
associate-*r*65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in x around inf 54.4%
*-commutative54.4%
Simplified54.4%
if -3.40000000000000017e-52 < c < 1.6799999999999999e-187 or 61 < c < 2.5999999999999998e90Initial program 75.4%
+-commutative75.4%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
fmm-def78.6%
distribute-rgt-neg-out78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
Simplified54.2%
if 1.6799999999999999e-187 < c < 61Initial program 82.9%
Taylor expanded in a around inf 63.8%
mul-1-neg63.8%
+-commutative63.8%
unsub-neg63.8%
*-commutative63.8%
*-commutative63.8%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
Simplified54.0%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* z (- (* x y) (* b c))))))
(if (<= j -3.6e+33)
t_2
(if (<= j 1.25e-108)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(if (<= j 5.4e+127) (+ 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 = t_1 + (z * ((x * y) - (b * c)));
double tmp;
if (j <= -3.6e+33) {
tmp = t_2;
} else if (j <= 1.25e-108) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (j <= 5.4e+127) {
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 = t_1 + (z * ((x * y) - (b * c)))
if (j <= (-3.6d+33)) then
tmp = t_2
else if (j <= 1.25d-108) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else if (j <= 5.4d+127) 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 = t_1 + (z * ((x * y) - (b * c)));
double tmp;
if (j <= -3.6e+33) {
tmp = t_2;
} else if (j <= 1.25e-108) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (j <= 5.4e+127) {
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 = t_1 + (z * ((x * y) - (b * c))) tmp = 0 if j <= -3.6e+33: tmp = t_2 elif j <= 1.25e-108: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) elif j <= 5.4e+127: 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(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))) tmp = 0.0 if (j <= -3.6e+33) tmp = t_2; elseif (j <= 1.25e-108) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 5.4e+127) 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 = t_1 + (z * ((x * y) - (b * c))); tmp = 0.0; if (j <= -3.6e+33) tmp = t_2; elseif (j <= 1.25e-108) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); elseif (j <= 5.4e+127) 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[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.6e+33], t$95$2, If[LessEqual[j, 1.25e-108], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e+127], 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 := t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{+33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{-108}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{+127}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.6000000000000003e33 or 5.4000000000000004e127 < j Initial program 65.0%
cancel-sign-sub-inv65.0%
cancel-sign-sub65.0%
*-commutative65.0%
fmm-def66.1%
distribute-rgt-neg-in66.1%
remove-double-neg66.1%
*-commutative66.1%
*-commutative66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in z around inf 72.8%
if -3.6000000000000003e33 < j < 1.25e-108Initial program 72.1%
Taylor expanded in j around 0 71.0%
if 1.25e-108 < j < 5.4000000000000004e127Initial program 76.4%
cancel-sign-sub-inv76.4%
cancel-sign-sub76.4%
*-commutative76.4%
fmm-def78.4%
distribute-rgt-neg-in78.4%
remove-double-neg78.4%
*-commutative78.4%
*-commutative78.4%
*-commutative78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in a around -inf 75.1%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (* c j)) (* x (- (* y z) (* t a))))))
(if (<= x -88.0)
t_1
(if (<= x -1.6e-199)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= x 8.5e+20) (- (* j (- (* t c) (* y i))) (* 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 = (t * (c * j)) + (x * ((y * z) - (t * a)));
double tmp;
if (x <= -88.0) {
tmp = t_1;
} else if (x <= -1.6e-199) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (x <= 8.5e+20) {
tmp = (j * ((t * c) - (y * i))) - (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 = (t * (c * j)) + (x * ((y * z) - (t * a)))
if (x <= (-88.0d0)) then
tmp = t_1
else if (x <= (-1.6d-199)) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (x <= 8.5d+20) then
tmp = (j * ((t * c) - (y * i))) - (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 = (t * (c * j)) + (x * ((y * z) - (t * a)));
double tmp;
if (x <= -88.0) {
tmp = t_1;
} else if (x <= -1.6e-199) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (x <= 8.5e+20) {
tmp = (j * ((t * c) - (y * i))) - (z * (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * (c * j)) + (x * ((y * z) - (t * a))) tmp = 0 if x <= -88.0: tmp = t_1 elif x <= -1.6e-199: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif x <= 8.5e+20: tmp = (j * ((t * c) - (y * i))) - (z * (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(c * j)) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) tmp = 0.0 if (x <= -88.0) tmp = t_1; elseif (x <= -1.6e-199) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 8.5e+20) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(z * Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * (c * j)) + (x * ((y * z) - (t * a))); tmp = 0.0; if (x <= -88.0) tmp = t_1; elseif (x <= -1.6e-199) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (x <= 8.5e+20) tmp = (j * ((t * c) - (y * i))) - (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[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -88.0], t$95$1, If[LessEqual[x, -1.6e-199], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+20], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -88:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-199}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -88 or 8.5e20 < x Initial program 68.0%
Taylor expanded in b around 0 66.0%
Taylor expanded in c around inf 64.6%
*-commutative68.8%
associate-*r*66.6%
*-commutative66.6%
associate-*r*69.5%
Simplified66.1%
if -88 < x < -1.6e-199Initial program 77.5%
Taylor expanded in c around inf 77.4%
*-commutative77.4%
associate-*r*74.7%
*-commutative74.7%
associate-*r*74.6%
Simplified74.6%
Taylor expanded in t around 0 64.9%
*-commutative64.9%
Simplified64.9%
if -1.6e-199 < x < 8.5e20Initial program 71.3%
cancel-sign-sub-inv71.3%
cancel-sign-sub71.3%
*-commutative71.3%
fmm-def71.3%
distribute-rgt-neg-in71.3%
remove-double-neg71.3%
*-commutative71.3%
*-commutative71.3%
*-commutative71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in c around inf 60.6%
mul-1-neg60.6%
*-commutative60.6%
*-commutative60.6%
associate-*r*64.7%
*-commutative64.7%
distribute-rgt-neg-out64.7%
distribute-rgt-neg-in64.7%
Simplified64.7%
Final simplification65.4%
(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)))))
(if (<= z -4.2e+103)
t_2
(if (<= z -8.2e-183)
t_1
(if (<= z 6.2e-205)
(* a (- (* b i) (* x t)))
(if (<= z 1.06e+63) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+103) {
tmp = t_2;
} else if (z <= -8.2e-183) {
tmp = t_1;
} else if (z <= 6.2e-205) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.06e+63) {
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 = j * ((t * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-4.2d+103)) then
tmp = t_2
else if (z <= (-8.2d-183)) then
tmp = t_1
else if (z <= 6.2d-205) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.06d+63) 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 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+103) {
tmp = t_2;
} else if (z <= -8.2e-183) {
tmp = t_1;
} else if (z <= 6.2e-205) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.06e+63) {
tmp = t_1;
} 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)) tmp = 0 if z <= -4.2e+103: tmp = t_2 elif z <= -8.2e-183: tmp = t_1 elif z <= 6.2e-205: tmp = a * ((b * i) - (x * t)) elif z <= 1.06e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -4.2e+103) tmp = t_2; elseif (z <= -8.2e-183) tmp = t_1; elseif (z <= 6.2e-205) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.06e+63) 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 = j * ((t * c) - (y * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -4.2e+103) tmp = t_2; elseif (z <= -8.2e-183) tmp = t_1; elseif (z <= 6.2e-205) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.06e+63) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+103], t$95$2, If[LessEqual[z, -8.2e-183], t$95$1, If[LessEqual[z, 6.2e-205], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+63], t$95$1, 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)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+103}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{-183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-205}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -4.2000000000000003e103 or 1.0600000000000001e63 < z Initial program 60.1%
Taylor expanded in a around inf 48.7%
mul-1-neg48.7%
+-commutative48.7%
unsub-neg48.7%
*-commutative48.7%
*-commutative48.7%
associate-*r*49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in z around inf 68.3%
*-commutative68.3%
Simplified68.3%
if -4.2000000000000003e103 < z < -8.1999999999999996e-183 or 6.19999999999999965e-205 < z < 1.0600000000000001e63Initial program 73.0%
+-commutative73.0%
fma-define73.9%
*-commutative73.9%
*-commutative73.9%
cancel-sign-sub-inv73.9%
cancel-sign-sub73.9%
fmm-def74.9%
distribute-rgt-neg-out74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
if -8.1999999999999996e-183 < z < 6.19999999999999965e-205Initial program 87.1%
Taylor expanded in a around inf 87.0%
mul-1-neg87.0%
+-commutative87.0%
unsub-neg87.0%
*-commutative87.0%
*-commutative87.0%
associate-*r*84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in a around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
Final simplification59.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3.9e+117) (not (<= z 1.35e+78))) (* z (- (* x y) (* b c))) (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.9e+117) || !(z <= 1.35e+78)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
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 <= (-3.9d+117)) .or. (.not. (z <= 1.35d+78))) then
tmp = z * ((x * y) - (b * c))
else
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
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 <= -3.9e+117) || !(z <= 1.35e+78)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -3.9e+117) or not (z <= 1.35e+78): tmp = z * ((x * y) - (b * c)) else: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3.9e+117) || !(z <= 1.35e+78)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -3.9e+117) || ~((z <= 1.35e+78))) tmp = z * ((x * y) - (b * c)); else tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.9e+117], N[Not[LessEqual[z, 1.35e+78]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+117} \lor \neg \left(z \leq 1.35 \cdot 10^{+78}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if z < -3.8999999999999999e117 or 1.35000000000000002e78 < z Initial program 59.0%
Taylor expanded in a around inf 47.1%
mul-1-neg47.1%
+-commutative47.1%
unsub-neg47.1%
*-commutative47.1%
*-commutative47.1%
associate-*r*48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in z around inf 69.6%
*-commutative69.6%
Simplified69.6%
if -3.8999999999999999e117 < z < 1.35000000000000002e78Initial program 77.4%
Taylor expanded in b around 0 65.5%
Final simplification67.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.5e-20) (not (<= a 2.6e+61))) (* a (- (+ (* b i) (/ (* x (* y z)) a)) (* x t))) (- (* j (- (* t c) (* y i))) (* b (* 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 ((a <= -1.5e-20) || !(a <= 2.6e+61)) {
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) - (b * (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 ((a <= (-1.5d-20)) .or. (.not. (a <= 2.6d+61))) then
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t))
else
tmp = (j * ((t * c) - (y * i))) - (b * (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 ((a <= -1.5e-20) || !(a <= 2.6e+61)) {
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.5e-20) or not (a <= 2.6e+61): tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t)) else: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.5e-20) || !(a <= 2.6e+61)) tmp = Float64(a * Float64(Float64(Float64(b * i) + Float64(Float64(x * Float64(y * z)) / a)) - Float64(x * t))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.5e-20) || ~((a <= 2.6e+61))) tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t)); else tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.5e-20], N[Not[LessEqual[a, 2.6e+61]], $MachinePrecision]], N[(a * N[(N[(N[(b * i), $MachinePrecision] + N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-20} \lor \neg \left(a \leq 2.6 \cdot 10^{+61}\right):\\
\;\;\;\;a \cdot \left(\left(b \cdot i + \frac{x \cdot \left(y \cdot z\right)}{a}\right) - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if a < -1.50000000000000014e-20 or 2.59999999999999973e61 < a Initial program 62.1%
Taylor expanded in c around inf 62.8%
*-commutative62.8%
associate-*r*61.4%
*-commutative61.4%
associate-*r*59.9%
Simplified59.9%
Taylor expanded in a around inf 71.2%
sub-neg71.2%
+-commutative71.2%
mul-1-neg71.2%
unsub-neg71.2%
+-commutative71.2%
*-commutative71.2%
associate-*r*70.5%
*-commutative70.5%
neg-mul-170.5%
Simplified70.4%
Taylor expanded in c around 0 68.1%
if -1.50000000000000014e-20 < a < 2.59999999999999973e61Initial program 79.2%
cancel-sign-sub-inv79.2%
cancel-sign-sub79.2%
*-commutative79.2%
fmm-def79.2%
distribute-rgt-neg-in79.2%
remove-double-neg79.2%
*-commutative79.2%
*-commutative79.2%
*-commutative79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in c around inf 62.9%
associate-*r*62.9%
neg-mul-162.9%
*-commutative62.9%
Simplified62.9%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.4e+117)
(* z (- (* b c)))
(if (<= z -5.4e-185)
(* y (* i (- j)))
(if (<= z 1.55e+24)
(* (* x t) (- a))
(if (<= z 4.3e+160) (* z (* x y)) (* c (* 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 (z <= -6.4e+117) {
tmp = z * -(b * c);
} else if (z <= -5.4e-185) {
tmp = y * (i * -j);
} else if (z <= 1.55e+24) {
tmp = (x * t) * -a;
} else if (z <= 4.3e+160) {
tmp = z * (x * y);
} else {
tmp = c * (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 (z <= (-6.4d+117)) then
tmp = z * -(b * c)
else if (z <= (-5.4d-185)) then
tmp = y * (i * -j)
else if (z <= 1.55d+24) then
tmp = (x * t) * -a
else if (z <= 4.3d+160) then
tmp = z * (x * y)
else
tmp = c * (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 (z <= -6.4e+117) {
tmp = z * -(b * c);
} else if (z <= -5.4e-185) {
tmp = y * (i * -j);
} else if (z <= 1.55e+24) {
tmp = (x * t) * -a;
} else if (z <= 4.3e+160) {
tmp = z * (x * y);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.4e+117: tmp = z * -(b * c) elif z <= -5.4e-185: tmp = y * (i * -j) elif z <= 1.55e+24: tmp = (x * t) * -a elif z <= 4.3e+160: tmp = z * (x * y) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.4e+117) tmp = Float64(z * Float64(-Float64(b * c))); elseif (z <= -5.4e-185) tmp = Float64(y * Float64(i * Float64(-j))); elseif (z <= 1.55e+24) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (z <= 4.3e+160) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.4e+117) tmp = z * -(b * c); elseif (z <= -5.4e-185) tmp = y * (i * -j); elseif (z <= 1.55e+24) tmp = (x * t) * -a; elseif (z <= 4.3e+160) tmp = z * (x * y); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.4e+117], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, -5.4e-185], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+24], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[z, 4.3e+160], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+117}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-185}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+24}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+160}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if z < -6.4000000000000001e117Initial program 51.2%
Taylor expanded in a around inf 39.4%
mul-1-neg39.4%
+-commutative39.4%
unsub-neg39.4%
*-commutative39.4%
*-commutative39.4%
associate-*r*41.3%
*-commutative41.3%
Simplified41.3%
Taylor expanded in z around inf 67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around 0 44.0%
neg-mul-144.0%
distribute-lft-neg-in44.0%
*-commutative44.0%
Simplified44.0%
if -6.4000000000000001e117 < z < -5.39999999999999976e-185Initial program 69.7%
Taylor expanded in a around inf 75.1%
mul-1-neg75.1%
+-commutative75.1%
unsub-neg75.1%
*-commutative75.1%
*-commutative75.1%
associate-*r*73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in y around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in z around 0 33.4%
neg-mul-133.4%
distribute-rgt-neg-in33.4%
Simplified33.4%
if -5.39999999999999976e-185 < z < 1.55000000000000005e24Initial program 81.1%
Taylor expanded in b around 0 66.1%
Taylor expanded in a around inf 33.4%
associate-*r*33.4%
neg-mul-133.4%
Simplified33.4%
if 1.55000000000000005e24 < z < 4.29999999999999989e160Initial program 79.6%
Taylor expanded in a around inf 72.7%
mul-1-neg72.7%
+-commutative72.7%
unsub-neg72.7%
*-commutative72.7%
*-commutative72.7%
associate-*r*72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around inf 51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in z around inf 34.8%
associate-*r*41.0%
*-commutative41.0%
Simplified41.0%
if 4.29999999999999989e160 < z Initial program 59.4%
+-commutative59.4%
fma-define63.1%
*-commutative63.1%
*-commutative63.1%
cancel-sign-sub-inv63.1%
cancel-sign-sub63.1%
fmm-def63.1%
distribute-rgt-neg-out63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in c around inf 66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in t around 0 66.3%
mul-1-neg66.3%
distribute-rgt-neg-in66.3%
Simplified66.3%
Final simplification39.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -2.7e+62)
(* a (* b i))
(if (<= i 3.1e-289)
(* z (- (* b c)))
(if (<= i 4e-135)
(* z (* x y))
(if (<= i 2.6e+71) (* c (* z (- b))) (* y (* i (- j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.7e+62) {
tmp = a * (b * i);
} else if (i <= 3.1e-289) {
tmp = z * -(b * c);
} else if (i <= 4e-135) {
tmp = z * (x * y);
} else if (i <= 2.6e+71) {
tmp = c * (z * -b);
} else {
tmp = y * (i * -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 (i <= (-2.7d+62)) then
tmp = a * (b * i)
else if (i <= 3.1d-289) then
tmp = z * -(b * c)
else if (i <= 4d-135) then
tmp = z * (x * y)
else if (i <= 2.6d+71) then
tmp = c * (z * -b)
else
tmp = y * (i * -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 (i <= -2.7e+62) {
tmp = a * (b * i);
} else if (i <= 3.1e-289) {
tmp = z * -(b * c);
} else if (i <= 4e-135) {
tmp = z * (x * y);
} else if (i <= 2.6e+71) {
tmp = c * (z * -b);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.7e+62: tmp = a * (b * i) elif i <= 3.1e-289: tmp = z * -(b * c) elif i <= 4e-135: tmp = z * (x * y) elif i <= 2.6e+71: tmp = c * (z * -b) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.7e+62) tmp = Float64(a * Float64(b * i)); elseif (i <= 3.1e-289) tmp = Float64(z * Float64(-Float64(b * c))); elseif (i <= 4e-135) tmp = Float64(z * Float64(x * y)); elseif (i <= 2.6e+71) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.7e+62) tmp = a * (b * i); elseif (i <= 3.1e-289) tmp = z * -(b * c); elseif (i <= 4e-135) tmp = z * (x * y); elseif (i <= 2.6e+71) tmp = c * (z * -b); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.7e+62], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e-289], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 4e-135], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+71], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.7 \cdot 10^{+62}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-289}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{-135}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+71}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -2.7e62Initial program 54.8%
+-commutative54.8%
fma-define57.0%
*-commutative57.0%
*-commutative57.0%
cancel-sign-sub-inv57.0%
cancel-sign-sub57.0%
fmm-def59.2%
distribute-rgt-neg-out59.2%
remove-double-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in i around inf 65.9%
distribute-lft-out--65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in y around 0 40.2%
if -2.7e62 < i < 3.1e-289Initial program 82.9%
Taylor expanded in a around inf 77.1%
mul-1-neg77.1%
+-commutative77.1%
unsub-neg77.1%
*-commutative77.1%
*-commutative77.1%
associate-*r*78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in z around inf 45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in y around 0 32.0%
neg-mul-132.0%
distribute-lft-neg-in32.0%
*-commutative32.0%
Simplified32.0%
if 3.1e-289 < i < 4.0000000000000002e-135Initial program 78.3%
Taylor expanded in a around inf 78.4%
mul-1-neg78.4%
+-commutative78.4%
unsub-neg78.4%
*-commutative78.4%
*-commutative78.4%
associate-*r*75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in y around inf 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in z around inf 40.9%
associate-*r*43.3%
*-commutative43.3%
Simplified43.3%
if 4.0000000000000002e-135 < i < 2.59999999999999991e71Initial program 80.6%
+-commutative80.6%
fma-define83.3%
*-commutative83.3%
*-commutative83.3%
cancel-sign-sub-inv83.3%
cancel-sign-sub83.3%
fmm-def86.1%
distribute-rgt-neg-out86.1%
remove-double-neg86.1%
*-commutative86.1%
*-commutative86.1%
Simplified86.1%
Taylor expanded in c around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in t around 0 46.2%
mul-1-neg46.2%
distribute-rgt-neg-in46.2%
Simplified46.2%
if 2.59999999999999991e71 < i Initial program 53.4%
Taylor expanded in a around inf 50.1%
mul-1-neg50.1%
+-commutative50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in y around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in z around 0 41.5%
neg-mul-141.5%
distribute-rgt-neg-in41.5%
Simplified41.5%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= i -8.6e+63)
(* a (* b i))
(if (<= i 5.1e-290)
t_1
(if (<= i 6.6e-135)
(* z (* x y))
(if (<= i 6e+73) t_1 (* y (* 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 = c * (z * -b);
double tmp;
if (i <= -8.6e+63) {
tmp = a * (b * i);
} else if (i <= 5.1e-290) {
tmp = t_1;
} else if (i <= 6.6e-135) {
tmp = z * (x * y);
} else if (i <= 6e+73) {
tmp = t_1;
} else {
tmp = y * (i * -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) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (i <= (-8.6d+63)) then
tmp = a * (b * i)
else if (i <= 5.1d-290) then
tmp = t_1
else if (i <= 6.6d-135) then
tmp = z * (x * y)
else if (i <= 6d+73) then
tmp = t_1
else
tmp = y * (i * -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 t_1 = c * (z * -b);
double tmp;
if (i <= -8.6e+63) {
tmp = a * (b * i);
} else if (i <= 5.1e-290) {
tmp = t_1;
} else if (i <= 6.6e-135) {
tmp = z * (x * y);
} else if (i <= 6e+73) {
tmp = t_1;
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if i <= -8.6e+63: tmp = a * (b * i) elif i <= 5.1e-290: tmp = t_1 elif i <= 6.6e-135: tmp = z * (x * y) elif i <= 6e+73: tmp = t_1 else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (i <= -8.6e+63) tmp = Float64(a * Float64(b * i)); elseif (i <= 5.1e-290) tmp = t_1; elseif (i <= 6.6e-135) tmp = Float64(z * Float64(x * y)); elseif (i <= 6e+73) tmp = t_1; else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (i <= -8.6e+63) tmp = a * (b * i); elseif (i <= 5.1e-290) tmp = t_1; elseif (i <= 6.6e-135) tmp = z * (x * y); elseif (i <= 6e+73) tmp = t_1; else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.6e+63], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.1e-290], t$95$1, If[LessEqual[i, 6.6e-135], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+73], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;i \leq -8.6 \cdot 10^{+63}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{-290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6.6 \cdot 10^{-135}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -8.6000000000000001e63Initial program 54.8%
+-commutative54.8%
fma-define57.0%
*-commutative57.0%
*-commutative57.0%
cancel-sign-sub-inv57.0%
cancel-sign-sub57.0%
fmm-def59.2%
distribute-rgt-neg-out59.2%
remove-double-neg59.2%
*-commutative59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in i around inf 65.9%
distribute-lft-out--65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in y around 0 40.2%
if -8.6000000000000001e63 < i < 5.1e-290 or 6.5999999999999999e-135 < i < 6.00000000000000021e73Initial program 82.2%
+-commutative82.2%
fma-define83.0%
*-commutative83.0%
*-commutative83.0%
cancel-sign-sub-inv83.0%
cancel-sign-sub83.0%
fmm-def83.9%
distribute-rgt-neg-out83.9%
remove-double-neg83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in c around inf 50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in t around 0 35.6%
mul-1-neg35.6%
distribute-rgt-neg-in35.6%
Simplified35.6%
if 5.1e-290 < i < 6.5999999999999999e-135Initial program 78.3%
Taylor expanded in a around inf 78.4%
mul-1-neg78.4%
+-commutative78.4%
unsub-neg78.4%
*-commutative78.4%
*-commutative78.4%
associate-*r*75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in y around inf 48.5%
+-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in z around inf 40.9%
associate-*r*43.3%
*-commutative43.3%
Simplified43.3%
if 6.00000000000000021e73 < i Initial program 53.4%
Taylor expanded in a around inf 50.1%
mul-1-neg50.1%
+-commutative50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
associate-*r*50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in y around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in z around 0 41.5%
neg-mul-141.5%
distribute-rgt-neg-in41.5%
Simplified41.5%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= z -1.45e+274)
(* x (* y z))
(if (<= z -2.7e+15)
t_1
(if (<= z 1.52e-94)
(* t (* c j))
(if (<= z 2.15e+161) (* z (* x y)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -1.45e+274) {
tmp = x * (y * z);
} else if (z <= -2.7e+15) {
tmp = t_1;
} else if (z <= 1.52e-94) {
tmp = t * (c * j);
} else if (z <= 2.15e+161) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (z <= (-1.45d+274)) then
tmp = x * (y * z)
else if (z <= (-2.7d+15)) then
tmp = t_1
else if (z <= 1.52d-94) then
tmp = t * (c * j)
else if (z <= 2.15d+161) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (z <= -1.45e+274) {
tmp = x * (y * z);
} else if (z <= -2.7e+15) {
tmp = t_1;
} else if (z <= 1.52e-94) {
tmp = t * (c * j);
} else if (z <= 2.15e+161) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if z <= -1.45e+274: tmp = x * (y * z) elif z <= -2.7e+15: tmp = t_1 elif z <= 1.52e-94: tmp = t * (c * j) elif z <= 2.15e+161: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) tmp = 0.0 if (z <= -1.45e+274) tmp = Float64(x * Float64(y * z)); elseif (z <= -2.7e+15) tmp = t_1; elseif (z <= 1.52e-94) tmp = Float64(t * Float64(c * j)); elseif (z <= 2.15e+161) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (z <= -1.45e+274) tmp = x * (y * z); elseif (z <= -2.7e+15) tmp = t_1; elseif (z <= 1.52e-94) tmp = t * (c * j); elseif (z <= 2.15e+161) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+274], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.7e+15], t$95$1, If[LessEqual[z, 1.52e-94], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e+161], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+274}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.52 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{+161}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.45e274Initial program 56.9%
Taylor expanded in b around 0 42.7%
Taylor expanded in z around inf 85.6%
*-commutative85.6%
Simplified85.6%
if -1.45e274 < z < -2.7e15 or 2.15e161 < z Initial program 56.7%
+-commutative56.7%
fma-define61.4%
*-commutative61.4%
*-commutative61.4%
cancel-sign-sub-inv61.4%
cancel-sign-sub61.4%
fmm-def63.7%
distribute-rgt-neg-out63.7%
remove-double-neg63.7%
*-commutative63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in c around inf 51.5%
*-commutative51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in t around 0 47.8%
mul-1-neg47.8%
distribute-rgt-neg-in47.8%
Simplified47.8%
if -2.7e15 < z < 1.5199999999999999e-94Initial program 79.3%
+-commutative79.3%
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 c around inf 32.4%
*-commutative32.4%
*-commutative32.4%
Simplified32.4%
Taylor expanded in t around inf 27.2%
associate-*r*28.9%
*-commutative28.9%
Simplified28.9%
if 1.5199999999999999e-94 < z < 2.15e161Initial program 75.8%
Taylor expanded in a around inf 72.0%
mul-1-neg72.0%
+-commutative72.0%
unsub-neg72.0%
*-commutative72.0%
*-commutative72.0%
associate-*r*72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in z around inf 31.2%
associate-*r*32.8%
*-commutative32.8%
Simplified32.8%
Final simplification37.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.65e-135) (not (<= x 12500000000000.0))) (+ (* t (* c j)) (* x (- (* y z) (* t a)))) (+ (* j (- (* t c) (* y i))) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -2.65e-135) || !(x <= 12500000000000.0)) {
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-2.65d-135)) .or. (.not. (x <= 12500000000000.0d0))) then
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)))
else
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -2.65e-135) || !(x <= 12500000000000.0)) {
tmp = (t * (c * j)) + (x * ((y * z) - (t * a)));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -2.65e-135) or not (x <= 12500000000000.0): tmp = (t * (c * j)) + (x * ((y * z) - (t * a))) else: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.65e-135) || !(x <= 12500000000000.0)) tmp = Float64(Float64(t * Float64(c * j)) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -2.65e-135) || ~((x <= 12500000000000.0))) tmp = (t * (c * j)) + (x * ((y * z) - (t * a))); else tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.65e-135], N[Not[LessEqual[x, 12500000000000.0]], $MachinePrecision]], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.65 \cdot 10^{-135} \lor \neg \left(x \leq 12500000000000\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if x < -2.65e-135 or 1.25e13 < x Initial program 69.8%
Taylor expanded in b around 0 63.9%
Taylor expanded in c around inf 61.6%
*-commutative70.6%
associate-*r*68.1%
*-commutative68.1%
associate-*r*71.7%
Simplified64.0%
if -2.65e-135 < x < 1.25e13Initial program 71.3%
cancel-sign-sub-inv71.3%
cancel-sign-sub71.3%
*-commutative71.3%
fmm-def72.3%
distribute-rgt-neg-in72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in i around inf 57.1%
Final simplification61.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -5.5e-11) (not (<= z 7e+79))) (* z (- (* x y) (* b c))) (+ (* j (- (* t c) (* y i))) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -5.5e-11) || !(z <= 7e+79)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-5.5d-11)) .or. (.not. (z <= 7d+79))) then
tmp = z * ((x * y) - (b * c))
else
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -5.5e-11) || !(z <= 7e+79)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -5.5e-11) or not (z <= 7e+79): tmp = z * ((x * y) - (b * c)) else: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -5.5e-11) || !(z <= 7e+79)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -5.5e-11) || ~((z <= 7e+79))) tmp = z * ((x * y) - (b * c)); else tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -5.5e-11], N[Not[LessEqual[z, 7e+79]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{-11} \lor \neg \left(z \leq 7 \cdot 10^{+79}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -5.49999999999999975e-11 or 6.99999999999999961e79 < z Initial program 60.0%
Taylor expanded in a around inf 50.2%
mul-1-neg50.2%
+-commutative50.2%
unsub-neg50.2%
*-commutative50.2%
*-commutative50.2%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in z around inf 64.6%
*-commutative64.6%
Simplified64.6%
if -5.49999999999999975e-11 < z < 6.99999999999999961e79Initial program 79.5%
cancel-sign-sub-inv79.5%
cancel-sign-sub79.5%
*-commutative79.5%
fmm-def79.5%
distribute-rgt-neg-in79.5%
remove-double-neg79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in i around inf 56.1%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.45e+51)
t_1
(if (<= b -2.4e-184)
(* x (- (* y z) (* t a)))
(if (<= b 18000000000.0) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.45e+51) {
tmp = t_1;
} else if (b <= -2.4e-184) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 18000000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.45d+51)) then
tmp = t_1
else if (b <= (-2.4d-184)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 18000000000.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.45e+51) {
tmp = t_1;
} else if (b <= -2.4e-184) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 18000000000.0) {
tmp = j * ((t * c) - (y * i));
} 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.45e+51: tmp = t_1 elif b <= -2.4e-184: tmp = x * ((y * z) - (t * a)) elif b <= 18000000000.0: tmp = j * ((t * c) - (y * i)) 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.45e+51) tmp = t_1; elseif (b <= -2.4e-184) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 18000000000.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); 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.45e+51) tmp = t_1; elseif (b <= -2.4e-184) tmp = x * ((y * z) - (t * a)); elseif (b <= 18000000000.0) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e+51], t$95$1, If[LessEqual[b, -2.4e-184], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 18000000000.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $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.45 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-184}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 18000000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.4499999999999999e51 or 1.8e10 < b Initial program 74.1%
Taylor expanded in c around inf 76.0%
*-commutative76.0%
associate-*r*74.3%
*-commutative74.3%
associate-*r*76.0%
Simplified76.0%
Taylor expanded in b around inf 64.6%
if -1.4499999999999999e51 < b < -2.40000000000000024e-184Initial program 67.9%
Taylor expanded in a around inf 66.2%
mul-1-neg66.2%
+-commutative66.2%
unsub-neg66.2%
*-commutative66.2%
*-commutative66.2%
associate-*r*66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
if -2.40000000000000024e-184 < b < 1.8e10Initial program 67.4%
+-commutative67.4%
fma-define67.4%
*-commutative67.4%
*-commutative67.4%
cancel-sign-sub-inv67.4%
cancel-sign-sub67.4%
fmm-def68.4%
distribute-rgt-neg-out68.4%
remove-double-neg68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in j around inf 48.2%
*-commutative48.2%
*-commutative48.2%
Simplified48.2%
Final simplification56.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -5e+62)
t_1
(if (<= b -5.8e-173)
(* t (- (* c j) (* x a)))
(if (<= b 7600000000.0) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5e+62) {
tmp = t_1;
} else if (b <= -5.8e-173) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 7600000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-5d+62)) then
tmp = t_1
else if (b <= (-5.8d-173)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 7600000000.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5e+62) {
tmp = t_1;
} else if (b <= -5.8e-173) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 7600000000.0) {
tmp = j * ((t * c) - (y * i));
} 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 <= -5e+62: tmp = t_1 elif b <= -5.8e-173: tmp = t * ((c * j) - (x * a)) elif b <= 7600000000.0: tmp = j * ((t * c) - (y * i)) 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 <= -5e+62) tmp = t_1; elseif (b <= -5.8e-173) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 7600000000.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); 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 <= -5e+62) tmp = t_1; elseif (b <= -5.8e-173) tmp = t * ((c * j) - (x * a)); elseif (b <= 7600000000.0) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+62], t$95$1, If[LessEqual[b, -5.8e-173], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7600000000.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $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 -5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-173}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 7600000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.00000000000000029e62 or 7.6e9 < b Initial program 73.2%
Taylor expanded in c around inf 75.1%
*-commutative75.1%
associate-*r*73.4%
*-commutative73.4%
associate-*r*75.2%
Simplified75.2%
Taylor expanded in b around inf 65.1%
if -5.00000000000000029e62 < b < -5.7999999999999997e-173Initial program 67.9%
+-commutative67.9%
fma-define69.8%
*-commutative69.8%
*-commutative69.8%
cancel-sign-sub-inv69.8%
cancel-sign-sub69.8%
fmm-def69.8%
distribute-rgt-neg-out69.8%
remove-double-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in t around inf 45.5%
+-commutative45.5%
mul-1-neg45.5%
unsub-neg45.5%
*-commutative45.5%
Simplified45.5%
if -5.7999999999999997e-173 < b < 7.6e9Initial program 68.7%
+-commutative68.7%
fma-define68.7%
*-commutative68.7%
*-commutative68.7%
cancel-sign-sub-inv68.7%
cancel-sign-sub68.7%
fmm-def69.7%
distribute-rgt-neg-out69.7%
remove-double-neg69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
Taylor expanded in j around inf 48.4%
*-commutative48.4%
*-commutative48.4%
Simplified48.4%
Final simplification54.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.6e+43)
t_1
(if (<= b -4.9e-54)
(* a (- (* b i) (* x t)))
(if (<= b 4100000000.0) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.6e+43) {
tmp = t_1;
} else if (b <= -4.9e-54) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 4100000000.0) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-2.6d+43)) then
tmp = t_1
else if (b <= (-4.9d-54)) then
tmp = a * ((b * i) - (x * t))
else if (b <= 4100000000.0d0) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.6e+43) {
tmp = t_1;
} else if (b <= -4.9e-54) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 4100000000.0) {
tmp = j * ((t * c) - (y * i));
} 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 <= -2.6e+43: tmp = t_1 elif b <= -4.9e-54: tmp = a * ((b * i) - (x * t)) elif b <= 4100000000.0: tmp = j * ((t * c) - (y * i)) 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 <= -2.6e+43) tmp = t_1; elseif (b <= -4.9e-54) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= 4100000000.0) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); 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 <= -2.6e+43) tmp = t_1; elseif (b <= -4.9e-54) tmp = a * ((b * i) - (x * t)); elseif (b <= 4100000000.0) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.6e+43], t$95$1, If[LessEqual[b, -4.9e-54], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4100000000.0], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $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 -2.6 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.9 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 4100000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.60000000000000021e43 or 4.1e9 < b Initial program 73.7%
Taylor expanded in c around inf 75.5%
*-commutative75.5%
associate-*r*73.9%
*-commutative73.9%
associate-*r*75.6%
Simplified75.6%
Taylor expanded in b around inf 63.5%
if -2.60000000000000021e43 < b < -4.90000000000000021e-54Initial program 84.3%
Taylor expanded in a around inf 79.6%
mul-1-neg79.6%
+-commutative79.6%
unsub-neg79.6%
*-commutative79.6%
*-commutative79.6%
associate-*r*79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in a around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if -4.90000000000000021e-54 < b < 4.1e9Initial program 65.1%
+-commutative65.1%
fma-define65.9%
*-commutative65.9%
*-commutative65.9%
cancel-sign-sub-inv65.9%
cancel-sign-sub65.9%
fmm-def66.7%
distribute-rgt-neg-out66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in j around inf 45.7%
*-commutative45.7%
*-commutative45.7%
Simplified45.7%
Final simplification54.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -8.5e-15) (* a (- (+ (* b i) (/ (* x (* y z)) a)) (* x t))) (+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.5e-15) {
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-8.5d-15)) then
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t))
else
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -8.5e-15) {
tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t));
} else {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -8.5e-15: tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t)) else: tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -8.5e-15) tmp = Float64(a * Float64(Float64(Float64(b * i) + Float64(Float64(x * Float64(y * z)) / a)) - Float64(x * t))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -8.5e-15) tmp = a * (((b * i) + ((x * (y * z)) / a)) - (x * t)); else tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -8.5e-15], N[(a * N[(N[(N[(b * i), $MachinePrecision] + N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-15}:\\
\;\;\;\;a \cdot \left(\left(b \cdot i + \frac{x \cdot \left(y \cdot z\right)}{a}\right) - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if a < -8.50000000000000007e-15Initial program 64.0%
Taylor expanded in c around inf 64.0%
*-commutative64.0%
associate-*r*61.6%
*-commutative61.6%
associate-*r*60.4%
Simplified60.4%
Taylor expanded in a around inf 75.2%
sub-neg75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
+-commutative75.2%
*-commutative75.2%
associate-*r*72.8%
*-commutative72.8%
neg-mul-172.8%
Simplified72.8%
Taylor expanded in c around 0 72.8%
if -8.50000000000000007e-15 < a Initial program 73.3%
cancel-sign-sub-inv73.3%
cancel-sign-sub73.3%
*-commutative73.3%
fmm-def73.9%
distribute-rgt-neg-in73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in z around inf 65.3%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.16e+216)
(* z (- (* b c)))
(if (<= z 2.4e+94)
(* a (- (* b i) (* x t)))
(if (<= z 1.16e+160) (* z (* x y)) (* c (* 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 (z <= -1.16e+216) {
tmp = z * -(b * c);
} else if (z <= 2.4e+94) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.16e+160) {
tmp = z * (x * y);
} else {
tmp = c * (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 (z <= (-1.16d+216)) then
tmp = z * -(b * c)
else if (z <= 2.4d+94) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.16d+160) then
tmp = z * (x * y)
else
tmp = c * (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 (z <= -1.16e+216) {
tmp = z * -(b * c);
} else if (z <= 2.4e+94) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.16e+160) {
tmp = z * (x * y);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.16e+216: tmp = z * -(b * c) elif z <= 2.4e+94: tmp = a * ((b * i) - (x * t)) elif z <= 1.16e+160: tmp = z * (x * y) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.16e+216) tmp = Float64(z * Float64(-Float64(b * c))); elseif (z <= 2.4e+94) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.16e+160) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.16e+216) tmp = z * -(b * c); elseif (z <= 2.4e+94) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.16e+160) tmp = z * (x * y); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.16e+216], N[(z * (-N[(b * c), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, 2.4e+94], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.16e+160], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.16 \cdot 10^{+216}:\\
\;\;\;\;z \cdot \left(-b \cdot c\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+94}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.16 \cdot 10^{+160}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if z < -1.16e216Initial program 52.0%
Taylor expanded in a around inf 36.6%
mul-1-neg36.6%
+-commutative36.6%
unsub-neg36.6%
*-commutative36.6%
*-commutative36.6%
associate-*r*40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in z around inf 83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in y around 0 56.9%
neg-mul-156.9%
distribute-lft-neg-in56.9%
*-commutative56.9%
Simplified56.9%
if -1.16e216 < z < 2.39999999999999983e94Initial program 74.1%
Taylor expanded in a around inf 74.1%
mul-1-neg74.1%
+-commutative74.1%
unsub-neg74.1%
*-commutative74.1%
*-commutative74.1%
associate-*r*73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in a around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
if 2.39999999999999983e94 < z < 1.16000000000000006e160Initial program 74.5%
Taylor expanded in a around inf 64.0%
mul-1-neg64.0%
+-commutative64.0%
unsub-neg64.0%
*-commutative64.0%
*-commutative64.0%
associate-*r*64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in y around inf 53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in z around inf 45.3%
associate-*r*54.7%
*-commutative54.7%
Simplified54.7%
if 1.16000000000000006e160 < z Initial program 59.4%
+-commutative59.4%
fma-define63.1%
*-commutative63.1%
*-commutative63.1%
cancel-sign-sub-inv63.1%
cancel-sign-sub63.1%
fmm-def63.1%
distribute-rgt-neg-out63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in c around inf 66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in t around 0 66.3%
mul-1-neg66.3%
distribute-rgt-neg-in66.3%
Simplified66.3%
Final simplification47.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.6e-15) (not (<= a 9.5e+59))) (* a (- (* b i) (* x t))) (* 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 ((a <= -1.6e-15) || !(a <= 9.5e+59)) {
tmp = a * ((b * i) - (x * t));
} 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 ((a <= (-1.6d-15)) .or. (.not. (a <= 9.5d+59))) then
tmp = a * ((b * i) - (x * t))
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 ((a <= -1.6e-15) || !(a <= 9.5e+59)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.6e-15) or not (a <= 9.5e+59): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.6e-15) || !(a <= 9.5e+59)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); 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 ((a <= -1.6e-15) || ~((a <= 9.5e+59))) tmp = a * ((b * i) - (x * t)); 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[a, -1.6e-15], N[Not[LessEqual[a, 9.5e+59]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.6 \cdot 10^{-15} \lor \neg \left(a \leq 9.5 \cdot 10^{+59}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -1.6e-15 or 9.50000000000000023e59 < a Initial program 62.1%
Taylor expanded in a around inf 67.4%
mul-1-neg67.4%
+-commutative67.4%
unsub-neg67.4%
*-commutative67.4%
*-commutative67.4%
associate-*r*67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in a around inf 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
Simplified55.5%
if -1.6e-15 < a < 9.50000000000000023e59Initial program 79.1%
+-commutative79.1%
fma-define81.5%
*-commutative81.5%
*-commutative81.5%
cancel-sign-sub-inv81.5%
cancel-sign-sub81.5%
fmm-def81.5%
distribute-rgt-neg-out81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around inf 48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Final simplification52.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.3e+44) (not (<= b 8.5e-196))) (* b (- (* a i) (* z c))) (* 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 ((b <= -1.3e+44) || !(b <= 8.5e-196)) {
tmp = b * ((a * i) - (z * c));
} 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 ((b <= (-1.3d+44)) .or. (.not. (b <= 8.5d-196))) then
tmp = b * ((a * i) - (z * c))
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 ((b <= -1.3e+44) || !(b <= 8.5e-196)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.3e+44) or not (b <= 8.5e-196): tmp = b * ((a * i) - (z * c)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.3e+44) || !(b <= 8.5e-196)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); 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 ((b <= -1.3e+44) || ~((b <= 8.5e-196))) tmp = b * ((a * i) - (z * c)); 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[b, -1.3e+44], N[Not[LessEqual[b, 8.5e-196]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{+44} \lor \neg \left(b \leq 8.5 \cdot 10^{-196}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if b < -1.3e44 or 8.50000000000000004e-196 < b Initial program 72.3%
Taylor expanded in c around inf 70.8%
*-commutative70.8%
associate-*r*68.9%
*-commutative68.9%
associate-*r*71.2%
Simplified71.2%
Taylor expanded in b around inf 53.7%
if -1.3e44 < b < 8.50000000000000004e-196Initial program 67.3%
Taylor expanded in a around inf 73.7%
mul-1-neg73.7%
+-commutative73.7%
unsub-neg73.7%
*-commutative73.7%
*-commutative73.7%
associate-*r*74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in a around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
Simplified39.2%
Final simplification48.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -9.2e+118) (not (<= c 1e+149))) (* t (* c j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -9.2e+118) || !(c <= 1e+149)) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-9.2d+118)) .or. (.not. (c <= 1d+149))) then
tmp = t * (c * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -9.2e+118) || !(c <= 1e+149)) {
tmp = t * (c * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -9.2e+118) or not (c <= 1e+149): tmp = t * (c * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -9.2e+118) || !(c <= 1e+149)) tmp = Float64(t * Float64(c * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -9.2e+118) || ~((c <= 1e+149))) tmp = t * (c * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -9.2e+118], N[Not[LessEqual[c, 1e+149]], $MachinePrecision]], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9.2 \cdot 10^{+118} \lor \neg \left(c \leq 10^{+149}\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -9.20000000000000063e118 or 1.00000000000000005e149 < c Initial program 61.7%
+-commutative61.7%
fma-define64.6%
*-commutative64.6%
*-commutative64.6%
cancel-sign-sub-inv64.6%
cancel-sign-sub64.6%
fmm-def64.6%
distribute-rgt-neg-out64.6%
remove-double-neg64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in c around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in t around inf 41.8%
associate-*r*45.8%
*-commutative45.8%
Simplified45.8%
if -9.20000000000000063e118 < c < 1.00000000000000005e149Initial program 73.7%
+-commutative73.7%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def76.9%
distribute-rgt-neg-out76.9%
remove-double-neg76.9%
*-commutative76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in i around inf 40.5%
distribute-lft-out--40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in y around 0 24.3%
Final simplification30.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3.7e-72) (not (<= a 1.65e-105))) (* a (* b 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 ((a <= -3.7e-72) || !(a <= 1.65e-105)) {
tmp = a * (b * 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 ((a <= (-3.7d-72)) .or. (.not. (a <= 1.65d-105))) then
tmp = a * (b * 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 ((a <= -3.7e-72) || !(a <= 1.65e-105)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3.7e-72) or not (a <= 1.65e-105): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3.7e-72) || !(a <= 1.65e-105)) tmp = Float64(a * Float64(b * 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 ((a <= -3.7e-72) || ~((a <= 1.65e-105))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3.7e-72], N[Not[LessEqual[a, 1.65e-105]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{-72} \lor \neg \left(a \leq 1.65 \cdot 10^{-105}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -3.6999999999999998e-72 or 1.6499999999999999e-105 < a Initial program 66.8%
+-commutative66.8%
fma-define69.2%
*-commutative69.2%
*-commutative69.2%
cancel-sign-sub-inv69.2%
cancel-sign-sub69.2%
fmm-def70.4%
distribute-rgt-neg-out70.4%
remove-double-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in i around inf 45.4%
distribute-lft-out--45.4%
*-commutative45.4%
Simplified45.4%
Taylor expanded in y around 0 29.0%
if -3.6999999999999998e-72 < a < 1.6499999999999999e-105Initial program 77.3%
+-commutative77.3%
fma-define79.6%
*-commutative79.6%
*-commutative79.6%
cancel-sign-sub-inv79.6%
cancel-sign-sub79.6%
fmm-def79.6%
distribute-rgt-neg-out79.6%
remove-double-neg79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 52.3%
*-commutative52.3%
*-commutative52.3%
Simplified52.3%
Taylor expanded in t around inf 31.5%
Final simplification29.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -6.8e+89) (* c (* t j)) (if (<= t 700.0) (* x (* y z)) (* t (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.8e+89) {
tmp = c * (t * j);
} else if (t <= 700.0) {
tmp = x * (y * z);
} else {
tmp = t * (c * 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 (t <= (-6.8d+89)) then
tmp = c * (t * j)
else if (t <= 700.0d0) then
tmp = x * (y * z)
else
tmp = t * (c * 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 (t <= -6.8e+89) {
tmp = c * (t * j);
} else if (t <= 700.0) {
tmp = x * (y * z);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.8e+89: tmp = c * (t * j) elif t <= 700.0: tmp = x * (y * z) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.8e+89) tmp = Float64(c * Float64(t * j)); elseif (t <= 700.0) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.8e+89) tmp = c * (t * j); elseif (t <= 700.0) tmp = x * (y * z); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.8e+89], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 700.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.8 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq 700:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -6.8000000000000004e89Initial program 46.1%
+-commutative46.1%
fma-define50.1%
*-commutative50.1%
*-commutative50.1%
cancel-sign-sub-inv50.1%
cancel-sign-sub50.1%
fmm-def54.1%
distribute-rgt-neg-out54.1%
remove-double-neg54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
Taylor expanded in c around inf 43.2%
*-commutative43.2%
*-commutative43.2%
Simplified43.2%
Taylor expanded in t around inf 35.4%
if -6.8000000000000004e89 < t < 700Initial program 79.6%
Taylor expanded in b around 0 55.1%
Taylor expanded in z around inf 29.7%
*-commutative29.7%
Simplified29.7%
if 700 < t Initial program 67.1%
+-commutative67.1%
fma-define68.9%
*-commutative68.9%
*-commutative68.9%
cancel-sign-sub-inv68.9%
cancel-sign-sub68.9%
fmm-def68.9%
distribute-rgt-neg-out68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in c around inf 54.7%
*-commutative54.7%
*-commutative54.7%
Simplified54.7%
Taylor expanded in t around inf 38.6%
associate-*r*38.9%
*-commutative38.9%
Simplified38.9%
Final simplification32.7%
(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 70.4%
+-commutative70.4%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
fmm-def73.5%
distribute-rgt-neg-out73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in i around inf 36.8%
distribute-lft-out--36.8%
*-commutative36.8%
Simplified36.8%
Taylor expanded in y around 0 20.5%
(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 2024165
(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)))))