
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 31 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2
(* t (+ (* c j) (- (/ (+ (* y (- (* x z) (* i j))) t_1) t) (* x a)))))
(t_3 (- (* t c) (* y i)))
(t_4 (+ (+ (* x (- (* y z) (* t a))) t_1) (* j t_3))))
(if (<= t_4 (- INFINITY))
t_2
(if (<= t_4 1e+305)
(fma j t_3 (+ (* x (fma y z (* t (- a)))) t_1))
(if (<= t_4 INFINITY) t_2 (* y (* x (- z (* i (/ j x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a)));
double t_3 = (t * c) - (y * i);
double t_4 = ((x * ((y * z) - (t * a))) + t_1) + (j * t_3);
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = t_2;
} else if (t_4 <= 1e+305) {
tmp = fma(j, t_3, ((x * fma(y, z, (t * -a))) + t_1));
} else if (t_4 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) + Float64(Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1) / t) - Float64(x * a)))) t_3 = Float64(Float64(t * c) - Float64(y * i)) t_4 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * t_3)) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = t_2; elseif (t_4 <= 1e+305) tmp = fma(j, t_3, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); elseif (t_4 <= Inf) tmp = t_2; else tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / t), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], t$95$2, If[LessEqual[t$95$4, 1e+305], N[(j * t$95$3 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, Infinity], t$95$2, N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right) + t\_1}{t} - x \cdot a\right)\right)\\
t_3 := t \cdot c - y \cdot i\\
t_4 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot t\_3\\
\mathbf{if}\;t\_4 \leq -\infty:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_4 \leq 10^{+305}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_3, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\
\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < -inf.0 or 9.9999999999999994e304 < (+.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 83.5%
Taylor expanded in t around -inf 88.6%
Simplified90.7%
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)))) < 9.9999999999999994e304Initial program 99.6%
+-commutative99.6%
fma-define99.6%
*-commutative99.6%
*-commutative99.6%
cancel-sign-sub-inv99.6%
cancel-sign-sub99.6%
sub-neg99.6%
sub-neg99.6%
*-commutative99.6%
fma-neg99.6%
*-commutative99.6%
distribute-rgt-neg-out99.6%
remove-double-neg99.6%
*-commutative99.6%
*-commutative99.6%
Simplified99.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in x around inf 59.6%
mul-1-neg59.6%
unsub-neg59.6%
associate-/l*59.5%
Simplified59.5%
Final simplification87.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2
(* t (+ (* c j) (- (/ (+ (* y (- (* x z) (* i j))) t_1) t) (* x a)))))
(t_3 (+ (+ (* x (- (* y z) (* t a))) t_1) (* j (- (* t c) (* y i))))))
(if (<= t_3 (- INFINITY))
t_2
(if (<= t_3 1e+305)
t_3
(if (<= t_3 INFINITY) t_2 (* y (* x (- z (* i (/ j x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a)));
double t_3 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((t * c) - (y * i)));
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = t_2;
} else if (t_3 <= 1e+305) {
tmp = t_3;
} else if (t_3 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = y * (x * (z - (i * (j / x))));
}
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 = b * ((a * i) - (z * c));
double t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a)));
double t_3 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((t * c) - (y * i)));
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = t_2;
} else if (t_3 <= 1e+305) {
tmp = t_3;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a))) t_3 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((t * c) - (y * i))) tmp = 0 if t_3 <= -math.inf: tmp = t_2 elif t_3 <= 1e+305: tmp = t_3 elif t_3 <= math.inf: tmp = t_2 else: tmp = y * (x * (z - (i * (j / x)))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t * Float64(Float64(c * j) + Float64(Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1) / t) - Float64(x * a)))) t_3 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = t_2; elseif (t_3 <= 1e+305) tmp = t_3; elseif (t_3 <= Inf) tmp = t_2; else tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a))); t_3 = ((x * ((y * z) - (t * a))) + t_1) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_3 <= -Inf) tmp = t_2; elseif (t_3 <= 1e+305) tmp = t_3; elseif (t_3 <= Inf) tmp = t_2; else tmp = y * (x * (z - (i * (j / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / t), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], t$95$2, If[LessEqual[t$95$3, 1e+305], t$95$3, If[LessEqual[t$95$3, Infinity], t$95$2, N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot \left(c \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right) + t\_1}{t} - x \cdot a\right)\right)\\
t_3 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_3 \leq 10^{+305}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < -inf.0 or 9.9999999999999994e304 < (+.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 83.5%
Taylor expanded in t around -inf 88.6%
Simplified90.7%
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)))) < 9.9999999999999994e304Initial program 99.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in x around inf 59.6%
mul-1-neg59.6%
unsub-neg59.6%
associate-/l*59.5%
Simplified59.5%
Final simplification87.6%
(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 x))))))))
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 / x))));
}
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 / x))));
}
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 / x)))) 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(x * Float64(z - Float64(i * Float64(j / x))))); 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 / x)))); 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[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around inf 55.6%
+-commutative55.6%
mul-1-neg55.6%
unsub-neg55.6%
Simplified55.6%
Taylor expanded in x around inf 59.6%
mul-1-neg59.6%
unsub-neg59.6%
associate-/l*59.5%
Simplified59.5%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4e+178)
(* x (- (* y z) (* t a)))
(if (<= z -7.2e-34)
(+ (* t (* c j)) (* b (- (* a i) (* z c))))
(if (<= z -3e-117)
(* a (- (* b i) (* x t)))
(if (<= z -1.18e-229)
(* i (- (* a b) (* y j)))
(if (<= z 6.2e-229)
(* t (- (* c j) (- (* x a) (* a (/ (* b i) t)))))
(if (<= z 6.5e-133)
(- (* a (* b i)) (* a (* x t)))
(if (<= z 2.3e+113)
(- (* t (- (* c j) (* x a))) (* b (* z c)))
(* 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 <= -4e+178) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -7.2e-34) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (z <= -3e-117) {
tmp = a * ((b * i) - (x * t));
} else if (z <= -1.18e-229) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 6.2e-229) {
tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))));
} else if (z <= 6.5e-133) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (z <= 2.3e+113) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else {
tmp = 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 <= (-4d+178)) then
tmp = x * ((y * z) - (t * a))
else if (z <= (-7.2d-34)) then
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
else if (z <= (-3d-117)) then
tmp = a * ((b * i) - (x * t))
else if (z <= (-1.18d-229)) then
tmp = i * ((a * b) - (y * j))
else if (z <= 6.2d-229) then
tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))))
else if (z <= 6.5d-133) then
tmp = (a * (b * i)) - (a * (x * t))
else if (z <= 2.3d+113) then
tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
else
tmp = 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 <= -4e+178) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -7.2e-34) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (z <= -3e-117) {
tmp = a * ((b * i) - (x * t));
} else if (z <= -1.18e-229) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 6.2e-229) {
tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))));
} else if (z <= 6.5e-133) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (z <= 2.3e+113) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4e+178: tmp = x * ((y * z) - (t * a)) elif z <= -7.2e-34: tmp = (t * (c * j)) + (b * ((a * i) - (z * c))) elif z <= -3e-117: tmp = a * ((b * i) - (x * t)) elif z <= -1.18e-229: tmp = i * ((a * b) - (y * j)) elif z <= 6.2e-229: tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t)))) elif z <= 6.5e-133: tmp = (a * (b * i)) - (a * (x * t)) elif z <= 2.3e+113: tmp = (t * ((c * j) - (x * a))) - (b * (z * c)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4e+178) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= -7.2e-34) tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (z <= -3e-117) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= -1.18e-229) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 6.2e-229) tmp = Float64(t * Float64(Float64(c * j) - Float64(Float64(x * a) - Float64(a * Float64(Float64(b * i) / t))))); elseif (z <= 6.5e-133) tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t))); elseif (z <= 2.3e+113) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4e+178) tmp = x * ((y * z) - (t * a)); elseif (z <= -7.2e-34) tmp = (t * (c * j)) + (b * ((a * i) - (z * c))); elseif (z <= -3e-117) tmp = a * ((b * i) - (x * t)); elseif (z <= -1.18e-229) tmp = i * ((a * b) - (y * j)); elseif (z <= 6.2e-229) tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t)))); elseif (z <= 6.5e-133) tmp = (a * (b * i)) - (a * (x * t)); elseif (z <= 2.3e+113) tmp = (t * ((c * j) - (x * a))) - (b * (z * c)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4e+178], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.2e-34], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-117], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.18e-229], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e-229], N[(t * N[(N[(c * j), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] - N[(a * N[(N[(b * i), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-133], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+113], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+178}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-34}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-117}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq -1.18 \cdot 10^{-229}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-229}:\\
\;\;\;\;t \cdot \left(c \cdot j - \left(x \cdot a - a \cdot \frac{b \cdot i}{t}\right)\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-133}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+113}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -4.0000000000000002e178Initial program 66.9%
+-commutative66.9%
fma-define66.9%
*-commutative66.9%
*-commutative66.9%
cancel-sign-sub-inv66.9%
cancel-sign-sub66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around inf 81.8%
if -4.0000000000000002e178 < z < -7.20000000000000016e-34Initial program 71.4%
Taylor expanded in y around 0 75.8%
+-commutative75.8%
*-commutative75.8%
associate-*r*75.8%
*-commutative75.8%
associate-*l*75.7%
mul-1-neg75.7%
associate-*r*71.6%
*-commutative71.6%
associate-*l*75.8%
distribute-rgt-neg-in75.8%
mul-1-neg75.8%
distribute-lft-in75.8%
mul-1-neg75.8%
unsub-neg75.8%
*-commutative75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in j around inf 82.1%
associate-*r*82.0%
*-commutative82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
if -7.20000000000000016e-34 < z < -2.99999999999999991e-117Initial program 68.5%
Taylor expanded in a around -inf 64.1%
if -2.99999999999999991e-117 < z < -1.1799999999999999e-229Initial program 81.4%
Taylor expanded in i around inf 76.8%
distribute-lft-out--76.8%
*-commutative76.8%
Simplified76.8%
if -1.1799999999999999e-229 < z < 6.2000000000000002e-229Initial program 78.6%
Taylor expanded in t around -inf 81.7%
Simplified78.6%
Taylor expanded in a around inf 78.6%
associate-/l*78.6%
Simplified78.6%
if 6.2000000000000002e-229 < z < 6.5000000000000002e-133Initial program 85.9%
Taylor expanded in t around -inf 59.0%
Simplified59.6%
Taylor expanded in a around -inf 51.6%
associate-*r*51.4%
*-commutative51.4%
+-commutative51.4%
mul-1-neg51.4%
unsub-neg51.4%
associate-/l*51.5%
Simplified51.5%
Taylor expanded in t around 0 60.7%
if 6.5000000000000002e-133 < z < 2.29999999999999997e113Initial program 73.3%
Taylor expanded in y around 0 63.8%
+-commutative63.8%
*-commutative63.8%
associate-*r*61.8%
*-commutative61.8%
associate-*l*63.9%
mul-1-neg63.9%
associate-*r*66.0%
*-commutative66.0%
associate-*l*68.0%
distribute-rgt-neg-in68.0%
mul-1-neg68.0%
distribute-lft-in70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in z around inf 66.1%
if 2.29999999999999997e113 < z Initial program 63.0%
Taylor expanded in z around inf 88.0%
*-commutative88.0%
Simplified88.0%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -3.7e-47)
t_3
(if (<= y -2.4e-208)
t_2
(if (<= y -7.5e-278)
t_1
(if (<= y -9e-304)
t_2
(if (<= y 1.85e-279)
t_1
(if (<= y 4.8e-221) t_2 (if (<= y 1.9e+65) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.7e-47) {
tmp = t_3;
} else if (y <= -2.4e-208) {
tmp = t_2;
} else if (y <= -7.5e-278) {
tmp = t_1;
} else if (y <= -9e-304) {
tmp = t_2;
} else if (y <= 1.85e-279) {
tmp = t_1;
} else if (y <= 4.8e-221) {
tmp = t_2;
} else if (y <= 1.9e+65) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
t_3 = y * ((x * z) - (i * j))
if (y <= (-3.7d-47)) then
tmp = t_3
else if (y <= (-2.4d-208)) then
tmp = t_2
else if (y <= (-7.5d-278)) then
tmp = t_1
else if (y <= (-9d-304)) then
tmp = t_2
else if (y <= 1.85d-279) then
tmp = t_1
else if (y <= 4.8d-221) then
tmp = t_2
else if (y <= 1.9d+65) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.7e-47) {
tmp = t_3;
} else if (y <= -2.4e-208) {
tmp = t_2;
} else if (y <= -7.5e-278) {
tmp = t_1;
} else if (y <= -9e-304) {
tmp = t_2;
} else if (y <= 1.85e-279) {
tmp = t_1;
} else if (y <= 4.8e-221) {
tmp = t_2;
} else if (y <= 1.9e+65) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.7e-47: tmp = t_3 elif y <= -2.4e-208: tmp = t_2 elif y <= -7.5e-278: tmp = t_1 elif y <= -9e-304: tmp = t_2 elif y <= 1.85e-279: tmp = t_1 elif y <= 4.8e-221: tmp = t_2 elif y <= 1.9e+65: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.7e-47) tmp = t_3; elseif (y <= -2.4e-208) tmp = t_2; elseif (y <= -7.5e-278) tmp = t_1; elseif (y <= -9e-304) tmp = t_2; elseif (y <= 1.85e-279) tmp = t_1; elseif (y <= 4.8e-221) tmp = t_2; elseif (y <= 1.9e+65) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.7e-47) tmp = t_3; elseif (y <= -2.4e-208) tmp = t_2; elseif (y <= -7.5e-278) tmp = t_1; elseif (y <= -9e-304) tmp = t_2; elseif (y <= 1.85e-279) tmp = t_1; elseif (y <= 4.8e-221) tmp = t_2; elseif (y <= 1.9e+65) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e-47], t$95$3, If[LessEqual[y, -2.4e-208], t$95$2, If[LessEqual[y, -7.5e-278], t$95$1, If[LessEqual[y, -9e-304], t$95$2, If[LessEqual[y, 1.85e-279], t$95$1, If[LessEqual[y, 4.8e-221], t$95$2, If[LessEqual[y, 1.9e+65], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{-47}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-208}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-278}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-221}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.7e-47 or 1.90000000000000006e65 < y Initial program 57.4%
Taylor expanded in y around inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
if -3.7e-47 < y < -2.3999999999999999e-208 or -7.49999999999999946e-278 < y < -8.9999999999999995e-304 or 1.85000000000000019e-279 < y < 4.80000000000000047e-221Initial program 83.2%
Taylor expanded in c around inf 78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
if -2.3999999999999999e-208 < y < -7.49999999999999946e-278 or -8.9999999999999995e-304 < y < 1.85000000000000019e-279 or 4.80000000000000047e-221 < y < 1.90000000000000006e65Initial program 86.7%
Taylor expanded in y around 0 81.3%
+-commutative81.3%
*-commutative81.3%
associate-*r*81.2%
*-commutative81.2%
associate-*l*81.2%
mul-1-neg81.2%
associate-*r*76.3%
*-commutative76.3%
associate-*l*79.3%
distribute-rgt-neg-in79.3%
mul-1-neg79.3%
distribute-lft-in81.4%
mul-1-neg81.4%
unsub-neg81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in c around 0 59.4%
associate-*r*59.4%
neg-mul-159.4%
cancel-sign-sub59.4%
mul-1-neg59.4%
distribute-rgt-neg-in59.4%
mul-1-neg59.4%
distribute-lft-in59.4%
+-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
Simplified59.4%
Final simplification67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
(if (<= b -4.4e+109)
(+ (* t (* c j)) (* b (- (* a i) (* z c))))
(if (<= b -1.22e+36)
t_1
(if (<= b -7.5e-19)
(- (* t (- (* c j) (* x a))) (* b (* z c)))
(if (<= b -9.4e-87)
(* y (- (* x z) (* i j)))
(if (<= b 7.6e-21)
t_1
(if (<= b 3.6e+129)
(* a (- (* b i) (* x t)))
(* b (* i (- a (* c (/ z i)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
double tmp;
if (b <= -4.4e+109) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (b <= -1.22e+36) {
tmp = t_1;
} else if (b <= -7.5e-19) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else if (b <= -9.4e-87) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 7.6e-21) {
tmp = t_1;
} else if (b <= 3.6e+129) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = b * (i * (a - (c * (z / i))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
if (b <= (-4.4d+109)) then
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
else if (b <= (-1.22d+36)) then
tmp = t_1
else if (b <= (-7.5d-19)) then
tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
else if (b <= (-9.4d-87)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 7.6d-21) then
tmp = t_1
else if (b <= 3.6d+129) then
tmp = a * ((b * i) - (x * t))
else
tmp = b * (i * (a - (c * (z / i))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
double tmp;
if (b <= -4.4e+109) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else if (b <= -1.22e+36) {
tmp = t_1;
} else if (b <= -7.5e-19) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else if (b <= -9.4e-87) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 7.6e-21) {
tmp = t_1;
} else if (b <= 3.6e+129) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = b * (i * (a - (c * (z / i))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) tmp = 0 if b <= -4.4e+109: tmp = (t * (c * j)) + (b * ((a * i) - (z * c))) elif b <= -1.22e+36: tmp = t_1 elif b <= -7.5e-19: tmp = (t * ((c * j) - (x * a))) - (b * (z * c)) elif b <= -9.4e-87: tmp = y * ((x * z) - (i * j)) elif b <= 7.6e-21: tmp = t_1 elif b <= 3.6e+129: tmp = a * ((b * i) - (x * t)) else: tmp = b * (i * (a - (c * (z / i)))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (b <= -4.4e+109) tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= -1.22e+36) tmp = t_1; elseif (b <= -7.5e-19) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c))); elseif (b <= -9.4e-87) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 7.6e-21) tmp = t_1; elseif (b <= 3.6e+129) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); tmp = 0.0; if (b <= -4.4e+109) tmp = (t * (c * j)) + (b * ((a * i) - (z * c))); elseif (b <= -1.22e+36) tmp = t_1; elseif (b <= -7.5e-19) tmp = (t * ((c * j) - (x * a))) - (b * (z * c)); elseif (b <= -9.4e-87) tmp = y * ((x * z) - (i * j)); elseif (b <= 7.6e-21) tmp = t_1; elseif (b <= 3.6e+129) tmp = a * ((b * i) - (x * t)); else tmp = b * (i * (a - (c * (z / i)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+109], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.22e+36], t$95$1, If[LessEqual[b, -7.5e-19], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.4e-87], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.6e-21], t$95$1, If[LessEqual[b, 3.6e+129], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+109}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -1.22 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-19}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;b \leq -9.4 \cdot 10^{-87}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+129}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\end{array}
\end{array}
if b < -4.3999999999999998e109Initial program 71.4%
Taylor expanded in y around 0 76.3%
+-commutative76.3%
*-commutative76.3%
associate-*r*74.1%
*-commutative74.1%
associate-*l*76.3%
mul-1-neg76.3%
associate-*r*73.9%
*-commutative73.9%
associate-*l*71.6%
distribute-rgt-neg-in71.6%
mul-1-neg71.6%
distribute-lft-in71.6%
mul-1-neg71.6%
unsub-neg71.6%
*-commutative71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around inf 78.8%
associate-*r*78.8%
*-commutative78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
if -4.3999999999999998e109 < b < -1.21999999999999995e36 or -9.4000000000000002e-87 < b < 7.5999999999999995e-21Initial program 73.5%
Taylor expanded in b around 0 72.5%
if -1.21999999999999995e36 < b < -7.49999999999999957e-19Initial program 73.3%
Taylor expanded in y around 0 85.1%
+-commutative85.1%
*-commutative85.1%
associate-*r*85.1%
*-commutative85.1%
associate-*l*85.1%
mul-1-neg85.1%
associate-*r*67.8%
*-commutative67.8%
associate-*l*85.3%
distribute-rgt-neg-in85.3%
mul-1-neg85.3%
distribute-lft-in85.3%
mul-1-neg85.3%
unsub-neg85.3%
*-commutative85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in z around inf 76.2%
if -7.49999999999999957e-19 < b < -9.4000000000000002e-87Initial program 69.1%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
Simplified62.5%
if 7.5999999999999995e-21 < b < 3.6000000000000001e129Initial program 81.1%
Taylor expanded in a around -inf 71.3%
if 3.6000000000000001e129 < b Initial program 66.8%
Taylor expanded in b around inf 73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in i around inf 75.7%
mul-1-neg75.7%
unsub-neg75.7%
associate-/l*75.8%
Simplified75.8%
Final simplification73.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x (- z (* i (/ j x)))))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= y -4e+173)
t_1
(if (<= y -3.6e-38)
(- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))
(if (<= y -2.9e-87)
(+ (* y (- (* x z) (* i j))) t_2)
(if (<= y 5e+74) (+ (* t (- (* c j) (* x a))) t_2) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * (z - (i * (j / x))));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (y <= -4e+173) {
tmp = t_1;
} else if (y <= -3.6e-38) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (y <= -2.9e-87) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else if (y <= 5e+74) {
tmp = (t * ((c * j) - (x * a))) + t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = y * (x * (z - (i * (j / x))))
t_2 = b * ((a * i) - (z * c))
if (y <= (-4d+173)) then
tmp = t_1
else if (y <= (-3.6d-38)) then
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
else if (y <= (-2.9d-87)) then
tmp = (y * ((x * z) - (i * j))) + t_2
else if (y <= 5d+74) then
tmp = (t * ((c * j) - (x * a))) + t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * (z - (i * (j / x))));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (y <= -4e+173) {
tmp = t_1;
} else if (y <= -3.6e-38) {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
} else if (y <= -2.9e-87) {
tmp = (y * ((x * z) - (i * j))) + t_2;
} else if (y <= 5e+74) {
tmp = (t * ((c * j) - (x * a))) + t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * (z - (i * (j / x)))) t_2 = b * ((a * i) - (z * c)) tmp = 0 if y <= -4e+173: tmp = t_1 elif y <= -3.6e-38: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) elif y <= -2.9e-87: tmp = (y * ((x * z) - (i * j))) + t_2 elif y <= 5e+74: tmp = (t * ((c * j) - (x * a))) + t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (y <= -4e+173) tmp = t_1; elseif (y <= -3.6e-38) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (y <= -2.9e-87) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_2); elseif (y <= 5e+74) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + t_2); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * (z - (i * (j / x)))); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (y <= -4e+173) tmp = t_1; elseif (y <= -3.6e-38) tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); elseif (y <= -2.9e-87) tmp = (y * ((x * z) - (i * j))) + t_2; elseif (y <= 5e+74) tmp = (t * ((c * j) - (x * a))) + t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e+173], t$95$1, If[LessEqual[y, -3.6e-38], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e-87], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[y, 5e+74], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -4 \cdot 10^{+173}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-38}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-87}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_2\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -4.0000000000000001e173 or 4.99999999999999963e74 < y Initial program 52.1%
Taylor expanded in y around inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
Taylor expanded in x around inf 77.1%
mul-1-neg77.1%
unsub-neg77.1%
associate-/l*77.2%
Simplified77.2%
if -4.0000000000000001e173 < y < -3.6000000000000001e-38Initial program 66.4%
Taylor expanded in b around 0 76.7%
if -3.6000000000000001e-38 < y < -2.8999999999999999e-87Initial program 92.2%
Taylor expanded in t around 0 92.2%
associate-*r*85.1%
associate-*r*85.1%
*-commutative85.1%
associate-*r*77.4%
distribute-rgt-in77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
*-commutative77.4%
Simplified77.4%
if -2.8999999999999999e-87 < y < 4.99999999999999963e74Initial program 83.7%
Taylor expanded in y around 0 82.6%
+-commutative82.6%
*-commutative82.6%
associate-*r*81.1%
*-commutative81.1%
associate-*l*81.7%
mul-1-neg81.7%
associate-*r*77.4%
*-commutative77.4%
associate-*l*81.1%
distribute-rgt-neg-in81.1%
mul-1-neg81.1%
distribute-lft-in82.6%
mul-1-neg82.6%
unsub-neg82.6%
*-commutative82.6%
*-commutative82.6%
*-commutative82.6%
Simplified82.6%
Final simplification79.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -5.5e+185)
(* x (- (* y z) (* t a)))
(if (<= z -3.1e-117)
(* b (* i (- a (* c (/ z i)))))
(if (<= z 2.8e-281)
(* i (- (* a b) (* y j)))
(if (<= z 9.6e-231)
(* t (- (* c j) (* x a)))
(if (<= z 2.4e-79)
(- (* a (* b i)) (* a (* x t)))
(* 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 <= -5.5e+185) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -3.1e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 2.8e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 9.6e-231) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 2.4e-79) {
tmp = (a * (b * i)) - (a * (x * t));
} else {
tmp = 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 <= (-5.5d+185)) then
tmp = x * ((y * z) - (t * a))
else if (z <= (-3.1d-117)) then
tmp = b * (i * (a - (c * (z / i))))
else if (z <= 2.8d-281) then
tmp = i * ((a * b) - (y * j))
else if (z <= 9.6d-231) then
tmp = t * ((c * j) - (x * a))
else if (z <= 2.4d-79) then
tmp = (a * (b * i)) - (a * (x * t))
else
tmp = 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 <= -5.5e+185) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -3.1e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 2.8e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 9.6e-231) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 2.4e-79) {
tmp = (a * (b * i)) - (a * (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -5.5e+185: tmp = x * ((y * z) - (t * a)) elif z <= -3.1e-117: tmp = b * (i * (a - (c * (z / i)))) elif z <= 2.8e-281: tmp = i * ((a * b) - (y * j)) elif z <= 9.6e-231: tmp = t * ((c * j) - (x * a)) elif z <= 2.4e-79: tmp = (a * (b * i)) - (a * (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -5.5e+185) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= -3.1e-117) tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); elseif (z <= 2.8e-281) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 9.6e-231) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 2.4e-79) tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -5.5e+185) tmp = x * ((y * z) - (t * a)); elseif (z <= -3.1e-117) tmp = b * (i * (a - (c * (z / i)))); elseif (z <= 2.8e-281) tmp = i * ((a * b) - (y * j)); elseif (z <= 9.6e-231) tmp = t * ((c * j) - (x * a)); elseif (z <= 2.4e-79) tmp = (a * (b * i)) - (a * (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.5e+185], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e-231], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-79], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+185}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-79}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -5.4999999999999996e185Initial program 66.9%
+-commutative66.9%
fma-define66.9%
*-commutative66.9%
*-commutative66.9%
cancel-sign-sub-inv66.9%
cancel-sign-sub66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around inf 81.8%
if -5.4999999999999996e185 < z < -3.10000000000000011e-117Initial program 70.6%
Taylor expanded in b around inf 57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in i around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
associate-/l*61.7%
Simplified61.7%
if -3.10000000000000011e-117 < z < 2.80000000000000005e-281Initial program 79.3%
Taylor expanded in i around inf 67.0%
distribute-lft-out--67.0%
*-commutative67.0%
Simplified67.0%
if 2.80000000000000005e-281 < z < 9.59999999999999967e-231Initial program 83.3%
Taylor expanded in t around inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
if 9.59999999999999967e-231 < z < 2.40000000000000006e-79Initial program 84.8%
Taylor expanded in t around -inf 73.0%
Simplified73.4%
Taylor expanded in a around -inf 50.0%
associate-*r*49.7%
*-commutative49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
associate-/l*49.7%
Simplified49.7%
Taylor expanded in t around 0 53.0%
if 2.40000000000000006e-79 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.7e-5)
(* y (- (* x z) (* i j)))
(if (<= y 7.2e-306)
(- (* t (- (* c j) (* x a))) (* b (* z c)))
(if (<= y 9.8e-279)
(- (* a (* b i)) (* a (* x t)))
(if (<= y 3.4e+73)
(+ (* t (* c j)) (* b (- (* a i) (* z c))))
(* y (* x (- z (* i (/ j x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.7e-5) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 7.2e-306) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else if (y <= 9.8e-279) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (y <= 3.4e+73) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else {
tmp = y * (x * (z - (i * (j / x))));
}
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 (y <= (-1.7d-5)) then
tmp = y * ((x * z) - (i * j))
else if (y <= 7.2d-306) then
tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
else if (y <= 9.8d-279) then
tmp = (a * (b * i)) - (a * (x * t))
else if (y <= 3.4d+73) then
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
else
tmp = y * (x * (z - (i * (j / x))))
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 (y <= -1.7e-5) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 7.2e-306) {
tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
} else if (y <= 9.8e-279) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (y <= 3.4e+73) {
tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.7e-5: tmp = y * ((x * z) - (i * j)) elif y <= 7.2e-306: tmp = (t * ((c * j) - (x * a))) - (b * (z * c)) elif y <= 9.8e-279: tmp = (a * (b * i)) - (a * (x * t)) elif y <= 3.4e+73: tmp = (t * (c * j)) + (b * ((a * i) - (z * c))) else: tmp = y * (x * (z - (i * (j / x)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.7e-5) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= 7.2e-306) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c))); elseif (y <= 9.8e-279) tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t))); elseif (y <= 3.4e+73) tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.7e-5) tmp = y * ((x * z) - (i * j)); elseif (y <= 7.2e-306) tmp = (t * ((c * j) - (x * a))) - (b * (z * c)); elseif (y <= 9.8e-279) tmp = (a * (b * i)) - (a * (x * t)); elseif (y <= 3.4e+73) tmp = (t * (c * j)) + (b * ((a * i) - (z * c))); else tmp = y * (x * (z - (i * (j / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.7e-5], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e-306], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e-279], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+73], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{-5}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-306}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 9.8 \cdot 10^{-279}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if y < -1.7e-5Initial program 59.8%
Taylor expanded in y around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
Simplified75.3%
if -1.7e-5 < y < 7.19999999999999982e-306Initial program 85.2%
Taylor expanded in y around 0 72.5%
+-commutative72.5%
*-commutative72.5%
associate-*r*68.7%
*-commutative68.7%
associate-*l*70.3%
mul-1-neg70.3%
associate-*r*70.4%
*-commutative70.4%
associate-*l*72.3%
distribute-rgt-neg-in72.3%
mul-1-neg72.3%
distribute-lft-in72.3%
mul-1-neg72.3%
unsub-neg72.3%
*-commutative72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in z around inf 70.1%
if 7.19999999999999982e-306 < y < 9.79999999999999948e-279Initial program 71.4%
Taylor expanded in t around -inf 57.7%
Simplified57.7%
Taylor expanded in a around -inf 85.9%
associate-*r*85.9%
*-commutative85.9%
+-commutative85.9%
mul-1-neg85.9%
unsub-neg85.9%
associate-/l*86.0%
Simplified86.0%
Taylor expanded in t around 0 86.1%
if 9.79999999999999948e-279 < y < 3.4000000000000002e73Initial program 85.0%
Taylor expanded in y around 0 82.2%
+-commutative82.2%
*-commutative82.2%
associate-*r*82.2%
*-commutative82.2%
associate-*l*83.1%
mul-1-neg83.1%
associate-*r*77.9%
*-commutative77.9%
associate-*l*82.2%
distribute-rgt-neg-in82.2%
mul-1-neg82.2%
distribute-lft-in84.3%
mul-1-neg84.3%
unsub-neg84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in j around inf 68.7%
associate-*r*69.7%
*-commutative69.7%
*-commutative69.7%
*-commutative69.7%
Simplified69.7%
if 3.4000000000000002e73 < y Initial program 48.5%
Taylor expanded in y around inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
Taylor expanded in x around inf 71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.4%
Simplified71.4%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (* c j)) (* b (- (* a i) (* z c))))))
(if (<= y -0.000102)
(* y (- (* x z) (* i j)))
(if (<= y 7e-20)
t_1
(if (<= y 1.6e-6)
(- (* a (* b i)) (* a (* x t)))
(if (<= y 2.55e+73) t_1 (* y (* x (- z (* i (/ j x)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (c * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -0.000102) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 7e-20) {
tmp = t_1;
} else if (y <= 1.6e-6) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (y <= 2.55e+73) {
tmp = t_1;
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (t * (c * j)) + (b * ((a * i) - (z * c)))
if (y <= (-0.000102d0)) then
tmp = y * ((x * z) - (i * j))
else if (y <= 7d-20) then
tmp = t_1
else if (y <= 1.6d-6) then
tmp = (a * (b * i)) - (a * (x * t))
else if (y <= 2.55d+73) then
tmp = t_1
else
tmp = y * (x * (z - (i * (j / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * (c * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -0.000102) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 7e-20) {
tmp = t_1;
} else if (y <= 1.6e-6) {
tmp = (a * (b * i)) - (a * (x * t));
} else if (y <= 2.55e+73) {
tmp = t_1;
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * (c * j)) + (b * ((a * i) - (z * c))) tmp = 0 if y <= -0.000102: tmp = y * ((x * z) - (i * j)) elif y <= 7e-20: tmp = t_1 elif y <= 1.6e-6: tmp = (a * (b * i)) - (a * (x * t)) elif y <= 2.55e+73: tmp = t_1 else: tmp = y * (x * (z - (i * (j / x)))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (y <= -0.000102) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= 7e-20) tmp = t_1; elseif (y <= 1.6e-6) tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t))); elseif (y <= 2.55e+73) tmp = t_1; else tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * (c * j)) + (b * ((a * i) - (z * c))); tmp = 0.0; if (y <= -0.000102) tmp = y * ((x * z) - (i * j)); elseif (y <= 7e-20) tmp = t_1; elseif (y <= 1.6e-6) tmp = (a * (b * i)) - (a * (x * t)); elseif (y <= 2.55e+73) tmp = t_1; else tmp = y * (x * (z - (i * (j / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -0.000102], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e-20], t$95$1, If[LessEqual[y, 1.6e-6], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.55e+73], t$95$1, N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -0.000102:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-6}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if y < -1.01999999999999999e-4Initial program 59.2%
Taylor expanded in y around inf 76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -1.01999999999999999e-4 < y < 7.00000000000000007e-20 or 1.5999999999999999e-6 < y < 2.55000000000000012e73Initial program 85.1%
Taylor expanded in y around 0 78.7%
+-commutative78.7%
*-commutative78.7%
associate-*r*77.4%
*-commutative77.4%
associate-*l*77.9%
mul-1-neg77.9%
associate-*r*75.2%
*-commutative75.2%
associate-*l*78.6%
distribute-rgt-neg-in78.6%
mul-1-neg78.6%
distribute-lft-in79.3%
mul-1-neg79.3%
unsub-neg79.3%
*-commutative79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in j around inf 68.8%
associate-*r*68.0%
*-commutative68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
if 7.00000000000000007e-20 < y < 1.5999999999999999e-6Initial program 72.3%
Taylor expanded in t around -inf 86.6%
Simplified86.6%
Taylor expanded in a around -inf 100.0%
associate-*r*73.1%
*-commutative73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
associate-/l*73.1%
Simplified73.1%
Taylor expanded in t around 0 100.0%
if 2.55000000000000012e73 < y Initial program 48.5%
Taylor expanded in y around inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
Taylor expanded in x around inf 71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.4%
Simplified71.4%
Final simplification71.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.15e+181)
(* x (- (* y z) (* t a)))
(if (<= z -3.3e-117)
(* b (* i (- a (* c (/ z i)))))
(if (<= z 2.65e-281)
(* i (- (* a b) (* y j)))
(if (<= z 4.7e-231)
(* t (- (* c j) (* x a)))
(if (<= z 1.55e-77)
(* a (- (* b i) (* x t)))
(* 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 <= -1.15e+181) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -3.3e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 2.65e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 4.7e-231) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.55e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = 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 <= (-1.15d+181)) then
tmp = x * ((y * z) - (t * a))
else if (z <= (-3.3d-117)) then
tmp = b * (i * (a - (c * (z / i))))
else if (z <= 2.65d-281) then
tmp = i * ((a * b) - (y * j))
else if (z <= 4.7d-231) then
tmp = t * ((c * j) - (x * a))
else if (z <= 1.55d-77) then
tmp = a * ((b * i) - (x * t))
else
tmp = 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 <= -1.15e+181) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -3.3e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 2.65e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 4.7e-231) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.55e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.15e+181: tmp = x * ((y * z) - (t * a)) elif z <= -3.3e-117: tmp = b * (i * (a - (c * (z / i)))) elif z <= 2.65e-281: tmp = i * ((a * b) - (y * j)) elif z <= 4.7e-231: tmp = t * ((c * j) - (x * a)) elif z <= 1.55e-77: tmp = a * ((b * i) - (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.15e+181) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= -3.3e-117) tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); elseif (z <= 2.65e-281) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 4.7e-231) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 1.55e-77) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.15e+181) tmp = x * ((y * z) - (t * a)); elseif (z <= -3.3e-117) tmp = b * (i * (a - (c * (z / i)))); elseif (z <= 2.65e-281) tmp = i * ((a * b) - (y * j)); elseif (z <= 4.7e-231) tmp = t * ((c * j) - (x * a)); elseif (z <= 1.55e-77) tmp = a * ((b * i) - (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.15e+181], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.65e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e-231], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+181}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.1499999999999999e181Initial program 66.9%
+-commutative66.9%
fma-define66.9%
*-commutative66.9%
*-commutative66.9%
cancel-sign-sub-inv66.9%
cancel-sign-sub66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around inf 81.8%
if -1.1499999999999999e181 < z < -3.30000000000000015e-117Initial program 70.6%
Taylor expanded in b around inf 57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in i around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
associate-/l*61.7%
Simplified61.7%
if -3.30000000000000015e-117 < z < 2.64999999999999997e-281Initial program 79.3%
Taylor expanded in i around inf 67.0%
distribute-lft-out--67.0%
*-commutative67.0%
Simplified67.0%
if 2.64999999999999997e-281 < z < 4.7000000000000002e-231Initial program 83.3%
Taylor expanded in t around inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
if 4.7000000000000002e-231 < z < 1.55000000000000004e-77Initial program 84.8%
Taylor expanded in a around -inf 53.0%
if 1.55000000000000004e-77 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4.9e+185)
(* y (- (* x z) (* i j)))
(if (<= z -3.1e-117)
(* b (* i (- a (* c (/ z i)))))
(if (<= z 3.1e-281)
(* i (- (* a b) (* y j)))
(if (<= z 8e-232)
(* t (- (* c j) (* x a)))
(if (<= z 9.6e-78)
(* a (- (* b i) (* x t)))
(* 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 <= -4.9e+185) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3.1e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 3.1e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 8e-232) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 9.6e-78) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = 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 <= (-4.9d+185)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-3.1d-117)) then
tmp = b * (i * (a - (c * (z / i))))
else if (z <= 3.1d-281) then
tmp = i * ((a * b) - (y * j))
else if (z <= 8d-232) then
tmp = t * ((c * j) - (x * a))
else if (z <= 9.6d-78) then
tmp = a * ((b * i) - (x * t))
else
tmp = 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 <= -4.9e+185) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3.1e-117) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 3.1e-281) {
tmp = i * ((a * b) - (y * j));
} else if (z <= 8e-232) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 9.6e-78) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.9e+185: tmp = y * ((x * z) - (i * j)) elif z <= -3.1e-117: tmp = b * (i * (a - (c * (z / i)))) elif z <= 3.1e-281: tmp = i * ((a * b) - (y * j)) elif z <= 8e-232: tmp = t * ((c * j) - (x * a)) elif z <= 9.6e-78: tmp = a * ((b * i) - (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.9e+185) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -3.1e-117) tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); elseif (z <= 3.1e-281) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (z <= 8e-232) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 9.6e-78) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4.9e+185) tmp = y * ((x * z) - (i * j)); elseif (z <= -3.1e-117) tmp = b * (i * (a - (c * (z / i)))); elseif (z <= 3.1e-281) tmp = i * ((a * b) - (y * j)); elseif (z <= 8e-232) tmp = t * ((c * j) - (x * a)); elseif (z <= 9.6e-78) tmp = a * ((b * i) - (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.9e+185], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e-232], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e-78], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+185}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-232}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -4.89999999999999984e185Initial program 66.9%
Taylor expanded in y around inf 74.7%
+-commutative74.7%
mul-1-neg74.7%
unsub-neg74.7%
Simplified74.7%
if -4.89999999999999984e185 < z < -3.10000000000000011e-117Initial program 70.6%
Taylor expanded in b around inf 57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in i around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
associate-/l*61.7%
Simplified61.7%
if -3.10000000000000011e-117 < z < 3.1000000000000002e-281Initial program 79.3%
Taylor expanded in i around inf 67.0%
distribute-lft-out--67.0%
*-commutative67.0%
Simplified67.0%
if 3.1000000000000002e-281 < z < 8.0000000000000002e-232Initial program 83.3%
Taylor expanded in t around inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
if 8.0000000000000002e-232 < z < 9.59999999999999999e-78Initial program 84.8%
Taylor expanded in a around -inf 53.0%
if 9.59999999999999999e-78 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification66.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -8.5e+158)
t_2
(if (<= c -2.5e-21)
t_1
(if (<= c -1e-100)
(* j (- (* t c) (* y i)))
(if (<= c 860000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+158) {
tmp = t_2;
} else if (c <= -2.5e-21) {
tmp = t_1;
} else if (c <= -1e-100) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 860000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
if (c <= (-8.5d+158)) then
tmp = t_2
else if (c <= (-2.5d-21)) then
tmp = t_1
else if (c <= (-1d-100)) then
tmp = j * ((t * c) - (y * i))
else if (c <= 860000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+158) {
tmp = t_2;
} else if (c <= -2.5e-21) {
tmp = t_1;
} else if (c <= -1e-100) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 860000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -8.5e+158: tmp = t_2 elif c <= -2.5e-21: tmp = t_1 elif c <= -1e-100: tmp = j * ((t * c) - (y * i)) elif c <= 860000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.5e+158) tmp = t_2; elseif (c <= -2.5e-21) tmp = t_1; elseif (c <= -1e-100) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (c <= 860000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -8.5e+158) tmp = t_2; elseif (c <= -2.5e-21) tmp = t_1; elseif (c <= -1e-100) tmp = j * ((t * c) - (y * i)); elseif (c <= 860000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.5e+158], t$95$2, If[LessEqual[c, -2.5e-21], t$95$1, If[LessEqual[c, -1e-100], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 860000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{+158}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1 \cdot 10^{-100}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 860000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -8.49999999999999978e158 or 8.6e5 < c Initial program 67.2%
Taylor expanded in c around inf 65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
if -8.49999999999999978e158 < c < -2.49999999999999986e-21 or -1e-100 < c < 8.6e5Initial program 75.9%
Taylor expanded in y around 0 62.5%
+-commutative62.5%
*-commutative62.5%
associate-*r*62.5%
*-commutative62.5%
associate-*l*62.5%
mul-1-neg62.5%
associate-*r*55.6%
*-commutative55.6%
associate-*l*57.1%
distribute-rgt-neg-in57.1%
mul-1-neg57.1%
distribute-lft-in57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in c around 0 53.8%
associate-*r*53.8%
neg-mul-153.8%
cancel-sign-sub53.8%
mul-1-neg53.8%
distribute-rgt-neg-in53.8%
mul-1-neg53.8%
distribute-lft-in56.3%
+-commutative56.3%
mul-1-neg56.3%
unsub-neg56.3%
Simplified56.3%
if -2.49999999999999986e-21 < c < -1e-100Initial program 84.5%
Taylor expanded in j around inf 65.9%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= z -2.9e+192)
(* y (* x z))
(if (<= z -2.35e-30)
t_1
(if (<= z 6.2e-160)
(* a (- (* b i) (* x t)))
(if (<= z 6e+169) t_1 (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (z <= -2.9e+192) {
tmp = y * (x * z);
} else if (z <= -2.35e-30) {
tmp = t_1;
} else if (z <= 6.2e-160) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 6e+169) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (z <= (-2.9d+192)) then
tmp = y * (x * z)
else if (z <= (-2.35d-30)) then
tmp = t_1
else if (z <= 6.2d-160) then
tmp = a * ((b * i) - (x * t))
else if (z <= 6d+169) then
tmp = t_1
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (z <= -2.9e+192) {
tmp = y * (x * z);
} else if (z <= -2.35e-30) {
tmp = t_1;
} else if (z <= 6.2e-160) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 6e+169) {
tmp = t_1;
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if z <= -2.9e+192: tmp = y * (x * z) elif z <= -2.35e-30: tmp = t_1 elif z <= 6.2e-160: tmp = a * ((b * i) - (x * t)) elif z <= 6e+169: tmp = t_1 else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (z <= -2.9e+192) tmp = Float64(y * Float64(x * z)); elseif (z <= -2.35e-30) tmp = t_1; elseif (z <= 6.2e-160) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 6e+169) tmp = t_1; else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (z <= -2.9e+192) tmp = y * (x * z); elseif (z <= -2.35e-30) tmp = t_1; elseif (z <= 6.2e-160) tmp = a * ((b * i) - (x * t)); elseif (z <= 6e+169) tmp = t_1; else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+192], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.35e-30], t$95$1, If[LessEqual[z, 6.2e-160], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e+169], t$95$1, N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+192}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-160}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+169}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -2.9000000000000001e192Initial program 64.2%
Taylor expanded in y around inf 80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
Simplified80.5%
Taylor expanded in x around inf 65.4%
*-commutative65.4%
associate-*l*68.8%
Simplified68.8%
if -2.9000000000000001e192 < z < -2.34999999999999985e-30 or 6.2000000000000001e-160 < z < 5.9999999999999999e169Initial program 71.2%
Taylor expanded in b around inf 51.8%
*-commutative51.8%
Simplified51.8%
if -2.34999999999999985e-30 < z < 6.2000000000000001e-160Initial program 80.0%
Taylor expanded in y around 0 67.6%
+-commutative67.6%
*-commutative67.6%
associate-*r*66.4%
*-commutative66.4%
associate-*l*67.1%
mul-1-neg67.1%
associate-*r*61.7%
*-commutative61.7%
associate-*l*63.8%
distribute-rgt-neg-in63.8%
mul-1-neg63.8%
distribute-lft-in65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in c around 0 53.7%
associate-*r*53.7%
neg-mul-153.7%
cancel-sign-sub53.7%
mul-1-neg53.7%
distribute-rgt-neg-in53.7%
mul-1-neg53.7%
distribute-lft-in54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
Simplified54.8%
if 5.9999999999999999e169 < z Initial program 63.1%
Taylor expanded in t around 0 70.0%
associate-*r*70.0%
associate-*r*70.0%
*-commutative70.0%
associate-*r*86.4%
distribute-rgt-in93.3%
+-commutative93.3%
mul-1-neg93.3%
unsub-neg93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in x around inf 57.7%
associate-*r*70.7%
*-commutative70.7%
Simplified70.7%
Final simplification56.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -4.4e-122)
t_2
(if (<= a -7e-227)
t_1
(if (<= a 4.85e-231) (* y (* x z)) (if (<= a 2.55e+29) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * -(z * c);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.4e-122) {
tmp = t_2;
} else if (a <= -7e-227) {
tmp = t_1;
} else if (a <= 4.85e-231) {
tmp = y * (x * z);
} else if (a <= 2.55e+29) {
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 = b * -(z * c)
t_2 = a * ((b * i) - (x * t))
if (a <= (-4.4d-122)) then
tmp = t_2
else if (a <= (-7d-227)) then
tmp = t_1
else if (a <= 4.85d-231) then
tmp = y * (x * z)
else if (a <= 2.55d+29) 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 = b * -(z * c);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4.4e-122) {
tmp = t_2;
} else if (a <= -7e-227) {
tmp = t_1;
} else if (a <= 4.85e-231) {
tmp = y * (x * z);
} else if (a <= 2.55e+29) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * -(z * c) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4.4e-122: tmp = t_2 elif a <= -7e-227: tmp = t_1 elif a <= 4.85e-231: tmp = y * (x * z) elif a <= 2.55e+29: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(-Float64(z * c))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4.4e-122) tmp = t_2; elseif (a <= -7e-227) tmp = t_1; elseif (a <= 4.85e-231) tmp = Float64(y * Float64(x * z)); elseif (a <= 2.55e+29) 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 = b * -(z * c); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4.4e-122) tmp = t_2; elseif (a <= -7e-227) tmp = t_1; elseif (a <= 4.85e-231) tmp = y * (x * z); elseif (a <= 2.55e+29) 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[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.4e-122], t$95$2, If[LessEqual[a, -7e-227], t$95$1, If[LessEqual[a, 4.85e-231], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.55e+29], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-z \cdot c\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.4 \cdot 10^{-122}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -7 \cdot 10^{-227}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.85 \cdot 10^{-231}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 2.55 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.4e-122 or 2.55e29 < a Initial program 67.1%
Taylor expanded in y around 0 67.8%
+-commutative67.8%
*-commutative67.8%
associate-*r*67.0%
*-commutative67.0%
associate-*l*67.7%
mul-1-neg67.7%
associate-*r*60.5%
*-commutative60.5%
associate-*l*65.1%
distribute-rgt-neg-in65.1%
mul-1-neg65.1%
distribute-lft-in66.5%
mul-1-neg66.5%
unsub-neg66.5%
*-commutative66.5%
*-commutative66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in c around 0 59.2%
associate-*r*59.2%
neg-mul-159.2%
cancel-sign-sub59.2%
mul-1-neg59.2%
distribute-rgt-neg-in59.2%
mul-1-neg59.2%
distribute-lft-in61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
Simplified61.9%
if -4.4e-122 < a < -7.0000000000000002e-227 or 4.8499999999999999e-231 < a < 2.55e29Initial program 80.0%
Taylor expanded in t around 0 68.9%
associate-*r*70.3%
associate-*r*70.3%
*-commutative70.3%
associate-*r*70.3%
distribute-rgt-in71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in c around inf 45.5%
associate-*r*45.5%
neg-mul-145.5%
Simplified45.5%
if -7.0000000000000002e-227 < a < 4.8499999999999999e-231Initial program 80.8%
Taylor expanded in y around inf 52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Taylor expanded in x around inf 33.8%
*-commutative33.8%
associate-*l*36.5%
Simplified36.5%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -0.00019)
(* y (- (* x z) (* i j)))
(if (<= y 2e+72)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
(* y (* x (- z (* i (/ j x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -0.00019) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 2e+72) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = y * (x * (z - (i * (j / x))));
}
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 (y <= (-0.00019d0)) then
tmp = y * ((x * z) - (i * j))
else if (y <= 2d+72) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else
tmp = y * (x * (z - (i * (j / x))))
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 (y <= -0.00019) {
tmp = y * ((x * z) - (i * j));
} else if (y <= 2e+72) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = y * (x * (z - (i * (j / x))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -0.00019: tmp = y * ((x * z) - (i * j)) elif y <= 2e+72: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) else: tmp = y * (x * (z - (i * (j / x)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -0.00019) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (y <= 2e+72) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -0.00019) tmp = y * ((x * z) - (i * j)); elseif (y <= 2e+72) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); else tmp = y * (x * (z - (i * (j / x)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -0.00019], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+72], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00019:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\
\end{array}
\end{array}
if y < -1.9000000000000001e-4Initial program 59.2%
Taylor expanded in y around inf 76.5%
+-commutative76.5%
mul-1-neg76.5%
unsub-neg76.5%
Simplified76.5%
if -1.9000000000000001e-4 < y < 1.99999999999999989e72Initial program 84.5%
Taylor expanded in y around 0 78.4%
+-commutative78.4%
*-commutative78.4%
associate-*r*77.1%
*-commutative77.1%
associate-*l*77.6%
mul-1-neg77.6%
associate-*r*74.5%
*-commutative74.5%
associate-*l*77.7%
distribute-rgt-neg-in77.7%
mul-1-neg77.7%
distribute-lft-in79.0%
mul-1-neg79.0%
unsub-neg79.0%
*-commutative79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
if 1.99999999999999989e72 < y Initial program 48.5%
Taylor expanded in y around inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
Simplified71.1%
Taylor expanded in x around inf 71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*71.4%
Simplified71.4%
Final simplification77.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -2.55e+98)
t_1
(if (<= i 1.75e-205)
(* (- a) (* x t))
(if (<= i 4.1e-70)
(* y (* x z))
(if (<= i 8.5e+132) (* z (* c (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (i <= -2.55e+98) {
tmp = t_1;
} else if (i <= 1.75e-205) {
tmp = -a * (x * t);
} else if (i <= 4.1e-70) {
tmp = y * (x * z);
} else if (i <= 8.5e+132) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * i)
if (i <= (-2.55d+98)) then
tmp = t_1
else if (i <= 1.75d-205) then
tmp = -a * (x * t)
else if (i <= 4.1d-70) then
tmp = y * (x * z)
else if (i <= 8.5d+132) then
tmp = z * (c * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (i <= -2.55e+98) {
tmp = t_1;
} else if (i <= 1.75e-205) {
tmp = -a * (x * t);
} else if (i <= 4.1e-70) {
tmp = y * (x * z);
} else if (i <= 8.5e+132) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -2.55e+98: tmp = t_1 elif i <= 1.75e-205: tmp = -a * (x * t) elif i <= 4.1e-70: tmp = y * (x * z) elif i <= 8.5e+132: tmp = z * (c * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -2.55e+98) tmp = t_1; elseif (i <= 1.75e-205) tmp = Float64(Float64(-a) * Float64(x * t)); elseif (i <= 4.1e-70) tmp = Float64(y * Float64(x * z)); elseif (i <= 8.5e+132) tmp = Float64(z * Float64(c * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -2.55e+98) tmp = t_1; elseif (i <= 1.75e-205) tmp = -a * (x * t); elseif (i <= 4.1e-70) tmp = y * (x * z); elseif (i <= 8.5e+132) tmp = z * (c * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.55e+98], t$95$1, If[LessEqual[i, 1.75e-205], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.1e-70], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e+132], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -2.55 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{-205}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;i \leq 4.1 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+132}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -2.54999999999999994e98 or 8.49999999999999969e132 < i Initial program 65.7%
Taylor expanded in b around inf 58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in a around inf 50.2%
if -2.54999999999999994e98 < i < 1.75e-205Initial program 82.1%
+-commutative82.1%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
cancel-sign-sub-inv84.2%
cancel-sign-sub84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
fma-neg84.2%
*-commutative84.2%
distribute-rgt-neg-out84.2%
remove-double-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in x around inf 50.8%
Taylor expanded in a around inf 35.3%
if 1.75e-205 < i < 4.09999999999999977e-70Initial program 64.2%
Taylor expanded in y around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in x around inf 32.3%
*-commutative32.3%
associate-*l*43.8%
Simplified43.8%
if 4.09999999999999977e-70 < i < 8.49999999999999969e132Initial program 73.5%
Taylor expanded in z around inf 58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around 0 46.8%
neg-mul-146.8%
distribute-lft-neg-in46.8%
*-commutative46.8%
Simplified46.8%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -3.5e+98)
t_1
(if (<= i 7.5e-207)
(* (- a) (* x t))
(if (<= i 3.3e-70)
(* y (* x z))
(if (<= i 7.5e+130) (* z (* c (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= 7.5e-207) {
tmp = -a * (x * t);
} else if (i <= 3.3e-70) {
tmp = y * (x * z);
} else if (i <= 7.5e+130) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * i)
if (i <= (-3.5d+98)) then
tmp = t_1
else if (i <= 7.5d-207) then
tmp = -a * (x * t)
else if (i <= 3.3d-70) then
tmp = y * (x * z)
else if (i <= 7.5d+130) then
tmp = z * (c * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (i <= -3.5e+98) {
tmp = t_1;
} else if (i <= 7.5e-207) {
tmp = -a * (x * t);
} else if (i <= 3.3e-70) {
tmp = y * (x * z);
} else if (i <= 7.5e+130) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -3.5e+98: tmp = t_1 elif i <= 7.5e-207: tmp = -a * (x * t) elif i <= 3.3e-70: tmp = y * (x * z) elif i <= 7.5e+130: tmp = z * (c * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -3.5e+98) tmp = t_1; elseif (i <= 7.5e-207) tmp = Float64(Float64(-a) * Float64(x * t)); elseif (i <= 3.3e-70) tmp = Float64(y * Float64(x * z)); elseif (i <= 7.5e+130) tmp = Float64(z * Float64(c * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -3.5e+98) tmp = t_1; elseif (i <= 7.5e-207) tmp = -a * (x * t); elseif (i <= 3.3e-70) tmp = y * (x * z); elseif (i <= 7.5e+130) tmp = z * (c * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+98], t$95$1, If[LessEqual[i, 7.5e-207], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.3e-70], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+130], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{-207}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{+130}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.5e98 or 7.5000000000000003e130 < i Initial program 65.7%
Taylor expanded in b around inf 58.7%
*-commutative58.7%
Simplified58.7%
Taylor expanded in a around inf 50.2%
if -3.5e98 < i < 7.5000000000000006e-207Initial program 82.1%
Taylor expanded in t around -inf 72.8%
Simplified72.9%
Taylor expanded in x around inf 43.5%
mul-1-neg43.5%
associate-*r*45.4%
distribute-rgt-neg-in45.4%
mul-1-neg45.4%
distribute-lft-out--45.4%
cancel-sign-sub-inv45.4%
metadata-eval45.4%
*-lft-identity45.4%
+-commutative45.4%
mul-1-neg45.4%
unsub-neg45.4%
associate-/l*45.3%
Simplified45.3%
Taylor expanded in y around 0 35.3%
neg-mul-135.3%
Simplified35.3%
if 7.5000000000000006e-207 < i < 3.30000000000000016e-70Initial program 64.2%
Taylor expanded in y around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in x around inf 32.3%
*-commutative32.3%
associate-*l*43.8%
Simplified43.8%
if 3.30000000000000016e-70 < i < 7.5000000000000003e130Initial program 73.5%
Taylor expanded in z around inf 58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in x around 0 46.8%
neg-mul-146.8%
distribute-lft-neg-in46.8%
*-commutative46.8%
Simplified46.8%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* z c)))) (t_2 (* b (* a i))))
(if (<= a -6e-122)
t_2
(if (<= a -4.5e-232)
t_1
(if (<= a 9.6e-88) (* z (* x y)) (if (<= a 1.22e+31) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * -(z * c);
double t_2 = b * (a * i);
double tmp;
if (a <= -6e-122) {
tmp = t_2;
} else if (a <= -4.5e-232) {
tmp = t_1;
} else if (a <= 9.6e-88) {
tmp = z * (x * y);
} else if (a <= 1.22e+31) {
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 = b * -(z * c)
t_2 = b * (a * i)
if (a <= (-6d-122)) then
tmp = t_2
else if (a <= (-4.5d-232)) then
tmp = t_1
else if (a <= 9.6d-88) then
tmp = z * (x * y)
else if (a <= 1.22d+31) 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 = b * -(z * c);
double t_2 = b * (a * i);
double tmp;
if (a <= -6e-122) {
tmp = t_2;
} else if (a <= -4.5e-232) {
tmp = t_1;
} else if (a <= 9.6e-88) {
tmp = z * (x * y);
} else if (a <= 1.22e+31) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * -(z * c) t_2 = b * (a * i) tmp = 0 if a <= -6e-122: tmp = t_2 elif a <= -4.5e-232: tmp = t_1 elif a <= 9.6e-88: tmp = z * (x * y) elif a <= 1.22e+31: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(-Float64(z * c))) t_2 = Float64(b * Float64(a * i)) tmp = 0.0 if (a <= -6e-122) tmp = t_2; elseif (a <= -4.5e-232) tmp = t_1; elseif (a <= 9.6e-88) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.22e+31) 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 = b * -(z * c); t_2 = b * (a * i); tmp = 0.0; if (a <= -6e-122) tmp = t_2; elseif (a <= -4.5e-232) tmp = t_1; elseif (a <= 9.6e-88) tmp = z * (x * y); elseif (a <= 1.22e+31) 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[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e-122], t$95$2, If[LessEqual[a, -4.5e-232], t$95$1, If[LessEqual[a, 9.6e-88], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.22e+31], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(-z \cdot c\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -6 \cdot 10^{-122}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 9.6 \cdot 10^{-88}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.00000000000000009e-122 or 1.22e31 < a Initial program 67.1%
Taylor expanded in b around inf 46.4%
*-commutative46.4%
Simplified46.4%
Taylor expanded in a around inf 40.8%
if -6.00000000000000009e-122 < a < -4.49999999999999967e-232 or 9.5999999999999998e-88 < a < 1.22e31Initial program 80.7%
Taylor expanded in b around inf 53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in a around 0 51.3%
mul-1-neg51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
if -4.49999999999999967e-232 < a < 9.5999999999999998e-88Initial program 79.8%
Taylor expanded in t around 0 68.3%
associate-*r*68.4%
associate-*r*68.4%
*-commutative68.4%
associate-*r*68.3%
distribute-rgt-in70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in x around inf 33.4%
associate-*r*35.0%
*-commutative35.0%
Simplified35.0%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.6e+187)
(* y (- (* x z) (* i j)))
(if (<= z -1.25e-26)
(* b (* i (- a (* c (/ z i)))))
(if (<= z 1.48e-77)
(* a (- (* b i) (* x t)))
(* 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.6e+187) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.25e-26) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 1.48e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = 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.6d+187)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-1.25d-26)) then
tmp = b * (i * (a - (c * (z / i))))
else if (z <= 1.48d-77) then
tmp = a * ((b * i) - (x * t))
else
tmp = 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.6e+187) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.25e-26) {
tmp = b * (i * (a - (c * (z / i))));
} else if (z <= 1.48e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.6e+187: tmp = y * ((x * z) - (i * j)) elif z <= -1.25e-26: tmp = b * (i * (a - (c * (z / i)))) elif z <= 1.48e-77: tmp = a * ((b * i) - (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.6e+187) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -1.25e-26) tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i))))); elseif (z <= 1.48e-77) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.6e+187) tmp = y * ((x * z) - (i * j)); elseif (z <= -1.25e-26) tmp = b * (i * (a - (c * (z / i)))); elseif (z <= 1.48e-77) tmp = a * ((b * i) - (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.6e+187], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.25e-26], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.48e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+187}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-26}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{elif}\;z \leq 1.48 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -2.5999999999999999e187Initial program 65.6%
Taylor expanded in y around inf 77.6%
+-commutative77.6%
mul-1-neg77.6%
unsub-neg77.6%
Simplified77.6%
if -2.5999999999999999e187 < z < -1.25000000000000005e-26Initial program 71.9%
Taylor expanded in b around inf 63.2%
*-commutative63.2%
Simplified63.2%
Taylor expanded in i around inf 67.2%
mul-1-neg67.2%
unsub-neg67.2%
associate-/l*67.2%
Simplified67.2%
if -1.25000000000000005e-26 < z < 1.48000000000000002e-77Initial program 79.2%
Taylor expanded in a around -inf 53.9%
if 1.48000000000000002e-77 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.3e+189)
(* y (- (* x z) (* i j)))
(if (<= z -1.15e-27)
(* b (- (* a i) (* z c)))
(if (<= z 1.5e-77) (* a (- (* b i) (* x t))) (* 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 <= -1.3e+189) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.15e-27) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 1.5e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = 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 <= (-1.3d+189)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-1.15d-27)) then
tmp = b * ((a * i) - (z * c))
else if (z <= 1.5d-77) then
tmp = a * ((b * i) - (x * t))
else
tmp = 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 <= -1.3e+189) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -1.15e-27) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 1.5e-77) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.3e+189: tmp = y * ((x * z) - (i * j)) elif z <= -1.15e-27: tmp = b * ((a * i) - (z * c)) elif z <= 1.5e-77: tmp = a * ((b * i) - (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.3e+189) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -1.15e-27) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= 1.5e-77) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.3e+189) tmp = y * ((x * z) - (i * j)); elseif (z <= -1.15e-27) tmp = b * ((a * i) - (z * c)); elseif (z <= 1.5e-77) tmp = a * ((b * i) - (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.3e+189], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-27], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+189}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-27}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.29999999999999991e189Initial program 64.2%
Taylor expanded in y around inf 80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
Simplified80.5%
if -1.29999999999999991e189 < z < -1.15e-27Initial program 72.5%
Taylor expanded in b around inf 62.1%
*-commutative62.1%
Simplified62.1%
if -1.15e-27 < z < 1.50000000000000008e-77Initial program 79.2%
Taylor expanded in a around -inf 53.9%
if 1.50000000000000008e-77 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3e+192)
(* y (- (* x z) (* i j)))
(if (<= z -3e-33)
(* b (- (* a i) (* z c)))
(if (<= z 9.5e-78) (* a (- (* b i) (* x t))) (* 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 <= -3e+192) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3e-33) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 9.5e-78) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = 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 <= (-3d+192)) then
tmp = y * ((x * z) - (i * j))
else if (z <= (-3d-33)) then
tmp = b * ((a * i) - (z * c))
else if (z <= 9.5d-78) then
tmp = a * ((b * i) - (x * t))
else
tmp = 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 <= -3e+192) {
tmp = y * ((x * z) - (i * j));
} else if (z <= -3e-33) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 9.5e-78) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3e+192: tmp = y * ((x * z) - (i * j)) elif z <= -3e-33: tmp = b * ((a * i) - (z * c)) elif z <= 9.5e-78: tmp = a * ((b * i) - (x * t)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3e+192) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= -3e-33) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= 9.5e-78) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3e+192) tmp = y * ((x * z) - (i * j)); elseif (z <= -3e-33) tmp = b * ((a * i) - (z * c)); elseif (z <= 9.5e-78) tmp = a * ((b * i) - (x * t)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3e+192], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-33], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-78], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+192}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-33}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -3e192Initial program 64.2%
Taylor expanded in y around inf 80.5%
+-commutative80.5%
mul-1-neg80.5%
unsub-neg80.5%
Simplified80.5%
if -3e192 < z < -3.0000000000000002e-33Initial program 72.5%
Taylor expanded in b around inf 62.1%
*-commutative62.1%
Simplified62.1%
if -3.0000000000000002e-33 < z < 9.4999999999999997e-78Initial program 79.2%
Taylor expanded in y around 0 69.5%
+-commutative69.5%
*-commutative69.5%
associate-*r*68.5%
*-commutative68.5%
associate-*l*69.1%
mul-1-neg69.1%
associate-*r*63.6%
*-commutative63.6%
associate-*l*66.3%
distribute-rgt-neg-in66.3%
mul-1-neg66.3%
distribute-lft-in67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in c around 0 52.9%
associate-*r*52.9%
neg-mul-152.9%
cancel-sign-sub52.9%
mul-1-neg52.9%
distribute-rgt-neg-in52.9%
mul-1-neg52.9%
distribute-lft-in53.9%
+-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
if 9.4999999999999997e-78 < z Initial program 66.6%
Taylor expanded in z around inf 71.5%
*-commutative71.5%
Simplified71.5%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -9.5e+119)
(* x (* t (- a)))
(if (or (<= a -6e-122) (not (<= a 1.5e+30)))
(* b (* a i))
(* b (- (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -9.5e+119) {
tmp = x * (t * -a);
} else if ((a <= -6e-122) || !(a <= 1.5e+30)) {
tmp = b * (a * i);
} else {
tmp = b * -(z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-9.5d+119)) then
tmp = x * (t * -a)
else if ((a <= (-6d-122)) .or. (.not. (a <= 1.5d+30))) then
tmp = b * (a * i)
else
tmp = b * -(z * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -9.5e+119) {
tmp = x * (t * -a);
} else if ((a <= -6e-122) || !(a <= 1.5e+30)) {
tmp = b * (a * i);
} else {
tmp = b * -(z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -9.5e+119: tmp = x * (t * -a) elif (a <= -6e-122) or not (a <= 1.5e+30): tmp = b * (a * i) else: tmp = b * -(z * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -9.5e+119) tmp = Float64(x * Float64(t * Float64(-a))); elseif ((a <= -6e-122) || !(a <= 1.5e+30)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(b * Float64(-Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -9.5e+119) tmp = x * (t * -a); elseif ((a <= -6e-122) || ~((a <= 1.5e+30))) tmp = b * (a * i); else tmp = b * -(z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -9.5e+119], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -6e-122], N[Not[LessEqual[a, 1.5e+30]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -6 \cdot 10^{-122} \lor \neg \left(a \leq 1.5 \cdot 10^{+30}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(-z \cdot c\right)\\
\end{array}
\end{array}
if a < -9.4999999999999994e119Initial program 65.6%
+-commutative65.6%
fma-define70.0%
*-commutative70.0%
*-commutative70.0%
cancel-sign-sub-inv70.0%
cancel-sign-sub70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
fma-neg70.0%
*-commutative70.0%
distribute-rgt-neg-out70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in x around inf 55.4%
Taylor expanded in a around inf 46.7%
mul-1-neg46.7%
associate-*r*49.0%
distribute-lft-neg-out49.0%
*-commutative49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
if -9.4999999999999994e119 < a < -6.00000000000000009e-122 or 1.49999999999999989e30 < a Initial program 67.7%
Taylor expanded in b around inf 47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around inf 41.1%
if -6.00000000000000009e-122 < a < 1.49999999999999989e30Initial program 80.2%
Taylor expanded in t around 0 70.0%
associate-*r*70.1%
associate-*r*70.1%
*-commutative70.1%
associate-*r*70.9%
distribute-rgt-in71.9%
+-commutative71.9%
mul-1-neg71.9%
unsub-neg71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in c around inf 38.7%
associate-*r*38.7%
neg-mul-138.7%
Simplified38.7%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.2e+122)
(* x (* t (- a)))
(if (or (<= a -1.8e-121) (not (<= a 8.5e+30)))
(* b (* a i))
(* b (- (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.2e+122) {
tmp = x * (t * -a);
} else if ((a <= -1.8e-121) || !(a <= 8.5e+30)) {
tmp = b * (a * i);
} else {
tmp = b * -(z * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2.2d+122)) then
tmp = x * (t * -a)
else if ((a <= (-1.8d-121)) .or. (.not. (a <= 8.5d+30))) then
tmp = b * (a * i)
else
tmp = b * -(z * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.2e+122) {
tmp = x * (t * -a);
} else if ((a <= -1.8e-121) || !(a <= 8.5e+30)) {
tmp = b * (a * i);
} else {
tmp = b * -(z * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.2e+122: tmp = x * (t * -a) elif (a <= -1.8e-121) or not (a <= 8.5e+30): tmp = b * (a * i) else: tmp = b * -(z * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.2e+122) tmp = Float64(x * Float64(t * Float64(-a))); elseif ((a <= -1.8e-121) || !(a <= 8.5e+30)) tmp = Float64(b * Float64(a * i)); else tmp = Float64(b * Float64(-Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.2e+122) tmp = x * (t * -a); elseif ((a <= -1.8e-121) || ~((a <= 8.5e+30))) tmp = b * (a * i); else tmp = b * -(z * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2e+122], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -1.8e-121], N[Not[LessEqual[a, 8.5e+30]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-121} \lor \neg \left(a \leq 8.5 \cdot 10^{+30}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(-z \cdot c\right)\\
\end{array}
\end{array}
if a < -2.1999999999999999e122Initial program 65.6%
+-commutative65.6%
fma-define70.0%
*-commutative70.0%
*-commutative70.0%
cancel-sign-sub-inv70.0%
cancel-sign-sub70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
fma-neg70.0%
*-commutative70.0%
distribute-rgt-neg-out70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in x around inf 55.4%
Taylor expanded in a around inf 46.7%
mul-1-neg46.7%
associate-*r*49.0%
distribute-lft-neg-out49.0%
*-commutative49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
if -2.1999999999999999e122 < a < -1.79999999999999992e-121 or 8.4999999999999995e30 < a Initial program 67.7%
Taylor expanded in b around inf 47.3%
*-commutative47.3%
Simplified47.3%
Taylor expanded in a around inf 41.1%
if -1.79999999999999992e-121 < a < 8.4999999999999995e30Initial program 80.2%
Taylor expanded in b around inf 41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in a around 0 38.7%
mul-1-neg38.7%
*-commutative38.7%
distribute-rgt-neg-in38.7%
*-commutative38.7%
distribute-rgt-neg-in38.7%
Simplified38.7%
Final simplification41.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1e+159) (not (<= c 2400000.0))) (* c (- (* t j) (* z b))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1e+159) || !(c <= 2400000.0)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1d+159)) .or. (.not. (c <= 2400000.0d0))) then
tmp = c * ((t * j) - (z * b))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1e+159) || !(c <= 2400000.0)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1e+159) or not (c <= 2400000.0): tmp = c * ((t * j) - (z * b)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1e+159) || !(c <= 2400000.0)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1e+159) || ~((c <= 2400000.0))) tmp = c * ((t * j) - (z * b)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1e+159], N[Not[LessEqual[c, 2400000.0]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+159} \lor \neg \left(c \leq 2400000\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if c < -9.9999999999999993e158 or 2.4e6 < c Initial program 67.2%
Taylor expanded in c around inf 65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
if -9.9999999999999993e158 < c < 2.4e6Initial program 77.1%
Taylor expanded in y around 0 60.9%
+-commutative60.9%
*-commutative60.9%
associate-*r*61.5%
*-commutative61.5%
associate-*l*61.5%
mul-1-neg61.5%
associate-*r*54.9%
*-commutative54.9%
associate-*l*56.8%
distribute-rgt-neg-in56.8%
mul-1-neg56.8%
distribute-lft-in57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
*-commutative57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in c around 0 50.8%
associate-*r*50.8%
neg-mul-150.8%
cancel-sign-sub50.8%
mul-1-neg50.8%
distribute-rgt-neg-in50.8%
mul-1-neg50.8%
distribute-lft-in52.9%
+-commutative52.9%
mul-1-neg52.9%
unsub-neg52.9%
Simplified52.9%
Final simplification58.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -7e+132) (not (<= z 1.6e-10))) (* y (* x z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7e+132) || !(z <= 1.6e-10)) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-7d+132)) .or. (.not. (z <= 1.6d-10))) then
tmp = y * (x * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -7e+132) || !(z <= 1.6e-10)) {
tmp = y * (x * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -7e+132) or not (z <= 1.6e-10): tmp = y * (x * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -7e+132) || !(z <= 1.6e-10)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -7e+132) || ~((z <= 1.6e-10))) tmp = y * (x * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7e+132], N[Not[LessEqual[z, 1.6e-10]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+132} \lor \neg \left(z \leq 1.6 \cdot 10^{-10}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if z < -7.00000000000000041e132 or 1.5999999999999999e-10 < z Initial program 65.3%
Taylor expanded in y around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
Taylor expanded in x around inf 43.8%
*-commutative43.8%
associate-*l*47.5%
Simplified47.5%
if -7.00000000000000041e132 < z < 1.5999999999999999e-10Initial program 77.1%
Taylor expanded in b around inf 45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in a around inf 31.5%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -1.9e+196) (not (<= z 6.8e-12))) (* x (* y z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.9e+196) || !(z <= 6.8e-12)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-1.9d+196)) .or. (.not. (z <= 6.8d-12))) then
tmp = x * (y * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.9e+196) || !(z <= 6.8e-12)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -1.9e+196) or not (z <= 6.8e-12): tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.9e+196) || !(z <= 6.8e-12)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -1.9e+196) || ~((z <= 6.8e-12))) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.9e+196], N[Not[LessEqual[z, 6.8e-12]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+196} \lor \neg \left(z \leq 6.8 \cdot 10^{-12}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if z < -1.9000000000000001e196 or 6.8000000000000001e-12 < z Initial program 65.0%
+-commutative65.0%
fma-define67.4%
*-commutative67.4%
*-commutative67.4%
cancel-sign-sub-inv67.4%
cancel-sign-sub67.4%
sub-neg67.4%
sub-neg67.4%
*-commutative67.4%
fma-neg67.4%
*-commutative67.4%
distribute-rgt-neg-out67.4%
remove-double-neg67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in x around inf 54.4%
Taylor expanded in a around 0 48.3%
*-commutative48.3%
Simplified48.3%
if -1.9000000000000001e196 < z < 6.8000000000000001e-12Initial program 76.4%
Taylor expanded in b around inf 44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in a around inf 30.6%
Final simplification36.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -5.3e+106) (not (<= c 800000.0))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -5.3e+106) || !(c <= 800000.0)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-5.3d+106)) .or. (.not. (c <= 800000.0d0))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -5.3e+106) || !(c <= 800000.0)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -5.3e+106) or not (c <= 800000.0): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -5.3e+106) || !(c <= 800000.0)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -5.3e+106) || ~((c <= 800000.0))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -5.3e+106], N[Not[LessEqual[c, 800000.0]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.3 \cdot 10^{+106} \lor \neg \left(c \leq 800000\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if c < -5.3e106 or 8e5 < c Initial program 67.2%
Taylor expanded in t around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
*-commutative43.0%
*-commutative43.0%
Simplified43.0%
Taylor expanded in j around inf 35.3%
*-commutative35.3%
Simplified35.3%
if -5.3e106 < c < 8e5Initial program 77.6%
Taylor expanded in b around inf 40.5%
*-commutative40.5%
Simplified40.5%
Taylor expanded in a around inf 33.0%
Final simplification34.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.35e+133) (* y (* x z)) (if (<= z 2.3e-12) (* b (* a i)) (* z (* x y)))))
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.35e+133) {
tmp = y * (x * z);
} else if (z <= 2.3e-12) {
tmp = b * (a * i);
} else {
tmp = z * (x * y);
}
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.35d+133)) then
tmp = y * (x * z)
else if (z <= 2.3d-12) then
tmp = b * (a * i)
else
tmp = z * (x * y)
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.35e+133) {
tmp = y * (x * z);
} else if (z <= 2.3e-12) {
tmp = b * (a * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.35e+133: tmp = y * (x * z) elif z <= 2.3e-12: tmp = b * (a * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.35e+133) tmp = Float64(y * Float64(x * z)); elseif (z <= 2.3e-12) tmp = Float64(b * Float64(a * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.35e+133) tmp = y * (x * z); elseif (z <= 2.3e-12) tmp = b * (a * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.35e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e-12], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+133}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -1.3500000000000001e133Initial program 66.8%
Taylor expanded in y around inf 64.6%
+-commutative64.6%
mul-1-neg64.6%
unsub-neg64.6%
Simplified64.6%
Taylor expanded in x around inf 53.2%
*-commutative53.2%
associate-*l*55.7%
Simplified55.7%
if -1.3500000000000001e133 < z < 2.29999999999999989e-12Initial program 77.1%
Taylor expanded in b around inf 45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in a around inf 31.5%
if 2.29999999999999989e-12 < z Initial program 64.5%
Taylor expanded in t around 0 64.2%
associate-*r*64.2%
associate-*r*64.2%
*-commutative64.2%
associate-*r*68.7%
distribute-rgt-in73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in x around inf 38.9%
associate-*r*44.9%
*-commutative44.9%
Simplified44.9%
Final simplification37.9%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 72.7%
Taylor expanded in b around inf 44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in a around inf 26.2%
(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 72.7%
Taylor expanded in b around inf 44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in a around inf 24.3%
(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 2024103
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* 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)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* 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)))) (- (* 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)))))