
(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 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 88.0%
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-define8.2%
*-commutative8.2%
*-commutative8.2%
cancel-sign-sub-inv8.2%
cancel-sign-sub8.2%
fmm-def10.2%
distribute-rgt-neg-out10.2%
remove-double-neg10.2%
*-commutative10.2%
*-commutative10.2%
Simplified10.2%
Taylor expanded in y around inf 57.7%
+-commutative57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
Final simplification82.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= i -3e+160)
(* i (* a (- b (* j (/ y a)))))
(if (<= i -7e+85)
(- t_1 (* i (- (* (* b c) (/ z i)) (* a b))))
(if (<= i 3.8e-79)
(+ (- t_1 (* z (* b c))) t_2)
(+ (* (* a b) (- i (* t (/ x b)))) 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));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (i <= -3e+160) {
tmp = i * (a * (b - (j * (y / a))));
} else if (i <= -7e+85) {
tmp = t_1 - (i * (((b * c) * (z / i)) - (a * b)));
} else if (i <= 3.8e-79) {
tmp = (t_1 - (z * (b * c))) + t_2;
} else {
tmp = ((a * b) * (i - (t * (x / b)))) + 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))
t_2 = j * ((t * c) - (y * i))
if (i <= (-3d+160)) then
tmp = i * (a * (b - (j * (y / a))))
else if (i <= (-7d+85)) then
tmp = t_1 - (i * (((b * c) * (z / i)) - (a * b)))
else if (i <= 3.8d-79) then
tmp = (t_1 - (z * (b * c))) + t_2
else
tmp = ((a * b) * (i - (t * (x / b)))) + 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));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (i <= -3e+160) {
tmp = i * (a * (b - (j * (y / a))));
} else if (i <= -7e+85) {
tmp = t_1 - (i * (((b * c) * (z / i)) - (a * b)));
} else if (i <= 3.8e-79) {
tmp = (t_1 - (z * (b * c))) + t_2;
} else {
tmp = ((a * b) * (i - (t * (x / b)))) + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if i <= -3e+160: tmp = i * (a * (b - (j * (y / a)))) elif i <= -7e+85: tmp = t_1 - (i * (((b * c) * (z / i)) - (a * b))) elif i <= 3.8e-79: tmp = (t_1 - (z * (b * c))) + t_2 else: tmp = ((a * b) * (i - (t * (x / b)))) + t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (i <= -3e+160) tmp = Float64(i * Float64(a * Float64(b - Float64(j * Float64(y / a))))); elseif (i <= -7e+85) tmp = Float64(t_1 - Float64(i * Float64(Float64(Float64(b * c) * Float64(z / i)) - Float64(a * b)))); elseif (i <= 3.8e-79) tmp = Float64(Float64(t_1 - Float64(z * Float64(b * c))) + t_2); else tmp = Float64(Float64(Float64(a * b) * Float64(i - Float64(t * Float64(x / b)))) + 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)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (i <= -3e+160) tmp = i * (a * (b - (j * (y / a)))); elseif (i <= -7e+85) tmp = t_1 - (i * (((b * c) * (z / i)) - (a * b))); elseif (i <= 3.8e-79) tmp = (t_1 - (z * (b * c))) + t_2; else tmp = ((a * b) * (i - (t * (x / b)))) + t_2; 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3e+160], N[(i * N[(a * N[(b - N[(j * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7e+85], N[(t$95$1 - N[(i * N[(N[(N[(b * c), $MachinePrecision] * N[(z / i), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.8e-79], N[(N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(N[(a * b), $MachinePrecision] * N[(i - N[(t * N[(x / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;i \leq -3 \cdot 10^{+160}:\\
\;\;\;\;i \cdot \left(a \cdot \left(b - j \cdot \frac{y}{a}\right)\right)\\
\mathbf{elif}\;i \leq -7 \cdot 10^{+85}:\\
\;\;\;\;t\_1 - i \cdot \left(\left(b \cdot c\right) \cdot \frac{z}{i} - a \cdot b\right)\\
\mathbf{elif}\;i \leq 3.8 \cdot 10^{-79}:\\
\;\;\;\;\left(t\_1 - z \cdot \left(b \cdot c\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot b\right) \cdot \left(i - t \cdot \frac{x}{b}\right) + t\_2\\
\end{array}
\end{array}
if i < -2.9999999999999999e160Initial program 55.5%
+-commutative55.5%
fma-define55.5%
*-commutative55.5%
*-commutative55.5%
cancel-sign-sub-inv55.5%
cancel-sign-sub55.5%
fmm-def58.3%
distribute-rgt-neg-out58.3%
remove-double-neg58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in i around inf 80.7%
distribute-lft-out--80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in a around inf 80.7%
mul-1-neg80.7%
unsub-neg80.7%
associate-/l*80.7%
Simplified80.7%
if -2.9999999999999999e160 < i < -7.0000000000000001e85Initial program 75.4%
Taylor expanded in j around 0 70.5%
Taylor expanded in i around inf 75.6%
mul-1-neg75.6%
+-commutative75.6%
unsub-neg75.6%
associate-*r*83.0%
associate-/l*82.9%
Simplified82.9%
if -7.0000000000000001e85 < i < 3.8000000000000001e-79Initial program 75.8%
Taylor expanded in c around inf 75.1%
*-commutative75.1%
*-commutative75.1%
associate-*r*77.3%
*-commutative77.3%
Simplified77.3%
if 3.8000000000000001e-79 < i Initial program 70.3%
cancel-sign-sub-inv70.3%
cancel-sign-sub70.3%
*-commutative70.3%
fmm-def70.3%
distribute-rgt-neg-in70.3%
remove-double-neg70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in b around inf 70.4%
Taylor expanded in a around inf 72.8%
associate-*r*73.9%
mul-1-neg73.9%
unsub-neg73.9%
associate-/l*72.8%
Simplified72.8%
Final simplification76.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -9e+146)
(* z (* b (- c)))
(if (<= c -2.2e+45)
(* j (* t c))
(if (<= c 7e-231)
(* (* y i) (- j))
(if (<= c 5.2e-66)
(* i (* a b))
(if (<= c 1e+52)
(* y (* x z))
(if (<= c 3e+197) (* t (* c j)) (* 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 (c <= -9e+146) {
tmp = z * (b * -c);
} else if (c <= -2.2e+45) {
tmp = j * (t * c);
} else if (c <= 7e-231) {
tmp = (y * i) * -j;
} else if (c <= 5.2e-66) {
tmp = i * (a * b);
} else if (c <= 1e+52) {
tmp = y * (x * z);
} else if (c <= 3e+197) {
tmp = t * (c * j);
} 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 (c <= (-9d+146)) then
tmp = z * (b * -c)
else if (c <= (-2.2d+45)) then
tmp = j * (t * c)
else if (c <= 7d-231) then
tmp = (y * i) * -j
else if (c <= 5.2d-66) then
tmp = i * (a * b)
else if (c <= 1d+52) then
tmp = y * (x * z)
else if (c <= 3d+197) then
tmp = t * (c * j)
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 (c <= -9e+146) {
tmp = z * (b * -c);
} else if (c <= -2.2e+45) {
tmp = j * (t * c);
} else if (c <= 7e-231) {
tmp = (y * i) * -j;
} else if (c <= 5.2e-66) {
tmp = i * (a * b);
} else if (c <= 1e+52) {
tmp = y * (x * z);
} else if (c <= 3e+197) {
tmp = t * (c * j);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -9e+146: tmp = z * (b * -c) elif c <= -2.2e+45: tmp = j * (t * c) elif c <= 7e-231: tmp = (y * i) * -j elif c <= 5.2e-66: tmp = i * (a * b) elif c <= 1e+52: tmp = y * (x * z) elif c <= 3e+197: tmp = t * (c * j) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -9e+146) tmp = Float64(z * Float64(b * Float64(-c))); elseif (c <= -2.2e+45) tmp = Float64(j * Float64(t * c)); elseif (c <= 7e-231) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 5.2e-66) tmp = Float64(i * Float64(a * b)); elseif (c <= 1e+52) tmp = Float64(y * Float64(x * z)); elseif (c <= 3e+197) tmp = Float64(t * Float64(c * j)); 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 (c <= -9e+146) tmp = z * (b * -c); elseif (c <= -2.2e+45) tmp = j * (t * c); elseif (c <= 7e-231) tmp = (y * i) * -j; elseif (c <= 5.2e-66) tmp = i * (a * b); elseif (c <= 1e+52) tmp = y * (x * z); elseif (c <= 3e+197) tmp = t * (c * j); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -9e+146], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.2e+45], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7e-231], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 5.2e-66], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e+52], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e+197], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9 \cdot 10^{+146}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq -2.2 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-231}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 5.2 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+197}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if c < -9.00000000000000051e146Initial program 69.8%
+-commutative69.8%
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 c around inf 81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in z around inf 78.0%
neg-mul-178.0%
+-commutative78.0%
unsub-neg78.0%
associate-/l*78.0%
associate-/l*77.0%
Simplified77.0%
Taylor expanded in j around 0 67.0%
neg-mul-167.0%
distribute-lft-neg-in67.0%
*-commutative67.0%
Simplified67.0%
if -9.00000000000000051e146 < c < -2.2e45Initial program 67.1%
+-commutative67.1%
fma-define67.1%
*-commutative67.1%
*-commutative67.1%
cancel-sign-sub-inv67.1%
cancel-sign-sub67.1%
fmm-def67.1%
distribute-rgt-neg-out67.1%
remove-double-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in j around inf 60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in t around inf 46.7%
*-commutative46.7%
associate-*l*55.5%
*-commutative55.5%
Simplified55.5%
if -2.2e45 < c < 7.0000000000000002e-231Initial program 70.8%
+-commutative70.8%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fmm-def73.1%
distribute-rgt-neg-out73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in j around inf 37.9%
*-commutative37.9%
*-commutative37.9%
Simplified37.9%
Taylor expanded in t around 0 34.4%
*-commutative34.4%
*-commutative34.4%
associate-*l*34.4%
*-commutative34.4%
associate-*r*35.5%
neg-mul-135.5%
Simplified35.5%
if 7.0000000000000002e-231 < c < 5.1999999999999998e-66Initial program 80.7%
+-commutative80.7%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in i around inf 51.0%
distribute-lft-out--51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in y around 0 48.3%
if 5.1999999999999998e-66 < c < 9.9999999999999999e51Initial program 72.1%
Taylor expanded in b around 0 72.8%
Taylor expanded in t around 0 53.8%
Taylor expanded in i around 0 38.2%
associate-*r*41.9%
*-commutative41.9%
associate-*r*45.6%
Simplified45.6%
if 9.9999999999999999e51 < c < 3.0000000000000002e197Initial program 63.8%
+-commutative63.8%
fma-define63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
fmm-def63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in c around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in t around inf 35.4%
associate-*r*44.1%
Simplified44.1%
if 3.0000000000000002e197 < c Initial program 72.4%
+-commutative72.4%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
fmm-def76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in c around inf 79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in t around 0 51.3%
neg-mul-151.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= c -1.45e+147)
t_1
(if (<= c -1.3e+45)
(* j (* t c))
(if (<= c 1.46e-230)
(* (* y i) (- j))
(if (<= c 3.5e-67)
(* i (* a b))
(if (<= c 2.25e+54)
(* y (* x z))
(if (<= c 1.2e+198) (* t (* c j)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (c <= -1.45e+147) {
tmp = t_1;
} else if (c <= -1.3e+45) {
tmp = j * (t * c);
} else if (c <= 1.46e-230) {
tmp = (y * i) * -j;
} else if (c <= 3.5e-67) {
tmp = i * (a * b);
} else if (c <= 2.25e+54) {
tmp = y * (x * z);
} else if (c <= 1.2e+198) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (c <= (-1.45d+147)) then
tmp = t_1
else if (c <= (-1.3d+45)) then
tmp = j * (t * c)
else if (c <= 1.46d-230) then
tmp = (y * i) * -j
else if (c <= 3.5d-67) then
tmp = i * (a * b)
else if (c <= 2.25d+54) then
tmp = y * (x * z)
else if (c <= 1.2d+198) then
tmp = t * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (c <= -1.45e+147) {
tmp = t_1;
} else if (c <= -1.3e+45) {
tmp = j * (t * c);
} else if (c <= 1.46e-230) {
tmp = (y * i) * -j;
} else if (c <= 3.5e-67) {
tmp = i * (a * b);
} else if (c <= 2.25e+54) {
tmp = y * (x * z);
} else if (c <= 1.2e+198) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if c <= -1.45e+147: tmp = t_1 elif c <= -1.3e+45: tmp = j * (t * c) elif c <= 1.46e-230: tmp = (y * i) * -j elif c <= 3.5e-67: tmp = i * (a * b) elif c <= 2.25e+54: tmp = y * (x * z) elif c <= 1.2e+198: tmp = t * (c * j) 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 (c <= -1.45e+147) tmp = t_1; elseif (c <= -1.3e+45) tmp = Float64(j * Float64(t * c)); elseif (c <= 1.46e-230) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 3.5e-67) tmp = Float64(i * Float64(a * b)); elseif (c <= 2.25e+54) tmp = Float64(y * Float64(x * z)); elseif (c <= 1.2e+198) tmp = Float64(t * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (c <= -1.45e+147) tmp = t_1; elseif (c <= -1.3e+45) tmp = j * (t * c); elseif (c <= 1.46e-230) tmp = (y * i) * -j; elseif (c <= 3.5e-67) tmp = i * (a * b); elseif (c <= 2.25e+54) tmp = y * (x * z); elseif (c <= 1.2e+198) tmp = t * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.45e+147], t$95$1, If[LessEqual[c, -1.3e+45], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.46e-230], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 3.5e-67], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.25e+54], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.2e+198], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -1.45 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 1.46 \cdot 10^{-230}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 3.5 \cdot 10^{-67}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 2.25 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 1.2 \cdot 10^{+198}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.4499999999999999e147 or 1.2000000000000001e198 < c Initial program 70.9%
+-commutative70.9%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
fmm-def72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in t around 0 58.1%
neg-mul-158.1%
*-commutative58.1%
distribute-rgt-neg-in58.1%
Simplified58.1%
if -1.4499999999999999e147 < c < -1.30000000000000004e45Initial program 67.1%
+-commutative67.1%
fma-define67.1%
*-commutative67.1%
*-commutative67.1%
cancel-sign-sub-inv67.1%
cancel-sign-sub67.1%
fmm-def67.1%
distribute-rgt-neg-out67.1%
remove-double-neg67.1%
*-commutative67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in j around inf 60.3%
*-commutative60.3%
*-commutative60.3%
Simplified60.3%
Taylor expanded in t around inf 46.7%
*-commutative46.7%
associate-*l*55.5%
*-commutative55.5%
Simplified55.5%
if -1.30000000000000004e45 < c < 1.4599999999999999e-230Initial program 70.8%
+-commutative70.8%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fmm-def73.1%
distribute-rgt-neg-out73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in j around inf 37.9%
*-commutative37.9%
*-commutative37.9%
Simplified37.9%
Taylor expanded in t around 0 34.4%
*-commutative34.4%
*-commutative34.4%
associate-*l*34.4%
*-commutative34.4%
associate-*r*35.5%
neg-mul-135.5%
Simplified35.5%
if 1.4599999999999999e-230 < c < 3.5e-67Initial program 80.7%
+-commutative80.7%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in i around inf 51.0%
distribute-lft-out--51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in y around 0 48.3%
if 3.5e-67 < c < 2.24999999999999992e54Initial program 72.1%
Taylor expanded in b around 0 72.8%
Taylor expanded in t around 0 53.8%
Taylor expanded in i around 0 38.2%
associate-*r*41.9%
*-commutative41.9%
associate-*r*45.6%
Simplified45.6%
if 2.24999999999999992e54 < c < 1.2000000000000001e198Initial program 63.8%
+-commutative63.8%
fma-define63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
fmm-def63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in c around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in t around inf 35.4%
associate-*r*44.1%
Simplified44.1%
Final simplification45.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= z -1.6e+197)
(- (- (* y (* x z)) (* i (* y j))) (* z (* b c)))
(if (<= z -2.8e+117)
(- t_2 (* b (* z c)))
(if (<= z -6.4e-99)
(+ t_2 t_1)
(if (<= z 1080000000000.0)
(+ t_1 (* a (* b i)))
(* b (* 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 t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (z <= -1.6e+197) {
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c));
} else if (z <= -2.8e+117) {
tmp = t_2 - (b * (z * c));
} else if (z <= -6.4e-99) {
tmp = t_2 + t_1;
} else if (z <= 1080000000000.0) {
tmp = t_1 + (a * (b * i));
} else {
tmp = b * (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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (z <= (-1.6d+197)) then
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c))
else if (z <= (-2.8d+117)) then
tmp = t_2 - (b * (z * c))
else if (z <= (-6.4d-99)) then
tmp = t_2 + t_1
else if (z <= 1080000000000.0d0) then
tmp = t_1 + (a * (b * i))
else
tmp = b * (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 t_1 = j * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (z <= -1.6e+197) {
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c));
} else if (z <= -2.8e+117) {
tmp = t_2 - (b * (z * c));
} else if (z <= -6.4e-99) {
tmp = t_2 + t_1;
} else if (z <= 1080000000000.0) {
tmp = t_1 + (a * (b * i));
} else {
tmp = b * (z * (((x * y) / b) - c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if z <= -1.6e+197: tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c)) elif z <= -2.8e+117: tmp = t_2 - (b * (z * c)) elif z <= -6.4e-99: tmp = t_2 + t_1 elif z <= 1080000000000.0: tmp = t_1 + (a * (b * i)) else: tmp = b * (z * (((x * y) / b) - c)) 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (z <= -1.6e+197) tmp = Float64(Float64(Float64(y * Float64(x * z)) - Float64(i * Float64(y * j))) - Float64(z * Float64(b * c))); elseif (z <= -2.8e+117) tmp = Float64(t_2 - Float64(b * Float64(z * c))); elseif (z <= -6.4e-99) tmp = Float64(t_2 + t_1); elseif (z <= 1080000000000.0) tmp = Float64(t_1 + Float64(a * Float64(b * i))); else tmp = Float64(b * Float64(z * Float64(Float64(Float64(x * y) / b) - c))); 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (z <= -1.6e+197) tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c)); elseif (z <= -2.8e+117) tmp = t_2 - (b * (z * c)); elseif (z <= -6.4e-99) tmp = t_2 + t_1; elseif (z <= 1080000000000.0) tmp = t_1 + (a * (b * i)); else tmp = b * (z * (((x * y) / b) - c)); 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+197], N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.8e+117], N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.4e-99], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[z, 1080000000000.0], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+197}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) - i \cdot \left(y \cdot j\right)\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{+117}:\\
\;\;\;\;t\_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;z \leq -6.4 \cdot 10^{-99}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;z \leq 1080000000000:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(\frac{x \cdot y}{b} - c\right)\right)\\
\end{array}
\end{array}
if z < -1.5999999999999999e197Initial program 55.1%
Taylor expanded in c around inf 50.6%
*-commutative50.6%
*-commutative50.6%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in t around 0 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
*-commutative55.5%
associate-*l*64.4%
*-commutative64.4%
*-commutative64.4%
associate-*r*81.9%
*-commutative81.9%
Simplified81.9%
if -1.5999999999999999e197 < z < -2.79999999999999997e117Initial program 73.0%
Taylor expanded in j around 0 73.7%
Taylor expanded in i around 0 73.9%
*-commutative73.9%
Simplified73.9%
if -2.79999999999999997e117 < z < -6.4000000000000001e-99Initial program 69.1%
Taylor expanded in b around 0 64.0%
if -6.4000000000000001e-99 < z < 1.08e12Initial program 77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
*-commutative77.5%
fmm-def77.5%
distribute-rgt-neg-in77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in i around inf 72.6%
if 1.08e12 < z Initial 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 b around inf 69.4%
Taylor expanded in z around inf 67.9%
Taylor expanded in z around inf 72.9%
Final simplification72.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))))
(if (<= c -2.4e+147)
t_1
(if (<= c -9e+29)
(* j (* t c))
(if (<= c 8.5e-68)
(* i (* a b))
(if (<= c 8.2e+48)
(* y (* x z))
(if (<= c 6.6e+197) (* t (* c j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (c <= -2.4e+147) {
tmp = t_1;
} else if (c <= -9e+29) {
tmp = j * (t * c);
} else if (c <= 8.5e-68) {
tmp = i * (a * b);
} else if (c <= 8.2e+48) {
tmp = y * (x * z);
} else if (c <= 6.6e+197) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (z * -b)
if (c <= (-2.4d+147)) then
tmp = t_1
else if (c <= (-9d+29)) then
tmp = j * (t * c)
else if (c <= 8.5d-68) then
tmp = i * (a * b)
else if (c <= 8.2d+48) then
tmp = y * (x * z)
else if (c <= 6.6d+197) then
tmp = t * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double tmp;
if (c <= -2.4e+147) {
tmp = t_1;
} else if (c <= -9e+29) {
tmp = j * (t * c);
} else if (c <= 8.5e-68) {
tmp = i * (a * b);
} else if (c <= 8.2e+48) {
tmp = y * (x * z);
} else if (c <= 6.6e+197) {
tmp = t * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) tmp = 0 if c <= -2.4e+147: tmp = t_1 elif c <= -9e+29: tmp = j * (t * c) elif c <= 8.5e-68: tmp = i * (a * b) elif c <= 8.2e+48: tmp = y * (x * z) elif c <= 6.6e+197: tmp = t * (c * j) 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 (c <= -2.4e+147) tmp = t_1; elseif (c <= -9e+29) tmp = Float64(j * Float64(t * c)); elseif (c <= 8.5e-68) tmp = Float64(i * Float64(a * b)); elseif (c <= 8.2e+48) tmp = Float64(y * Float64(x * z)); elseif (c <= 6.6e+197) tmp = Float64(t * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); tmp = 0.0; if (c <= -2.4e+147) tmp = t_1; elseif (c <= -9e+29) tmp = j * (t * c); elseif (c <= 8.5e-68) tmp = i * (a * b); elseif (c <= 8.2e+48) tmp = y * (x * z); elseif (c <= 6.6e+197) tmp = t * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.4e+147], t$95$1, If[LessEqual[c, -9e+29], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.5e-68], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.2e+48], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.6e+197], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -2.4 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -9 \cdot 10^{+29}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-68}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 8.2 \cdot 10^{+48}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 6.6 \cdot 10^{+197}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.40000000000000002e147 or 6.5999999999999993e197 < c Initial program 70.9%
+-commutative70.9%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
fmm-def72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in t around 0 58.1%
neg-mul-158.1%
*-commutative58.1%
distribute-rgt-neg-in58.1%
Simplified58.1%
if -2.40000000000000002e147 < c < -9.0000000000000005e29Initial program 65.6%
+-commutative65.6%
fma-define65.6%
*-commutative65.6%
*-commutative65.6%
cancel-sign-sub-inv65.6%
cancel-sign-sub65.6%
fmm-def65.6%
distribute-rgt-neg-out65.6%
remove-double-neg65.6%
*-commutative65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in j around inf 59.4%
*-commutative59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in t around inf 42.9%
*-commutative42.9%
associate-*l*50.9%
*-commutative50.9%
Simplified50.9%
if -9.0000000000000005e29 < c < 8.50000000000000026e-68Initial program 74.1%
+-commutative74.1%
fma-define75.7%
*-commutative75.7%
*-commutative75.7%
cancel-sign-sub-inv75.7%
cancel-sign-sub75.7%
fmm-def76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in i around inf 55.0%
distribute-lft-out--55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in y around 0 35.1%
if 8.50000000000000026e-68 < c < 8.2000000000000005e48Initial program 72.1%
Taylor expanded in b around 0 72.8%
Taylor expanded in t around 0 53.8%
Taylor expanded in i around 0 38.2%
associate-*r*41.9%
*-commutative41.9%
associate-*r*45.6%
Simplified45.6%
if 8.2000000000000005e48 < c < 6.5999999999999993e197Initial program 63.8%
+-commutative63.8%
fma-define63.8%
*-commutative63.8%
*-commutative63.8%
cancel-sign-sub-inv63.8%
cancel-sign-sub63.8%
fmm-def63.8%
distribute-rgt-neg-out63.8%
remove-double-neg63.8%
*-commutative63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in c around inf 48.3%
*-commutative48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in t around inf 35.4%
associate-*r*44.1%
Simplified44.1%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -7.2e+44)
t_1
(if (<= c 2.05e-230)
(* (* y i) (- j))
(if (<= c 1.25e-68)
(* i (* a b))
(if (<= c 2.5e+52) (* y (* x z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -7.2e+44) {
tmp = t_1;
} else if (c <= 2.05e-230) {
tmp = (y * i) * -j;
} else if (c <= 1.25e-68) {
tmp = i * (a * b);
} else if (c <= 2.5e+52) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
if (c <= (-7.2d+44)) then
tmp = t_1
else if (c <= 2.05d-230) then
tmp = (y * i) * -j
else if (c <= 1.25d-68) then
tmp = i * (a * b)
else if (c <= 2.5d+52) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -7.2e+44) {
tmp = t_1;
} else if (c <= 2.05e-230) {
tmp = (y * i) * -j;
} else if (c <= 1.25e-68) {
tmp = i * (a * b);
} else if (c <= 2.5e+52) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -7.2e+44: tmp = t_1 elif c <= 2.05e-230: tmp = (y * i) * -j elif c <= 1.25e-68: tmp = i * (a * b) elif c <= 2.5e+52: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -7.2e+44) tmp = t_1; elseif (c <= 2.05e-230) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 1.25e-68) tmp = Float64(i * Float64(a * b)); elseif (c <= 2.5e+52) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -7.2e+44) tmp = t_1; elseif (c <= 2.05e-230) tmp = (y * i) * -j; elseif (c <= 1.25e-68) tmp = i * (a * b); elseif (c <= 2.5e+52) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7.2e+44], t$95$1, If[LessEqual[c, 2.05e-230], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 1.25e-68], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e+52], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -7.2 \cdot 10^{+44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{-230}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 1.25 \cdot 10^{-68}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{+52}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -7.2e44 or 2.5e52 < c Initial program 68.0%
+-commutative68.0%
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 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
if -7.2e44 < c < 2.0500000000000001e-230Initial program 70.8%
+-commutative70.8%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fmm-def73.1%
distribute-rgt-neg-out73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in j around inf 37.9%
*-commutative37.9%
*-commutative37.9%
Simplified37.9%
Taylor expanded in t around 0 34.4%
*-commutative34.4%
*-commutative34.4%
associate-*l*34.4%
*-commutative34.4%
associate-*r*35.5%
neg-mul-135.5%
Simplified35.5%
if 2.0500000000000001e-230 < c < 1.24999999999999993e-68Initial program 80.7%
+-commutative80.7%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in i around inf 51.0%
distribute-lft-out--51.0%
*-commutative51.0%
Simplified51.0%
Taylor expanded in y around 0 48.3%
if 1.24999999999999993e-68 < c < 2.5e52Initial program 72.1%
Taylor expanded in b around 0 72.8%
Taylor expanded in t around 0 53.8%
Taylor expanded in i around 0 38.2%
associate-*r*41.9%
*-commutative41.9%
associate-*r*45.6%
Simplified45.6%
Final simplification51.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -3.5e+111)
(- t_1 (* z (* b c)))
(if (<= j 2.3e-65)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(+ t_1 (* 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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.5e+111) {
tmp = t_1 - (z * (b * c));
} else if (j <= 2.3e-65) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + (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) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-3.5d+111)) then
tmp = t_1 - (z * (b * c))
else if (j <= 2.3d-65) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else
tmp = t_1 + (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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3.5e+111) {
tmp = t_1 - (z * (b * c));
} else if (j <= 2.3e-65) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3.5e+111: tmp = t_1 - (z * (b * c)) elif j <= 2.3e-65: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.5e+111) tmp = Float64(t_1 - Float64(z * Float64(b * c))); elseif (j <= 2.3e-65) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_1 + 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) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3.5e+111) tmp = t_1 - (z * (b * c)); elseif (j <= 2.3e-65) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); else tmp = t_1 + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e+111], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e-65], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.5 \cdot 10^{+111}:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{-65}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if j < -3.5000000000000002e111Initial program 73.1%
Taylor expanded in c around inf 75.8%
*-commutative75.8%
*-commutative75.8%
associate-*r*80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in x around 0 81.7%
*-commutative81.7%
*-commutative81.7%
associate-*r*86.8%
*-commutative86.8%
Simplified86.8%
if -3.5000000000000002e111 < j < 2.3e-65Initial program 75.5%
Taylor expanded in j around 0 73.4%
if 2.3e-65 < j Initial program 63.2%
cancel-sign-sub-inv63.2%
cancel-sign-sub63.2%
*-commutative63.2%
fmm-def64.4%
distribute-rgt-neg-in64.4%
remove-double-neg64.4%
*-commutative64.4%
*-commutative64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in z around inf 70.2%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= a -8.4e+108)
(+ t_1 (* a (* b i)))
(if (<= a 3e+111)
(+ t_1 (* z (- (* x y) (* b 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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (a <= -8.4e+108) {
tmp = t_1 + (a * (b * i));
} else if (a <= 3e+111) {
tmp = t_1 + (z * ((x * y) - (b * 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) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (a <= (-8.4d+108)) then
tmp = t_1 + (a * (b * i))
else if (a <= 3d+111) then
tmp = t_1 + (z * ((x * y) - (b * 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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (a <= -8.4e+108) {
tmp = t_1 + (a * (b * i));
} else if (a <= 3e+111) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if a <= -8.4e+108: tmp = t_1 + (a * (b * i)) elif a <= 3e+111: tmp = t_1 + (z * ((x * y) - (b * c))) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (a <= -8.4e+108) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (a <= 3e+111) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * 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) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (a <= -8.4e+108) tmp = t_1 + (a * (b * i)); elseif (a <= 3e+111) tmp = t_1 + (z * ((x * y) - (b * c))); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.4e+108], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3e+111], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;a \leq -8.4 \cdot 10^{+108}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 3 \cdot 10^{+111}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -8.40000000000000039e108Initial program 69.8%
cancel-sign-sub-inv69.8%
cancel-sign-sub69.8%
*-commutative69.8%
fmm-def69.8%
distribute-rgt-neg-in69.8%
remove-double-neg69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in i around inf 74.5%
if -8.40000000000000039e108 < a < 3e111Initial program 74.7%
cancel-sign-sub-inv74.7%
cancel-sign-sub74.7%
*-commutative74.7%
fmm-def74.7%
distribute-rgt-neg-in74.7%
remove-double-neg74.7%
*-commutative74.7%
*-commutative74.7%
*-commutative74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in z around inf 74.1%
if 3e111 < a Initial program 58.8%
Taylor expanded in j around 0 65.8%
Taylor expanded in a around -inf 64.0%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.4e+162)
(- (- (* y (* x z)) (* i (* y j))) (* z (* b c)))
(if (<= z 760000000000.0)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(* b (* 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 (z <= -2.4e+162) {
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c));
} else if (z <= 760000000000.0) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = b * (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 (z <= (-2.4d+162)) then
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c))
else if (z <= 760000000000.0d0) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else
tmp = b * (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 (z <= -2.4e+162) {
tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c));
} else if (z <= 760000000000.0) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = b * (z * (((x * y) / b) - c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.4e+162: tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c)) elif z <= 760000000000.0: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) else: tmp = b * (z * (((x * y) / b) - c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.4e+162) tmp = Float64(Float64(Float64(y * Float64(x * z)) - Float64(i * Float64(y * j))) - Float64(z * Float64(b * c))); elseif (z <= 760000000000.0) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); else tmp = Float64(b * Float64(z * Float64(Float64(Float64(x * y) / b) - c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.4e+162) tmp = ((y * (x * z)) - (i * (y * j))) - (z * (b * c)); elseif (z <= 760000000000.0) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); else tmp = b * (z * (((x * y) / b) - c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.4e+162], N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 760000000000.0], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+162}:\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) - i \cdot \left(y \cdot j\right)\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;z \leq 760000000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(\frac{x \cdot y}{b} - c\right)\right)\\
\end{array}
\end{array}
if z < -2.40000000000000009e162Initial program 62.8%
Taylor expanded in c around inf 59.7%
*-commutative59.7%
*-commutative59.7%
associate-*r*68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in t around 0 57.3%
+-commutative57.3%
mul-1-neg57.3%
unsub-neg57.3%
*-commutative57.3%
associate-*l*63.6%
*-commutative63.6%
*-commutative63.6%
associate-*r*75.6%
*-commutative75.6%
Simplified75.6%
if -2.40000000000000009e162 < z < 7.6e11Initial program 74.6%
cancel-sign-sub-inv74.6%
cancel-sign-sub74.6%
*-commutative74.6%
fmm-def74.6%
distribute-rgt-neg-in74.6%
remove-double-neg74.6%
*-commutative74.6%
*-commutative74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in i around inf 66.1%
if 7.6e11 < z Initial 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 b around inf 69.4%
Taylor expanded in z around inf 67.9%
Taylor expanded in z around inf 72.9%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -7.8e+117)
(* z (- (* x y) (* b c)))
(if (<= z 1850000000.0)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(* b (* 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 (z <= -7.8e+117) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 1850000000.0) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = b * (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 (z <= (-7.8d+117)) then
tmp = z * ((x * y) - (b * c))
else if (z <= 1850000000.0d0) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else
tmp = b * (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 (z <= -7.8e+117) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 1850000000.0) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = b * (z * (((x * y) / b) - c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7.8e+117: tmp = z * ((x * y) - (b * c)) elif z <= 1850000000.0: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) else: tmp = b * (z * (((x * y) / b) - c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7.8e+117) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= 1850000000.0) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); else tmp = Float64(b * Float64(z * Float64(Float64(Float64(x * y) / b) - c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7.8e+117) tmp = z * ((x * y) - (b * c)); elseif (z <= 1850000000.0) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); else tmp = b * (z * (((x * y) / b) - c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7.8e+117], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1850000000.0], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * N[(N[(N[(x * y), $MachinePrecision] / b), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+117}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq 1850000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(\frac{x \cdot y}{b} - c\right)\right)\\
\end{array}
\end{array}
if z < -7.79999999999999981e117Initial program 64.6%
Taylor expanded in j around 0 65.0%
Taylor expanded in z around inf 63.0%
if -7.79999999999999981e117 < z < 1.85e9Initial program 75.2%
cancel-sign-sub-inv75.2%
cancel-sign-sub75.2%
*-commutative75.2%
fmm-def75.2%
distribute-rgt-neg-in75.2%
remove-double-neg75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in i around inf 66.6%
if 1.85e9 < z Initial 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 b around inf 69.4%
Taylor expanded in z around inf 67.9%
Taylor expanded in z around inf 72.9%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -8e+116)
t_1
(if (<= z -2.7e-99)
(* t (- (* c j) (* x a)))
(if (<= z 1.8e+54) (* i (- (* a b) (* y j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8e+116) {
tmp = t_1;
} else if (z <= -2.7e-99) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.8e+54) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-8d+116)) then
tmp = t_1
else if (z <= (-2.7d-99)) then
tmp = t * ((c * j) - (x * a))
else if (z <= 1.8d+54) then
tmp = i * ((a * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -8e+116) {
tmp = t_1;
} else if (z <= -2.7e-99) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.8e+54) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -8e+116: tmp = t_1 elif z <= -2.7e-99: tmp = t * ((c * j) - (x * a)) elif z <= 1.8e+54: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -8e+116) tmp = t_1; elseif (z <= -2.7e-99) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 1.8e+54) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -8e+116) tmp = t_1; elseif (z <= -2.7e-99) tmp = t * ((c * j) - (x * a)); elseif (z <= 1.8e+54) tmp = i * ((a * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e+116], t$95$1, If[LessEqual[z, -2.7e-99], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+54], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+116}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-99}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+54}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.00000000000000012e116 or 1.8000000000000001e54 < z Initial program 63.1%
Taylor expanded in j around 0 64.4%
Taylor expanded in z around inf 70.1%
if -8.00000000000000012e116 < z < -2.7e-99Initial program 67.5%
+-commutative67.5%
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 56.1%
+-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
*-commutative56.1%
Simplified56.1%
if -2.7e-99 < z < 1.8000000000000001e54Initial program 79.0%
+-commutative79.0%
fma-define80.7%
*-commutative80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
cancel-sign-sub80.7%
fmm-def80.7%
distribute-rgt-neg-out80.7%
remove-double-neg80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in i around inf 61.8%
distribute-lft-out--61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in y around 0 56.8%
mul-1-neg56.8%
*-commutative56.8%
*-commutative56.8%
distribute-lft-neg-in56.8%
*-commutative56.8%
mul-1-neg56.8%
associate-*r*59.2%
distribute-rgt-in61.8%
+-commutative61.8%
*-commutative61.8%
mul-1-neg61.8%
*-commutative61.8%
unsub-neg61.8%
*-commutative61.8%
Simplified61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.9e+160)
(* x (* y z))
(if (<= z -7.8e-101)
(* t (* c j))
(if (<= z 6.4e+25) (* i (* a b)) (* y (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e+160) {
tmp = x * (y * z);
} else if (z <= -7.8e-101) {
tmp = t * (c * j);
} else if (z <= 6.4e+25) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
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 <= (-2.9d+160)) then
tmp = x * (y * z)
else if (z <= (-7.8d-101)) then
tmp = t * (c * j)
else if (z <= 6.4d+25) then
tmp = i * (a * b)
else
tmp = y * (x * z)
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 <= -2.9e+160) {
tmp = x * (y * z);
} else if (z <= -7.8e-101) {
tmp = t * (c * j);
} else if (z <= 6.4e+25) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.9e+160: tmp = x * (y * z) elif z <= -7.8e-101: tmp = t * (c * j) elif z <= 6.4e+25: tmp = i * (a * b) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.9e+160) tmp = Float64(x * Float64(y * z)); elseif (z <= -7.8e-101) tmp = Float64(t * Float64(c * j)); elseif (z <= 6.4e+25) tmp = Float64(i * Float64(a * b)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.9e+160) tmp = x * (y * z); elseif (z <= -7.8e-101) tmp = t * (c * j); elseif (z <= 6.4e+25) tmp = i * (a * b); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.9e+160], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.8e-101], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e+25], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+160}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-101}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+25}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -2.8999999999999999e160Initial program 62.8%
Taylor expanded in b around 0 56.9%
Taylor expanded in t around 0 51.1%
Taylor expanded in i around 0 51.1%
if -2.8999999999999999e160 < z < -7.80000000000000031e-101Initial program 68.3%
+-commutative68.3%
fma-define71.7%
*-commutative71.7%
*-commutative71.7%
cancel-sign-sub-inv71.7%
cancel-sign-sub71.7%
fmm-def71.7%
distribute-rgt-neg-out71.7%
remove-double-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in c around inf 48.9%
*-commutative48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in t around inf 30.6%
associate-*r*30.9%
Simplified30.9%
if -7.80000000000000031e-101 < z < 6.3999999999999999e25Initial program 78.8%
+-commutative78.8%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
cancel-sign-sub80.6%
fmm-def80.6%
distribute-rgt-neg-out80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in i around inf 62.3%
distribute-lft-out--62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around 0 38.1%
if 6.3999999999999999e25 < z Initial program 63.3%
Taylor expanded in b around 0 55.7%
Taylor expanded in t around 0 42.8%
Taylor expanded in i around 0 39.3%
associate-*r*43.4%
*-commutative43.4%
associate-*r*43.4%
Simplified43.4%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.45e+160)
(* x (* y z))
(if (<= z -2.7e-99)
(* j (* t c))
(if (<= z 4.2e+25) (* i (* a b)) (* y (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.45e+160) {
tmp = x * (y * z);
} else if (z <= -2.7e-99) {
tmp = j * (t * c);
} else if (z <= 4.2e+25) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
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.45d+160)) then
tmp = x * (y * z)
else if (z <= (-2.7d-99)) then
tmp = j * (t * c)
else if (z <= 4.2d+25) then
tmp = i * (a * b)
else
tmp = y * (x * z)
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.45e+160) {
tmp = x * (y * z);
} else if (z <= -2.7e-99) {
tmp = j * (t * c);
} else if (z <= 4.2e+25) {
tmp = i * (a * b);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.45e+160: tmp = x * (y * z) elif z <= -2.7e-99: tmp = j * (t * c) elif z <= 4.2e+25: tmp = i * (a * b) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.45e+160) tmp = Float64(x * Float64(y * z)); elseif (z <= -2.7e-99) tmp = Float64(j * Float64(t * c)); elseif (z <= 4.2e+25) tmp = Float64(i * Float64(a * b)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.45e+160) tmp = x * (y * z); elseif (z <= -2.7e-99) tmp = j * (t * c); elseif (z <= 4.2e+25) tmp = i * (a * b); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.45e+160], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.7e-99], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+25], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+160}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-99}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+25}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -1.45e160Initial program 62.8%
Taylor expanded in b around 0 56.9%
Taylor expanded in t around 0 51.1%
Taylor expanded in i around 0 51.1%
if -1.45e160 < z < -2.7e-99Initial program 67.7%
+-commutative67.7%
fma-define71.2%
*-commutative71.2%
*-commutative71.2%
cancel-sign-sub-inv71.2%
cancel-sign-sub71.2%
fmm-def71.2%
distribute-rgt-neg-out71.2%
remove-double-neg71.2%
*-commutative71.2%
*-commutative71.2%
Simplified71.2%
Taylor expanded in j around inf 46.3%
*-commutative46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in t around inf 31.1%
*-commutative31.1%
associate-*l*31.2%
*-commutative31.2%
Simplified31.2%
if -2.7e-99 < z < 4.1999999999999998e25Initial program 79.0%
+-commutative79.0%
fma-define80.7%
*-commutative80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
cancel-sign-sub80.7%
fmm-def80.7%
distribute-rgt-neg-out80.7%
remove-double-neg80.7%
*-commutative80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in i around inf 61.8%
distribute-lft-out--61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in y around 0 37.8%
if 4.1999999999999998e25 < z Initial program 63.3%
Taylor expanded in b around 0 55.7%
Taylor expanded in t around 0 42.8%
Taylor expanded in i around 0 39.3%
associate-*r*43.4%
*-commutative43.4%
associate-*r*43.4%
Simplified43.4%
Final simplification39.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.05e+85)
(* a (* b i))
(if (<= a -5.5e-159)
(* j (* t c))
(if (<= a 2.9e+72) (* x (* y z)) (* i (* a b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.05e+85) {
tmp = a * (b * i);
} else if (a <= -5.5e-159) {
tmp = j * (t * c);
} else if (a <= 2.9e+72) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3.05d+85)) then
tmp = a * (b * i)
else if (a <= (-5.5d-159)) then
tmp = j * (t * c)
else if (a <= 2.9d+72) then
tmp = x * (y * z)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.05e+85) {
tmp = a * (b * i);
} else if (a <= -5.5e-159) {
tmp = j * (t * c);
} else if (a <= 2.9e+72) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.05e+85: tmp = a * (b * i) elif a <= -5.5e-159: tmp = j * (t * c) elif a <= 2.9e+72: tmp = x * (y * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.05e+85) tmp = Float64(a * Float64(b * i)); elseif (a <= -5.5e-159) tmp = Float64(j * Float64(t * c)); elseif (a <= 2.9e+72) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.05e+85) tmp = a * (b * i); elseif (a <= -5.5e-159) tmp = j * (t * c); elseif (a <= 2.9e+72) tmp = x * (y * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.05e+85], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.5e-159], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+72], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.05 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-159}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+72}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -3.04999999999999991e85Initial program 72.2%
+-commutative72.2%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
fmm-def72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in i around inf 66.9%
distribute-lft-out--66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in y around inf 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
associate-/l*61.3%
Simplified61.3%
Taylor expanded in y around 0 55.4%
*-commutative55.4%
Simplified55.4%
if -3.04999999999999991e85 < a < -5.5000000000000003e-159Initial program 71.1%
+-commutative71.1%
fma-define71.1%
*-commutative71.1%
*-commutative71.1%
cancel-sign-sub-inv71.1%
cancel-sign-sub71.1%
fmm-def71.1%
distribute-rgt-neg-out71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in j around inf 51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in t around inf 28.0%
*-commutative28.0%
associate-*l*29.9%
*-commutative29.9%
Simplified29.9%
if -5.5000000000000003e-159 < a < 2.90000000000000017e72Initial program 75.9%
Taylor expanded in b around 0 64.4%
Taylor expanded in t around 0 46.2%
Taylor expanded in i around 0 30.0%
if 2.90000000000000017e72 < a Initial program 61.1%
+-commutative61.1%
fma-define64.8%
*-commutative64.8%
*-commutative64.8%
cancel-sign-sub-inv64.8%
cancel-sign-sub64.8%
fmm-def66.7%
distribute-rgt-neg-out66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in i around inf 57.6%
distribute-lft-out--57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 48.5%
Final simplification38.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.2e+45) (not (<= c 6.6e+122))) (* c (- (* t j) (* z b))) (* 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 tmp;
if ((c <= -2.2e+45) || !(c <= 6.6e+122)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * 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 ((c <= (-2.2d+45)) .or. (.not. (c <= 6.6d+122))) then
tmp = c * ((t * j) - (z * b))
else
tmp = i * ((a * b) - (y * 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 ((c <= -2.2e+45) || !(c <= 6.6e+122)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.2e+45) or not (c <= 6.6e+122): tmp = c * ((t * j) - (z * b)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.2e+45) || !(c <= 6.6e+122)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); 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) tmp = 0.0; if ((c <= -2.2e+45) || ~((c <= 6.6e+122))) tmp = c * ((t * j) - (z * b)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.2e+45], N[Not[LessEqual[c, 6.6e+122]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{+45} \lor \neg \left(c \leq 6.6 \cdot 10^{+122}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if c < -2.2e45 or 6.5999999999999998e122 < c Initial program 67.5%
+-commutative67.5%
fma-define68.6%
*-commutative68.6%
*-commutative68.6%
cancel-sign-sub-inv68.6%
cancel-sign-sub68.6%
fmm-def68.6%
distribute-rgt-neg-out68.6%
remove-double-neg68.6%
*-commutative68.6%
*-commutative68.6%
Simplified68.6%
Taylor expanded in c around inf 72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -2.2e45 < c < 6.5999999999999998e122Initial program 73.1%
+-commutative73.1%
fma-define74.9%
*-commutative74.9%
*-commutative74.9%
cancel-sign-sub-inv74.9%
cancel-sign-sub74.9%
fmm-def75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in i around inf 54.0%
distribute-lft-out--54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in y around 0 50.4%
mul-1-neg50.4%
*-commutative50.4%
*-commutative50.4%
distribute-lft-neg-in50.4%
*-commutative50.4%
mul-1-neg50.4%
associate-*r*52.2%
distribute-rgt-in54.0%
+-commutative54.0%
*-commutative54.0%
mul-1-neg54.0%
*-commutative54.0%
unsub-neg54.0%
*-commutative54.0%
Simplified54.0%
Final simplification60.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -7.5e+119) (* (* y i) (- j)) (if (<= j 1.15e-59) (* i (* a b)) (* i (* y (- j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -7.5e+119) {
tmp = (y * i) * -j;
} else if (j <= 1.15e-59) {
tmp = i * (a * b);
} else {
tmp = i * (y * -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 (j <= (-7.5d+119)) then
tmp = (y * i) * -j
else if (j <= 1.15d-59) then
tmp = i * (a * b)
else
tmp = i * (y * -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 (j <= -7.5e+119) {
tmp = (y * i) * -j;
} else if (j <= 1.15e-59) {
tmp = i * (a * b);
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -7.5e+119: tmp = (y * i) * -j elif j <= 1.15e-59: tmp = i * (a * b) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -7.5e+119) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (j <= 1.15e-59) tmp = Float64(i * Float64(a * b)); else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -7.5e+119) tmp = (y * i) * -j; elseif (j <= 1.15e-59) tmp = i * (a * b); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -7.5e+119], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[j, 1.15e-59], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.5 \cdot 10^{+119}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-59}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -7.500000000000001e119Initial program 71.6%
+-commutative71.6%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
fmm-def71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around inf 75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in t around 0 52.6%
*-commutative52.6%
*-commutative52.6%
associate-*l*52.6%
*-commutative52.6%
associate-*r*55.2%
neg-mul-155.2%
Simplified55.2%
if -7.500000000000001e119 < j < 1.1499999999999999e-59Initial program 75.8%
+-commutative75.8%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def75.8%
distribute-rgt-neg-out75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in i around inf 43.3%
distribute-lft-out--43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in y around 0 35.5%
if 1.1499999999999999e-59 < j Initial program 63.2%
+-commutative63.2%
fma-define68.0%
*-commutative68.0%
*-commutative68.0%
cancel-sign-sub-inv68.0%
cancel-sign-sub68.0%
fmm-def69.2%
distribute-rgt-neg-out69.2%
remove-double-neg69.2%
*-commutative69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in i around inf 50.4%
distribute-lft-out--50.4%
*-commutative50.4%
Simplified50.4%
Taylor expanded in y around inf 40.9%
associate-*r*40.9%
neg-mul-140.9%
*-commutative40.9%
Simplified40.9%
Final simplification39.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.6e+84) (not (<= i 1.8e-74))) (* 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 ((i <= -1.6e+84) || !(i <= 1.8e-74)) {
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 ((i <= (-1.6d+84)) .or. (.not. (i <= 1.8d-74))) 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 ((i <= -1.6e+84) || !(i <= 1.8e-74)) {
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 (i <= -1.6e+84) or not (i <= 1.8e-74): 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 ((i <= -1.6e+84) || !(i <= 1.8e-74)) 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 ((i <= -1.6e+84) || ~((i <= 1.8e-74))) 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[i, -1.6e+84], N[Not[LessEqual[i, 1.8e-74]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.6 \cdot 10^{+84} \lor \neg \left(i \leq 1.8 \cdot 10^{-74}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -1.60000000000000005e84 or 1.8000000000000001e-74 < i Initial program 66.8%
+-commutative66.8%
fma-define68.2%
*-commutative68.2%
*-commutative68.2%
cancel-sign-sub-inv68.2%
cancel-sign-sub68.2%
fmm-def69.0%
distribute-rgt-neg-out69.0%
remove-double-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in i around inf 68.3%
distribute-lft-out--68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in y around inf 67.0%
+-commutative67.0%
mul-1-neg67.0%
unsub-neg67.0%
associate-/l*65.0%
Simplified65.0%
Taylor expanded in y around 0 42.0%
*-commutative42.0%
Simplified42.0%
if -1.60000000000000005e84 < i < 1.8000000000000001e-74Initial program 76.2%
+-commutative76.2%
fma-define77.9%
*-commutative77.9%
*-commutative77.9%
cancel-sign-sub-inv77.9%
cancel-sign-sub77.9%
fmm-def77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in c around inf 47.8%
*-commutative47.8%
*-commutative47.8%
Simplified47.8%
Taylor expanded in t around inf 27.4%
Final simplification35.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -6.8e+85) (* a (* b i)) (if (<= a 1.35e+72) (* j (* t c)) (* i (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.8e+85) {
tmp = a * (b * i);
} else if (a <= 1.35e+72) {
tmp = j * (t * c);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-6.8d+85)) then
tmp = a * (b * i)
else if (a <= 1.35d+72) then
tmp = j * (t * c)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.8e+85) {
tmp = a * (b * i);
} else if (a <= 1.35e+72) {
tmp = j * (t * c);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.8e+85: tmp = a * (b * i) elif a <= 1.35e+72: tmp = j * (t * c) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.8e+85) tmp = Float64(a * Float64(b * i)); elseif (a <= 1.35e+72) tmp = Float64(j * Float64(t * c)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -6.8e+85) tmp = a * (b * i); elseif (a <= 1.35e+72) tmp = j * (t * c); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.8e+85], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.35e+72], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.8 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{+72}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if a < -6.8000000000000007e85Initial program 72.2%
+-commutative72.2%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
fmm-def72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in i around inf 66.9%
distribute-lft-out--66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in y around inf 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
associate-/l*61.3%
Simplified61.3%
Taylor expanded in y around 0 55.4%
*-commutative55.4%
Simplified55.4%
if -6.8000000000000007e85 < a < 1.35e72Initial program 74.3%
+-commutative74.3%
fma-define75.6%
*-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
cancel-sign-sub75.6%
fmm-def75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in j around inf 46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 22.0%
*-commutative22.0%
associate-*l*24.4%
*-commutative24.4%
Simplified24.4%
if 1.35e72 < a Initial program 61.1%
+-commutative61.1%
fma-define64.8%
*-commutative64.8%
*-commutative64.8%
cancel-sign-sub-inv64.8%
cancel-sign-sub64.8%
fmm-def66.7%
distribute-rgt-neg-out66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in i around inf 57.6%
distribute-lft-out--57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in y around 0 48.5%
Final simplification35.5%
(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 71.2%
+-commutative71.2%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
cancel-sign-sub-inv72.7%
cancel-sign-sub72.7%
fmm-def73.1%
distribute-rgt-neg-out73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in i around inf 46.8%
distribute-lft-out--46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in y around inf 45.8%
+-commutative45.8%
mul-1-neg45.8%
unsub-neg45.8%
associate-/l*44.7%
Simplified44.7%
Taylor expanded in y around 0 25.8%
*-commutative25.8%
Simplified25.8%
Final simplification25.8%
(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 2024170
(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)))))