
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* t (fma c j (- (* x a)))))))
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))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * fma(c, j, -(x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * fma(c, j, Float64(-Float64(x * a)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(c * j + (-N[(x * a), $MachinePrecision])), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(c, j, -x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 44.6%
*-commutative44.6%
fma-def46.1%
mul-1-neg46.1%
Simplified46.1%
Final simplification80.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* c j) (* x a))))))
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))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((c * j) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((c * j) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((c * j) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 92.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 44.6%
*-commutative44.6%
mul-1-neg44.6%
unsub-neg44.6%
Simplified44.6%
Final simplification80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -6e+58)
t_1
(if (<= j 7e+58)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(if (<= j 1.25e+126)
(- (+ t_1 (* y (* x z))) (* c (* z b)))
(if (<= j 1e+228)
(* i (- (* a b) (* y j)))
(+ t_1 (* i (* a b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6e+58) {
tmp = t_1;
} else if (j <= 7e+58) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (j <= 1.25e+126) {
tmp = (t_1 + (y * (x * z))) - (c * (z * b));
} else if (j <= 1e+228) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1 + (i * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-6d+58)) then
tmp = t_1
else if (j <= 7d+58) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else if (j <= 1.25d+126) then
tmp = (t_1 + (y * (x * z))) - (c * (z * b))
else if (j <= 1d+228) then
tmp = i * ((a * b) - (y * j))
else
tmp = t_1 + (i * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -6e+58) {
tmp = t_1;
} else if (j <= 7e+58) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else if (j <= 1.25e+126) {
tmp = (t_1 + (y * (x * z))) - (c * (z * b));
} else if (j <= 1e+228) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1 + (i * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -6e+58: tmp = t_1 elif j <= 7e+58: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) elif j <= 1.25e+126: tmp = (t_1 + (y * (x * z))) - (c * (z * b)) elif j <= 1e+228: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 + (i * (a * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -6e+58) tmp = t_1; elseif (j <= 7e+58) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 1.25e+126) tmp = Float64(Float64(t_1 + Float64(y * Float64(x * z))) - Float64(c * Float64(z * b))); elseif (j <= 1e+228) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(t_1 + Float64(i * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -6e+58) tmp = t_1; elseif (j <= 7e+58) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); elseif (j <= 1.25e+126) tmp = (t_1 + (y * (x * z))) - (c * (z * b)); elseif (j <= 1e+228) tmp = i * ((a * b) - (y * j)); else tmp = t_1 + (i * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6e+58], t$95$1, If[LessEqual[j, 7e+58], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.25e+126], N[(N[(t$95$1 + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1e+228], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -6 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+58}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{+126}:\\
\;\;\;\;\left(t_1 + y \cdot \left(x \cdot z\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;j \leq 10^{+228}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if j < -6.0000000000000005e58Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
add-cube-cbrt62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
Applied egg-rr62.4%
Taylor expanded in j around inf 60.8%
if -6.0000000000000005e58 < j < 6.9999999999999995e58Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in j around 0 71.9%
*-commutative71.9%
sub-neg71.9%
mul-1-neg71.9%
*-commutative71.9%
*-commutative71.9%
mul-1-neg71.9%
*-commutative71.9%
sub-neg71.9%
Simplified71.9%
if 6.9999999999999995e58 < j < 1.24999999999999994e126Initial program 44.5%
cancel-sign-sub44.5%
cancel-sign-sub-inv44.5%
*-commutative44.5%
*-commutative44.5%
remove-double-neg44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in a around 0 88.7%
if 1.24999999999999994e126 < j < 9.9999999999999992e227Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in i around inf 68.5%
*-commutative68.5%
sub-neg68.5%
mul-1-neg68.5%
remove-double-neg68.5%
+-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
Simplified68.5%
if 9.9999999999999992e227 < j Initial program 71.9%
cancel-sign-sub71.9%
cancel-sign-sub-inv71.9%
*-commutative71.9%
*-commutative71.9%
remove-double-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in i around inf 80.3%
*-commutative80.3%
associate-*r*84.2%
Simplified84.2%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b)))))
(if (<= j -2.05e+56)
t_1
(if (<= j 1.45e-167)
(+ (* y (* x z)) (* b (- (* a i) (* z c))))
(if (<= j 3.5e-75)
(* x (- (* y z) (* t a)))
(if (<= j 1e+18) (* z (- (* x y) (* b c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (j <= -2.05e+56) {
tmp = t_1;
} else if (j <= 1.45e-167) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 3.5e-75) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1e+18) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (i * (a * b))
if (j <= (-2.05d+56)) then
tmp = t_1
else if (j <= 1.45d-167) then
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)))
else if (j <= 3.5d-75) then
tmp = x * ((y * z) - (t * a))
else if (j <= 1d+18) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (j <= -2.05e+56) {
tmp = t_1;
} else if (j <= 1.45e-167) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 3.5e-75) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 1e+18) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) tmp = 0 if j <= -2.05e+56: tmp = t_1 elif j <= 1.45e-167: tmp = (y * (x * z)) + (b * ((a * i) - (z * c))) elif j <= 3.5e-75: tmp = x * ((y * z) - (t * a)) elif j <= 1e+18: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 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(i * Float64(a * b))) tmp = 0.0 if (j <= -2.05e+56) tmp = t_1; elseif (j <= 1.45e-167) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 3.5e-75) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 1e+18) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)); tmp = 0.0; if (j <= -2.05e+56) tmp = t_1; elseif (j <= 1.45e-167) tmp = (y * (x * z)) + (b * ((a * i) - (z * c))); elseif (j <= 3.5e-75) tmp = x * ((y * z) - (t * a)); elseif (j <= 1e+18) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.05e+56], t$95$1, If[LessEqual[j, 1.45e-167], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.5e-75], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1e+18], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;j \leq -2.05 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-167}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-75}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 10^{+18}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -2.0500000000000002e56 or 1e18 < j Initial program 65.7%
cancel-sign-sub65.7%
cancel-sign-sub-inv65.7%
*-commutative65.7%
*-commutative65.7%
remove-double-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in i around inf 66.0%
*-commutative66.0%
associate-*r*66.9%
Simplified66.9%
if -2.0500000000000002e56 < j < 1.45000000000000001e-167Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 72.8%
*-commutative72.8%
sub-neg72.8%
mul-1-neg72.8%
*-commutative72.8%
*-commutative72.8%
mul-1-neg72.8%
*-commutative72.8%
sub-neg72.8%
Simplified72.8%
Taylor expanded in t around 0 67.2%
if 1.45000000000000001e-167 < j < 3.49999999999999985e-75Initial program 65.4%
cancel-sign-sub65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
*-commutative65.4%
remove-double-neg65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in x around inf 65.5%
*-commutative65.5%
Simplified65.5%
if 3.49999999999999985e-75 < j < 1e18Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in z around inf 67.1%
Final simplification66.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -4.8e+60)
t_1
(if (<= j 4.4e+58)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(+ t_1 (* i (* a b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -4.8e+60) {
tmp = t_1;
} else if (j <= 4.4e+58) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + (i * (a * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (j <= (-4.8d+60)) then
tmp = t_1
else if (j <= 4.4d+58) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))
else
tmp = t_1 + (i * (a * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (j <= -4.8e+60) {
tmp = t_1;
} else if (j <= 4.4e+58) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 + (i * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -4.8e+60: tmp = t_1 elif j <= 4.4e+58: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 + (i * (a * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.8e+60) tmp = t_1; elseif (j <= 4.4e+58) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_1 + Float64(i * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -4.8e+60) tmp = t_1; elseif (j <= 4.4e+58) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))); else tmp = t_1 + (i * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.8e+60], t$95$1, If[LessEqual[j, 4.4e+58], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.8 \cdot 10^{+60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+58}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if j < -4.8e60Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
add-cube-cbrt62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
*-commutative62.4%
Applied egg-rr62.4%
Taylor expanded in j around inf 60.8%
if -4.8e60 < j < 4.4000000000000001e58Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in j around 0 71.9%
*-commutative71.9%
sub-neg71.9%
mul-1-neg71.9%
*-commutative71.9%
*-commutative71.9%
mul-1-neg71.9%
*-commutative71.9%
sub-neg71.9%
Simplified71.9%
if 4.4000000000000001e58 < j Initial program 64.4%
cancel-sign-sub64.4%
cancel-sign-sub-inv64.4%
*-commutative64.4%
*-commutative64.4%
remove-double-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in i around inf 69.6%
*-commutative69.6%
associate-*r*71.2%
Simplified71.2%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -6.5e+41)
t_2
(if (<= c -1.2e-84)
t_1
(if (<= c -1.35e-137)
(* x (* y z))
(if (<= c -4.5e-292)
(* a (* b i))
(if (<= c 3e-293) (* z (* x y)) (if (<= c 2.5e-62) 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 * (a * i);
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -6.5e+41) {
tmp = t_2;
} else if (c <= -1.2e-84) {
tmp = t_1;
} else if (c <= -1.35e-137) {
tmp = x * (y * z);
} else if (c <= -4.5e-292) {
tmp = a * (b * i);
} else if (c <= 3e-293) {
tmp = z * (x * y);
} else if (c <= 2.5e-62) {
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 * (a * i)
t_2 = c * ((t * j) - (z * b))
if (c <= (-6.5d+41)) then
tmp = t_2
else if (c <= (-1.2d-84)) then
tmp = t_1
else if (c <= (-1.35d-137)) then
tmp = x * (y * z)
else if (c <= (-4.5d-292)) then
tmp = a * (b * i)
else if (c <= 3d-293) then
tmp = z * (x * y)
else if (c <= 2.5d-62) 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 * (a * i);
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -6.5e+41) {
tmp = t_2;
} else if (c <= -1.2e-84) {
tmp = t_1;
} else if (c <= -1.35e-137) {
tmp = x * (y * z);
} else if (c <= -4.5e-292) {
tmp = a * (b * i);
} else if (c <= 3e-293) {
tmp = z * (x * y);
} else if (c <= 2.5e-62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -6.5e+41: tmp = t_2 elif c <= -1.2e-84: tmp = t_1 elif c <= -1.35e-137: tmp = x * (y * z) elif c <= -4.5e-292: tmp = a * (b * i) elif c <= 3e-293: tmp = z * (x * y) elif c <= 2.5e-62: 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(a * i)) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -6.5e+41) tmp = t_2; elseif (c <= -1.2e-84) tmp = t_1; elseif (c <= -1.35e-137) tmp = Float64(x * Float64(y * z)); elseif (c <= -4.5e-292) tmp = Float64(a * Float64(b * i)); elseif (c <= 3e-293) tmp = Float64(z * Float64(x * y)); elseif (c <= 2.5e-62) 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 * (a * i); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -6.5e+41) tmp = t_2; elseif (c <= -1.2e-84) tmp = t_1; elseif (c <= -1.35e-137) tmp = x * (y * z); elseif (c <= -4.5e-292) tmp = a * (b * i); elseif (c <= 3e-293) tmp = z * (x * y); elseif (c <= 2.5e-62) 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[(a * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.5e+41], t$95$2, If[LessEqual[c, -1.2e-84], t$95$1, If[LessEqual[c, -1.35e-137], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -4.5e-292], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e-293], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.5e-62], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6.5 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.2 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-137}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{-293}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 2.5 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -6.49999999999999975e41 or 2.5000000000000001e-62 < c Initial program 60.9%
cancel-sign-sub60.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
*-commutative60.9%
remove-double-neg60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in c around inf 60.0%
if -6.49999999999999975e41 < c < -1.20000000000000009e-84 or 3.0000000000000002e-293 < c < 2.5000000000000001e-62Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in b around inf 46.7%
Taylor expanded in a around inf 41.8%
if -1.20000000000000009e-84 < c < -1.34999999999999996e-137Initial program 92.7%
cancel-sign-sub92.7%
cancel-sign-sub-inv92.7%
*-commutative92.7%
*-commutative92.7%
remove-double-neg92.7%
*-commutative92.7%
*-commutative92.7%
Simplified92.7%
add-cube-cbrt91.9%
*-commutative91.9%
*-commutative91.9%
*-commutative91.9%
*-commutative91.9%
Applied egg-rr91.9%
Taylor expanded in x around inf 79.5%
*-commutative79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in z around inf 31.0%
associate-*r*44.5%
*-commutative44.5%
Simplified44.5%
if -1.34999999999999996e-137 < c < -4.49999999999999956e-292Initial program 87.1%
cancel-sign-sub87.1%
cancel-sign-sub-inv87.1%
*-commutative87.1%
*-commutative87.1%
remove-double-neg87.1%
*-commutative87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in b around inf 46.6%
Taylor expanded in i around inf 46.5%
if -4.49999999999999956e-292 < c < 3.0000000000000002e-293Initial program 99.8%
cancel-sign-sub99.8%
cancel-sign-sub-inv99.8%
*-commutative99.8%
*-commutative99.8%
remove-double-neg99.8%
*-commutative99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in j around 0 99.8%
*-commutative99.8%
sub-neg99.8%
mul-1-neg99.8%
*-commutative99.8%
*-commutative99.8%
mul-1-neg99.8%
*-commutative99.8%
sub-neg99.8%
Simplified99.8%
Taylor expanded in t around 0 58.3%
Taylor expanded in y around inf 47.4%
*-commutative47.4%
associate-*l*82.5%
*-commutative82.5%
Simplified82.5%
Final simplification52.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -2.1e+42)
t_2
(if (<= c -1.95e-89)
t_1
(if (<= c -8.2e-129)
(* x (* y z))
(if (<= c -7e-293)
t_1
(if (<= c 9e-295) (* z (* x y)) (if (<= c 7.6e-62) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.1e+42) {
tmp = t_2;
} else if (c <= -1.95e-89) {
tmp = t_1;
} else if (c <= -8.2e-129) {
tmp = x * (y * z);
} else if (c <= -7e-293) {
tmp = t_1;
} else if (c <= 9e-295) {
tmp = z * (x * y);
} else if (c <= 7.6e-62) {
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 = i * ((a * b) - (y * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-2.1d+42)) then
tmp = t_2
else if (c <= (-1.95d-89)) then
tmp = t_1
else if (c <= (-8.2d-129)) then
tmp = x * (y * z)
else if (c <= (-7d-293)) then
tmp = t_1
else if (c <= 9d-295) then
tmp = z * (x * y)
else if (c <= 7.6d-62) 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 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -2.1e+42) {
tmp = t_2;
} else if (c <= -1.95e-89) {
tmp = t_1;
} else if (c <= -8.2e-129) {
tmp = x * (y * z);
} else if (c <= -7e-293) {
tmp = t_1;
} else if (c <= 9e-295) {
tmp = z * (x * y);
} else if (c <= 7.6e-62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -2.1e+42: tmp = t_2 elif c <= -1.95e-89: tmp = t_1 elif c <= -8.2e-129: tmp = x * (y * z) elif c <= -7e-293: tmp = t_1 elif c <= 9e-295: tmp = z * (x * y) elif c <= 7.6e-62: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.1e+42) tmp = t_2; elseif (c <= -1.95e-89) tmp = t_1; elseif (c <= -8.2e-129) tmp = Float64(x * Float64(y * z)); elseif (c <= -7e-293) tmp = t_1; elseif (c <= 9e-295) tmp = Float64(z * Float64(x * y)); elseif (c <= 7.6e-62) 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 = i * ((a * b) - (y * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -2.1e+42) tmp = t_2; elseif (c <= -1.95e-89) tmp = t_1; elseif (c <= -8.2e-129) tmp = x * (y * z); elseif (c <= -7e-293) tmp = t_1; elseif (c <= 9e-295) tmp = z * (x * y); elseif (c <= 7.6e-62) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.1e+42], t$95$2, If[LessEqual[c, -1.95e-89], t$95$1, If[LessEqual[c, -8.2e-129], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7e-293], t$95$1, If[LessEqual[c, 9e-295], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e-62], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.1 \cdot 10^{+42}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.95 \cdot 10^{-89}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-129}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -7 \cdot 10^{-293}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 9 \cdot 10^{-295}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{-62}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.09999999999999995e42 or 7.60000000000000013e-62 < c Initial program 60.9%
cancel-sign-sub60.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
*-commutative60.9%
remove-double-neg60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in c around inf 60.0%
if -2.09999999999999995e42 < c < -1.94999999999999989e-89 or -8.1999999999999999e-129 < c < -7.0000000000000004e-293 or 9.0000000000000003e-295 < c < 7.60000000000000013e-62Initial program 72.8%
cancel-sign-sub72.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in i around inf 62.9%
*-commutative62.9%
sub-neg62.9%
mul-1-neg62.9%
remove-double-neg62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
Simplified62.9%
if -1.94999999999999989e-89 < c < -8.1999999999999999e-129Initial program 92.2%
cancel-sign-sub92.2%
cancel-sign-sub-inv92.2%
*-commutative92.2%
*-commutative92.2%
remove-double-neg92.2%
*-commutative92.2%
*-commutative92.2%
Simplified92.2%
add-cube-cbrt91.3%
*-commutative91.3%
*-commutative91.3%
*-commutative91.3%
*-commutative91.3%
Applied egg-rr91.3%
Taylor expanded in x around inf 85.4%
*-commutative85.4%
*-commutative85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in z around inf 33.1%
associate-*r*47.7%
*-commutative47.7%
Simplified47.7%
if -7.0000000000000004e-293 < c < 9.0000000000000003e-295Initial program 99.8%
cancel-sign-sub99.8%
cancel-sign-sub-inv99.8%
*-commutative99.8%
*-commutative99.8%
remove-double-neg99.8%
*-commutative99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in j around 0 99.8%
*-commutative99.8%
sub-neg99.8%
mul-1-neg99.8%
*-commutative99.8%
*-commutative99.8%
mul-1-neg99.8%
*-commutative99.8%
sub-neg99.8%
Simplified99.8%
Taylor expanded in t around 0 58.3%
Taylor expanded in y around inf 47.4%
*-commutative47.4%
associate-*l*82.5%
*-commutative82.5%
Simplified82.5%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -8.5e+41)
t_2
(if (<= c -4.5e-45)
t_1
(if (<= c -8e-131)
(* t (- (* c j) (* x a)))
(if (<= c -1.22e-292)
t_1
(if (<= c 1.8e-296) (* z (* x y)) (if (<= c 6e-58) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+41) {
tmp = t_2;
} else if (c <= -4.5e-45) {
tmp = t_1;
} else if (c <= -8e-131) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.22e-292) {
tmp = t_1;
} else if (c <= 1.8e-296) {
tmp = z * (x * y);
} else if (c <= 6e-58) {
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 = i * ((a * b) - (y * j))
t_2 = c * ((t * j) - (z * b))
if (c <= (-8.5d+41)) then
tmp = t_2
else if (c <= (-4.5d-45)) then
tmp = t_1
else if (c <= (-8d-131)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-1.22d-292)) then
tmp = t_1
else if (c <= 1.8d-296) then
tmp = z * (x * y)
else if (c <= 6d-58) 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 = i * ((a * b) - (y * j));
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e+41) {
tmp = t_2;
} else if (c <= -4.5e-45) {
tmp = t_1;
} else if (c <= -8e-131) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.22e-292) {
tmp = t_1;
} else if (c <= 1.8e-296) {
tmp = z * (x * y);
} else if (c <= 6e-58) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -8.5e+41: tmp = t_2 elif c <= -4.5e-45: tmp = t_1 elif c <= -8e-131: tmp = t * ((c * j) - (x * a)) elif c <= -1.22e-292: tmp = t_1 elif c <= 1.8e-296: tmp = z * (x * y) elif c <= 6e-58: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.5e+41) tmp = t_2; elseif (c <= -4.5e-45) tmp = t_1; elseif (c <= -8e-131) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -1.22e-292) tmp = t_1; elseif (c <= 1.8e-296) tmp = Float64(z * Float64(x * y)); elseif (c <= 6e-58) 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 = i * ((a * b) - (y * j)); t_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -8.5e+41) tmp = t_2; elseif (c <= -4.5e-45) tmp = t_1; elseif (c <= -8e-131) tmp = t * ((c * j) - (x * a)); elseif (c <= -1.22e-292) tmp = t_1; elseif (c <= 1.8e-296) tmp = z * (x * y); elseif (c <= 6e-58) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.5e+41], t$95$2, If[LessEqual[c, -4.5e-45], t$95$1, If[LessEqual[c, -8e-131], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.22e-292], t$95$1, If[LessEqual[c, 1.8e-296], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6e-58], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -4.5 \cdot 10^{-45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -8 \cdot 10^{-131}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -1.22 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{-296}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 6 \cdot 10^{-58}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -8.49999999999999938e41 or 6.00000000000000015e-58 < c Initial program 60.9%
cancel-sign-sub60.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
*-commutative60.9%
remove-double-neg60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in c around inf 60.0%
if -8.49999999999999938e41 < c < -4.4999999999999999e-45 or -7.9999999999999999e-131 < c < -1.2200000000000001e-292 or 1.7999999999999999e-296 < c < 6.00000000000000015e-58Initial program 73.1%
cancel-sign-sub73.1%
cancel-sign-sub-inv73.1%
*-commutative73.1%
*-commutative73.1%
remove-double-neg73.1%
*-commutative73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in i around inf 63.5%
*-commutative63.5%
sub-neg63.5%
mul-1-neg63.5%
remove-double-neg63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
*-commutative63.5%
Simplified63.5%
if -4.4999999999999999e-45 < c < -7.9999999999999999e-131Initial program 84.7%
cancel-sign-sub84.7%
cancel-sign-sub-inv84.7%
*-commutative84.7%
*-commutative84.7%
remove-double-neg84.7%
*-commutative84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in t around inf 53.7%
*-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
Simplified53.7%
if -1.2200000000000001e-292 < c < 1.7999999999999999e-296Initial program 99.8%
cancel-sign-sub99.8%
cancel-sign-sub-inv99.8%
*-commutative99.8%
*-commutative99.8%
remove-double-neg99.8%
*-commutative99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in j around 0 99.8%
*-commutative99.8%
sub-neg99.8%
mul-1-neg99.8%
*-commutative99.8%
*-commutative99.8%
mul-1-neg99.8%
*-commutative99.8%
sub-neg99.8%
Simplified99.8%
Taylor expanded in t around 0 58.3%
Taylor expanded in y around inf 47.4%
*-commutative47.4%
associate-*l*82.5%
*-commutative82.5%
Simplified82.5%
Final simplification61.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.15e-15)
t_2
(if (<= b -2.8e-126)
(* x (- (* y z) (* t a)))
(if (<= b 1.95e-305)
t_1
(if (<= b 8.8e-276)
(* t (- (* c j) (* x a)))
(if (<= b 6.5e-42)
t_1
(if (<= b 5.6e+105) (* c (- (* t j) (* z b))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e-15) {
tmp = t_2;
} else if (b <= -2.8e-126) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.95e-305) {
tmp = t_1;
} else if (b <= 8.8e-276) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.5e-42) {
tmp = t_1;
} else if (b <= 5.6e+105) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.15d-15)) then
tmp = t_2
else if (b <= (-2.8d-126)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1.95d-305) then
tmp = t_1
else if (b <= 8.8d-276) then
tmp = t * ((c * j) - (x * a))
else if (b <= 6.5d-42) then
tmp = t_1
else if (b <= 5.6d+105) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.15e-15) {
tmp = t_2;
} else if (b <= -2.8e-126) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.95e-305) {
tmp = t_1;
} else if (b <= 8.8e-276) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 6.5e-42) {
tmp = t_1;
} else if (b <= 5.6e+105) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.15e-15: tmp = t_2 elif b <= -2.8e-126: tmp = x * ((y * z) - (t * a)) elif b <= 1.95e-305: tmp = t_1 elif b <= 8.8e-276: tmp = t * ((c * j) - (x * a)) elif b <= 6.5e-42: tmp = t_1 elif b <= 5.6e+105: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.15e-15) tmp = t_2; elseif (b <= -2.8e-126) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1.95e-305) tmp = t_1; elseif (b <= 8.8e-276) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 6.5e-42) tmp = t_1; elseif (b <= 5.6e+105) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.15e-15) tmp = t_2; elseif (b <= -2.8e-126) tmp = x * ((y * z) - (t * a)); elseif (b <= 1.95e-305) tmp = t_1; elseif (b <= 8.8e-276) tmp = t * ((c * j) - (x * a)); elseif (b <= 6.5e-42) tmp = t_1; elseif (b <= 5.6e+105) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.15e-15], t$95$2, If[LessEqual[b, -2.8e-126], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-305], t$95$1, If[LessEqual[b, 8.8e-276], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-42], t$95$1, If[LessEqual[b, 5.6e+105], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.15 \cdot 10^{-15}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-126}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-305}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-276}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+105}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.14999999999999995e-15 or 5.6000000000000003e105 < b Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 65.4%
if -1.14999999999999995e-15 < b < -2.79999999999999992e-126Initial program 65.1%
cancel-sign-sub65.1%
cancel-sign-sub-inv65.1%
*-commutative65.1%
*-commutative65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in x around inf 59.8%
*-commutative59.8%
Simplified59.8%
if -2.79999999999999992e-126 < b < 1.95000000000000013e-305 or 8.79999999999999923e-276 < b < 6.4999999999999998e-42Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in y around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
Simplified63.5%
if 1.95000000000000013e-305 < b < 8.79999999999999923e-276Initial program 75.4%
cancel-sign-sub75.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
*-commutative75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in t around inf 75.7%
*-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
if 6.4999999999999998e-42 < b < 5.6000000000000003e105Initial program 60.2%
cancel-sign-sub60.2%
cancel-sign-sub-inv60.2%
*-commutative60.2%
*-commutative60.2%
remove-double-neg60.2%
*-commutative60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in c around inf 53.7%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* i (* a b)))))
(if (<= j -1.16e+56)
t_1
(if (<= j 9e-169)
(+ (* y (* x z)) (* b (- (* a i) (* z c))))
(if (<= j 1.45e+17) (- (* x (- (* y z) (* t a))) (* z (* b c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (j <= -1.16e+56) {
tmp = t_1;
} else if (j <= 9e-169) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 1.45e+17) {
tmp = (x * ((y * z) - (t * a))) - (z * (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (i * (a * b))
if (j <= (-1.16d+56)) then
tmp = t_1
else if (j <= 9d-169) then
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)))
else if (j <= 1.45d+17) then
tmp = (x * ((y * z) - (t * a))) - (z * (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (i * (a * b));
double tmp;
if (j <= -1.16e+56) {
tmp = t_1;
} else if (j <= 9e-169) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else if (j <= 1.45e+17) {
tmp = (x * ((y * z) - (t * a))) - (z * (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)) tmp = 0 if j <= -1.16e+56: tmp = t_1 elif j <= 9e-169: tmp = (y * (x * z)) + (b * ((a * i) - (z * c))) elif j <= 1.45e+17: tmp = (x * ((y * z) - (t * a))) - (z * (b * c)) else: tmp = t_1 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(i * Float64(a * b))) tmp = 0.0 if (j <= -1.16e+56) tmp = t_1; elseif (j <= 9e-169) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (j <= 1.45e+17) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(z * Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (i * (a * b)); tmp = 0.0; if (j <= -1.16e+56) tmp = t_1; elseif (j <= 9e-169) tmp = (y * (x * z)) + (b * ((a * i) - (z * c))); elseif (j <= 1.45e+17) tmp = (x * ((y * z) - (t * a))) - (z * (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.16e+56], t$95$1, If[LessEqual[j, 9e-169], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+17], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;j \leq -1.16 \cdot 10^{+56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-169}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+17}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -1.1599999999999999e56 or 1.45e17 < j Initial program 65.7%
cancel-sign-sub65.7%
cancel-sign-sub-inv65.7%
*-commutative65.7%
*-commutative65.7%
remove-double-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in i around inf 66.0%
*-commutative66.0%
associate-*r*66.9%
Simplified66.9%
if -1.1599999999999999e56 < j < 8.9999999999999997e-169Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around 0 72.8%
*-commutative72.8%
sub-neg72.8%
mul-1-neg72.8%
*-commutative72.8%
*-commutative72.8%
mul-1-neg72.8%
*-commutative72.8%
sub-neg72.8%
Simplified72.8%
Taylor expanded in t around 0 67.2%
if 8.9999999999999997e-169 < j < 1.45e17Initial program 67.3%
cancel-sign-sub67.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
*-commutative67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in j around 0 67.5%
*-commutative67.5%
sub-neg67.5%
mul-1-neg67.5%
*-commutative67.5%
*-commutative67.5%
mul-1-neg67.5%
*-commutative67.5%
sub-neg67.5%
Simplified67.5%
Taylor expanded in i around 0 62.1%
*-commutative62.1%
*-commutative62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r*64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Final simplification66.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -2.95e-52)
(+ t_1 (* c (- (* t j) (* z b))))
(if (<= x -5.4e-299)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= x 3.85e+102)
(+ (* y (* x z)) (* b (- (* a i) (* z c))))
(- t_1 (* z (* b c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.95e-52) {
tmp = t_1 + (c * ((t * j) - (z * b)));
} else if (x <= -5.4e-299) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (x <= 3.85e+102) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-2.95d-52)) then
tmp = t_1 + (c * ((t * j) - (z * b)))
else if (x <= (-5.4d-299)) then
tmp = (j * ((t * c) - (y * i))) + (i * (a * b))
else if (x <= 3.85d+102) then
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)))
else
tmp = t_1 - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -2.95e-52) {
tmp = t_1 + (c * ((t * j) - (z * b)));
} else if (x <= -5.4e-299) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (x <= 3.85e+102) {
tmp = (y * (x * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1 - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -2.95e-52: tmp = t_1 + (c * ((t * j) - (z * b))) elif x <= -5.4e-299: tmp = (j * ((t * c) - (y * i))) + (i * (a * b)) elif x <= 3.85e+102: tmp = (y * (x * z)) + (b * ((a * i) - (z * c))) else: tmp = t_1 - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -2.95e-52) tmp = Float64(t_1 + Float64(c * Float64(Float64(t * j) - Float64(z * b)))); elseif (x <= -5.4e-299) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (x <= 3.85e+102) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(t_1 - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -2.95e-52) tmp = t_1 + (c * ((t * j) - (z * b))); elseif (x <= -5.4e-299) tmp = (j * ((t * c) - (y * i))) + (i * (a * b)); elseif (x <= 3.85e+102) tmp = (y * (x * z)) + (b * ((a * i) - (z * c))); else tmp = t_1 - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.95e-52], N[(t$95$1 + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.4e-299], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.85e+102], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -2.95 \cdot 10^{-52}:\\
\;\;\;\;t_1 + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq -5.4 \cdot 10^{-299}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 3.85 \cdot 10^{+102}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if x < -2.9500000000000001e-52Initial program 72.7%
cancel-sign-sub72.7%
cancel-sign-sub-inv72.7%
*-commutative72.7%
*-commutative72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
add-cube-cbrt72.4%
*-commutative72.4%
*-commutative72.4%
*-commutative72.4%
*-commutative72.4%
Applied egg-rr72.4%
Taylor expanded in i around 0 66.0%
associate--l+66.0%
*-commutative66.0%
*-commutative66.0%
*-commutative66.0%
distribute-lft-out--68.3%
*-commutative68.3%
Simplified68.3%
if -2.9500000000000001e-52 < x < -5.40000000000000004e-299Initial program 73.6%
cancel-sign-sub73.6%
cancel-sign-sub-inv73.6%
*-commutative73.6%
*-commutative73.6%
remove-double-neg73.6%
*-commutative73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in i around inf 69.5%
*-commutative69.5%
associate-*r*69.6%
Simplified69.6%
if -5.40000000000000004e-299 < x < 3.85000000000000007e102Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in j around 0 52.1%
*-commutative52.1%
sub-neg52.1%
mul-1-neg52.1%
*-commutative52.1%
*-commutative52.1%
mul-1-neg52.1%
*-commutative52.1%
sub-neg52.1%
Simplified52.1%
Taylor expanded in t around 0 62.1%
if 3.85000000000000007e102 < x Initial program 65.4%
cancel-sign-sub65.4%
cancel-sign-sub-inv65.4%
*-commutative65.4%
*-commutative65.4%
remove-double-neg65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Taylor expanded in j around 0 72.0%
*-commutative72.0%
sub-neg72.0%
mul-1-neg72.0%
*-commutative72.0%
*-commutative72.0%
mul-1-neg72.0%
*-commutative72.0%
sub-neg72.0%
Simplified72.0%
Taylor expanded in i around 0 71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
*-commutative71.2%
associate-*r*75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Final simplification67.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))) (t_2 (* a (* b i))) (t_3 (* z (* x y))))
(if (<= x -4e+167)
t_3
(if (<= x -1.45e+113)
(* i (* a b))
(if (<= x -2.85e+39)
(* y (* x z))
(if (<= x -1.08e-94)
t_1
(if (<= x -2.7e-269)
t_2
(if (<= x -1.15e-307) t_1 (if (<= x 2.7e+23) t_2 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 = t * (c * j);
double t_2 = a * (b * i);
double t_3 = z * (x * y);
double tmp;
if (x <= -4e+167) {
tmp = t_3;
} else if (x <= -1.45e+113) {
tmp = i * (a * b);
} else if (x <= -2.85e+39) {
tmp = y * (x * z);
} else if (x <= -1.08e-94) {
tmp = t_1;
} else if (x <= -2.7e-269) {
tmp = t_2;
} else if (x <= -1.15e-307) {
tmp = t_1;
} else if (x <= 2.7e+23) {
tmp = t_2;
} 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 = t * (c * j)
t_2 = a * (b * i)
t_3 = z * (x * y)
if (x <= (-4d+167)) then
tmp = t_3
else if (x <= (-1.45d+113)) then
tmp = i * (a * b)
else if (x <= (-2.85d+39)) then
tmp = y * (x * z)
else if (x <= (-1.08d-94)) then
tmp = t_1
else if (x <= (-2.7d-269)) then
tmp = t_2
else if (x <= (-1.15d-307)) then
tmp = t_1
else if (x <= 2.7d+23) then
tmp = t_2
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 = t * (c * j);
double t_2 = a * (b * i);
double t_3 = z * (x * y);
double tmp;
if (x <= -4e+167) {
tmp = t_3;
} else if (x <= -1.45e+113) {
tmp = i * (a * b);
} else if (x <= -2.85e+39) {
tmp = y * (x * z);
} else if (x <= -1.08e-94) {
tmp = t_1;
} else if (x <= -2.7e-269) {
tmp = t_2;
} else if (x <= -1.15e-307) {
tmp = t_1;
} else if (x <= 2.7e+23) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) t_2 = a * (b * i) t_3 = z * (x * y) tmp = 0 if x <= -4e+167: tmp = t_3 elif x <= -1.45e+113: tmp = i * (a * b) elif x <= -2.85e+39: tmp = y * (x * z) elif x <= -1.08e-94: tmp = t_1 elif x <= -2.7e-269: tmp = t_2 elif x <= -1.15e-307: tmp = t_1 elif x <= 2.7e+23: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) t_2 = Float64(a * Float64(b * i)) t_3 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -4e+167) tmp = t_3; elseif (x <= -1.45e+113) tmp = Float64(i * Float64(a * b)); elseif (x <= -2.85e+39) tmp = Float64(y * Float64(x * z)); elseif (x <= -1.08e-94) tmp = t_1; elseif (x <= -2.7e-269) tmp = t_2; elseif (x <= -1.15e-307) tmp = t_1; elseif (x <= 2.7e+23) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); t_2 = a * (b * i); t_3 = z * (x * y); tmp = 0.0; if (x <= -4e+167) tmp = t_3; elseif (x <= -1.45e+113) tmp = i * (a * b); elseif (x <= -2.85e+39) tmp = y * (x * z); elseif (x <= -1.08e-94) tmp = t_1; elseif (x <= -2.7e-269) tmp = t_2; elseif (x <= -1.15e-307) tmp = t_1; elseif (x <= 2.7e+23) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+167], t$95$3, If[LessEqual[x, -1.45e+113], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.85e+39], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.08e-94], t$95$1, If[LessEqual[x, -2.7e-269], t$95$2, If[LessEqual[x, -1.15e-307], t$95$1, If[LessEqual[x, 2.7e+23], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+167}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.45 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq -2.85 \cdot 10^{+39}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -1.08 \cdot 10^{-94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-269}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{-307}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+23}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -4.0000000000000002e167 or 2.6999999999999999e23 < x Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in j around 0 64.4%
*-commutative64.4%
sub-neg64.4%
mul-1-neg64.4%
*-commutative64.4%
*-commutative64.4%
mul-1-neg64.4%
*-commutative64.4%
sub-neg64.4%
Simplified64.4%
Taylor expanded in t around 0 43.3%
Taylor expanded in y around inf 41.1%
*-commutative41.1%
associate-*l*45.7%
*-commutative45.7%
Simplified45.7%
if -4.0000000000000002e167 < x < -1.44999999999999992e113Initial program 93.3%
cancel-sign-sub93.3%
cancel-sign-sub-inv93.3%
*-commutative93.3%
*-commutative93.3%
remove-double-neg93.3%
*-commutative93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in b around inf 54.4%
Taylor expanded in a around inf 41.4%
if -1.44999999999999992e113 < x < -2.8500000000000002e39Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
add-cube-cbrt81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Applied egg-rr81.2%
Taylor expanded in x around inf 49.3%
*-commutative49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in z around inf 49.1%
if -2.8500000000000002e39 < x < -1.08e-94 or -2.70000000000000015e-269 < x < -1.1499999999999999e-307Initial program 75.6%
cancel-sign-sub75.6%
cancel-sign-sub-inv75.6%
*-commutative75.6%
*-commutative75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in c around inf 56.6%
Taylor expanded in t around inf 42.7%
associate-*r*49.1%
*-commutative49.1%
associate-*l*49.1%
Simplified49.1%
if -1.08e-94 < x < -2.70000000000000015e-269 or -1.1499999999999999e-307 < x < 2.6999999999999999e23Initial program 65.7%
cancel-sign-sub65.7%
cancel-sign-sub-inv65.7%
*-commutative65.7%
*-commutative65.7%
remove-double-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in b around inf 59.2%
Taylor expanded in i around inf 43.0%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))) (t_2 (* z (* x y))))
(if (<= x -3.8e+167)
t_2
(if (<= x -1.32e+113)
(* i (* a b))
(if (<= x -3.5e+39)
(* y (* x z))
(if (<= x -1.5e-91)
(* j (* t c))
(if (<= x -3.6e-269)
t_1
(if (<= x 3.6e-306)
(* t (* c j))
(if (<= x 4e+23) 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);
double t_2 = z * (x * y);
double tmp;
if (x <= -3.8e+167) {
tmp = t_2;
} else if (x <= -1.32e+113) {
tmp = i * (a * b);
} else if (x <= -3.5e+39) {
tmp = y * (x * z);
} else if (x <= -1.5e-91) {
tmp = j * (t * c);
} else if (x <= -3.6e-269) {
tmp = t_1;
} else if (x <= 3.6e-306) {
tmp = t * (c * j);
} else if (x <= 4e+23) {
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)
t_2 = z * (x * y)
if (x <= (-3.8d+167)) then
tmp = t_2
else if (x <= (-1.32d+113)) then
tmp = i * (a * b)
else if (x <= (-3.5d+39)) then
tmp = y * (x * z)
else if (x <= (-1.5d-91)) then
tmp = j * (t * c)
else if (x <= (-3.6d-269)) then
tmp = t_1
else if (x <= 3.6d-306) then
tmp = t * (c * j)
else if (x <= 4d+23) 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);
double t_2 = z * (x * y);
double tmp;
if (x <= -3.8e+167) {
tmp = t_2;
} else if (x <= -1.32e+113) {
tmp = i * (a * b);
} else if (x <= -3.5e+39) {
tmp = y * (x * z);
} else if (x <= -1.5e-91) {
tmp = j * (t * c);
} else if (x <= -3.6e-269) {
tmp = t_1;
} else if (x <= 3.6e-306) {
tmp = t * (c * j);
} else if (x <= 4e+23) {
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) t_2 = z * (x * y) tmp = 0 if x <= -3.8e+167: tmp = t_2 elif x <= -1.32e+113: tmp = i * (a * b) elif x <= -3.5e+39: tmp = y * (x * z) elif x <= -1.5e-91: tmp = j * (t * c) elif x <= -3.6e-269: tmp = t_1 elif x <= 3.6e-306: tmp = t * (c * j) elif x <= 4e+23: 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(b * i)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -3.8e+167) tmp = t_2; elseif (x <= -1.32e+113) tmp = Float64(i * Float64(a * b)); elseif (x <= -3.5e+39) tmp = Float64(y * Float64(x * z)); elseif (x <= -1.5e-91) tmp = Float64(j * Float64(t * c)); elseif (x <= -3.6e-269) tmp = t_1; elseif (x <= 3.6e-306) tmp = Float64(t * Float64(c * j)); elseif (x <= 4e+23) 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); t_2 = z * (x * y); tmp = 0.0; if (x <= -3.8e+167) tmp = t_2; elseif (x <= -1.32e+113) tmp = i * (a * b); elseif (x <= -3.5e+39) tmp = y * (x * z); elseif (x <= -1.5e-91) tmp = j * (t * c); elseif (x <= -3.6e-269) tmp = t_1; elseif (x <= 3.6e-306) tmp = t * (c * j); elseif (x <= 4e+23) 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[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.8e+167], t$95$2, If[LessEqual[x, -1.32e+113], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.5e+39], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.5e-91], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.6e-269], t$95$1, If[LessEqual[x, 3.6e-306], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e+23], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.8 \cdot 10^{+167}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.32 \cdot 10^{+113}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{+39}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-91}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{-269}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-306}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -3.79999999999999994e167 or 3.9999999999999997e23 < x Initial program 63.3%
cancel-sign-sub63.3%
cancel-sign-sub-inv63.3%
*-commutative63.3%
*-commutative63.3%
remove-double-neg63.3%
*-commutative63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in j around 0 64.4%
*-commutative64.4%
sub-neg64.4%
mul-1-neg64.4%
*-commutative64.4%
*-commutative64.4%
mul-1-neg64.4%
*-commutative64.4%
sub-neg64.4%
Simplified64.4%
Taylor expanded in t around 0 43.3%
Taylor expanded in y around inf 41.1%
*-commutative41.1%
associate-*l*45.7%
*-commutative45.7%
Simplified45.7%
if -3.79999999999999994e167 < x < -1.31999999999999996e113Initial program 93.3%
cancel-sign-sub93.3%
cancel-sign-sub-inv93.3%
*-commutative93.3%
*-commutative93.3%
remove-double-neg93.3%
*-commutative93.3%
*-commutative93.3%
Simplified93.3%
Taylor expanded in b around inf 54.4%
Taylor expanded in a around inf 41.4%
if -1.31999999999999996e113 < x < -3.5000000000000002e39Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
add-cube-cbrt81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
*-commutative81.2%
Applied egg-rr81.2%
Taylor expanded in x around inf 49.3%
*-commutative49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in z around inf 49.1%
if -3.5000000000000002e39 < x < -1.5000000000000001e-91Initial program 72.0%
cancel-sign-sub72.0%
cancel-sign-sub-inv72.0%
*-commutative72.0%
*-commutative72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
add-cube-cbrt72.0%
*-commutative72.0%
*-commutative72.0%
*-commutative72.0%
*-commutative72.0%
Applied egg-rr72.0%
Taylor expanded in j around inf 45.4%
Taylor expanded in c around inf 50.9%
if -1.5000000000000001e-91 < x < -3.59999999999999998e-269 or 3.59999999999999991e-306 < x < 3.9999999999999997e23Initial program 65.7%
cancel-sign-sub65.7%
cancel-sign-sub-inv65.7%
*-commutative65.7%
*-commutative65.7%
remove-double-neg65.7%
*-commutative65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in b around inf 59.2%
Taylor expanded in i around inf 43.0%
if -3.59999999999999998e-269 < x < 3.59999999999999991e-306Initial program 81.5%
cancel-sign-sub81.5%
cancel-sign-sub-inv81.5%
*-commutative81.5%
*-commutative81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around inf 64.1%
Taylor expanded in t around inf 46.1%
associate-*r*46.1%
*-commutative46.1%
associate-*l*46.1%
Simplified46.1%
Final simplification45.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -7.5e-8)
t_2
(if (<= b -3.3e-304)
t_1
(if (<= b 9.5e-276)
(* t (- (* c j) (* x a)))
(if (<= b 2.6e-42)
t_1
(if (<= b 2.35e+104) (* c (- (* t j) (* z b))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.5e-8) {
tmp = t_2;
} else if (b <= -3.3e-304) {
tmp = t_1;
} else if (b <= 9.5e-276) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 2.6e-42) {
tmp = t_1;
} else if (b <= 2.35e+104) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = b * ((a * i) - (z * c))
if (b <= (-7.5d-8)) then
tmp = t_2
else if (b <= (-3.3d-304)) then
tmp = t_1
else if (b <= 9.5d-276) then
tmp = t * ((c * j) - (x * a))
else if (b <= 2.6d-42) then
tmp = t_1
else if (b <= 2.35d+104) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.5e-8) {
tmp = t_2;
} else if (b <= -3.3e-304) {
tmp = t_1;
} else if (b <= 9.5e-276) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 2.6e-42) {
tmp = t_1;
} else if (b <= 2.35e+104) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.5e-8: tmp = t_2 elif b <= -3.3e-304: tmp = t_1 elif b <= 9.5e-276: tmp = t * ((c * j) - (x * a)) elif b <= 2.6e-42: tmp = t_1 elif b <= 2.35e+104: tmp = c * ((t * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.5e-8) tmp = t_2; elseif (b <= -3.3e-304) tmp = t_1; elseif (b <= 9.5e-276) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 2.6e-42) tmp = t_1; elseif (b <= 2.35e+104) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.5e-8) tmp = t_2; elseif (b <= -3.3e-304) tmp = t_1; elseif (b <= 9.5e-276) tmp = t * ((c * j) - (x * a)); elseif (b <= 2.6e-42) tmp = t_1; elseif (b <= 2.35e+104) tmp = c * ((t * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e-8], t$95$2, If[LessEqual[b, -3.3e-304], t$95$1, If[LessEqual[b, 9.5e-276], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e-42], t$95$1, If[LessEqual[b, 2.35e+104], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.3 \cdot 10^{-304}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-276}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{-42}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -7.4999999999999997e-8 or 2.35000000000000008e104 < b Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in b around inf 65.4%
if -7.4999999999999997e-8 < b < -3.30000000000000013e-304 or 9.49999999999999929e-276 < b < 2.6e-42Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in y around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
Simplified58.4%
if -3.30000000000000013e-304 < b < 9.49999999999999929e-276Initial program 75.4%
cancel-sign-sub75.4%
cancel-sign-sub-inv75.4%
*-commutative75.4%
*-commutative75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in t around inf 75.7%
*-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
if 2.6e-42 < b < 2.35000000000000008e104Initial program 60.2%
cancel-sign-sub60.2%
cancel-sign-sub-inv60.2%
*-commutative60.2%
*-commutative60.2%
remove-double-neg60.2%
*-commutative60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in c around inf 53.7%
Final simplification61.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -135000000.0)
t_1
(if (<= z 3e-98)
(+ (* j (- (* t c) (* y i))) (* i (* a b)))
(if (<= z 5e+33) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -135000000.0) {
tmp = t_1;
} else if (z <= 3e-98) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (z <= 5e+33) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-135000000.0d0)) then
tmp = t_1
else if (z <= 3d-98) then
tmp = (j * ((t * c) - (y * i))) + (i * (a * b))
else if (z <= 5d+33) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -135000000.0) {
tmp = t_1;
} else if (z <= 3e-98) {
tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
} else if (z <= 5e+33) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -135000000.0: tmp = t_1 elif z <= 3e-98: tmp = (j * ((t * c) - (y * i))) + (i * (a * b)) elif z <= 5e+33: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -135000000.0) tmp = t_1; elseif (z <= 3e-98) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b))); elseif (z <= 5e+33) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -135000000.0) tmp = t_1; elseif (z <= 3e-98) tmp = (j * ((t * c) - (y * i))) + (i * (a * b)); elseif (z <= 5e+33) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -135000000.0], t$95$1, If[LessEqual[z, 3e-98], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e+33], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -135000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-98}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{+33}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.35e8 or 4.99999999999999973e33 < z Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in z around inf 62.6%
if -1.35e8 < z < 3e-98Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in i around inf 62.3%
*-commutative62.3%
associate-*r*65.3%
Simplified65.3%
if 3e-98 < z < 4.99999999999999973e33Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in t around inf 53.9%
*-commutative53.9%
mul-1-neg53.9%
unsub-neg53.9%
Simplified53.9%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.85e+59)
(* c (* t j))
(if (<= j -4.2e-274)
(* b (* a i))
(if (<= j 1.1e-39)
(* y (* x z))
(if (<= j 1.75e+44) (- (* z (* b c))) (* t (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.85e+59) {
tmp = c * (t * j);
} else if (j <= -4.2e-274) {
tmp = b * (a * i);
} else if (j <= 1.1e-39) {
tmp = y * (x * z);
} else if (j <= 1.75e+44) {
tmp = -(z * (b * c));
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.85d+59)) then
tmp = c * (t * j)
else if (j <= (-4.2d-274)) then
tmp = b * (a * i)
else if (j <= 1.1d-39) then
tmp = y * (x * z)
else if (j <= 1.75d+44) then
tmp = -(z * (b * c))
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.85e+59) {
tmp = c * (t * j);
} else if (j <= -4.2e-274) {
tmp = b * (a * i);
} else if (j <= 1.1e-39) {
tmp = y * (x * z);
} else if (j <= 1.75e+44) {
tmp = -(z * (b * c));
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.85e+59: tmp = c * (t * j) elif j <= -4.2e-274: tmp = b * (a * i) elif j <= 1.1e-39: tmp = y * (x * z) elif j <= 1.75e+44: tmp = -(z * (b * c)) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.85e+59) tmp = Float64(c * Float64(t * j)); elseif (j <= -4.2e-274) tmp = Float64(b * Float64(a * i)); elseif (j <= 1.1e-39) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.75e+44) tmp = Float64(-Float64(z * Float64(b * c))); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.85e+59) tmp = c * (t * j); elseif (j <= -4.2e-274) tmp = b * (a * i); elseif (j <= 1.1e-39) tmp = y * (x * z); elseif (j <= 1.75e+44) tmp = -(z * (b * c)); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.85e+59], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.2e-274], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e-39], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.75e+44], (-N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.85 \cdot 10^{+59}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq -4.2 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;j \leq 1.1 \cdot 10^{-39}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.75 \cdot 10^{+44}:\\
\;\;\;\;-z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.84999999999999999e59Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 48.4%
Taylor expanded in t around inf 48.4%
if -1.84999999999999999e59 < j < -4.19999999999999988e-274Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around inf 52.4%
Taylor expanded in a around inf 37.4%
if -4.19999999999999988e-274 < j < 1.1e-39Initial program 67.0%
cancel-sign-sub67.0%
cancel-sign-sub-inv67.0%
*-commutative67.0%
*-commutative67.0%
remove-double-neg67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
add-cube-cbrt66.4%
*-commutative66.4%
*-commutative66.4%
*-commutative66.4%
*-commutative66.4%
Applied egg-rr66.4%
Taylor expanded in x around inf 53.9%
*-commutative53.9%
*-commutative53.9%
*-commutative53.9%
Simplified53.9%
Taylor expanded in z around inf 36.4%
if 1.1e-39 < j < 1.75e44Initial program 88.5%
cancel-sign-sub88.5%
cancel-sign-sub-inv88.5%
*-commutative88.5%
*-commutative88.5%
remove-double-neg88.5%
*-commutative88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in j around 0 77.8%
*-commutative77.8%
sub-neg77.8%
mul-1-neg77.8%
*-commutative77.8%
*-commutative77.8%
mul-1-neg77.8%
*-commutative77.8%
sub-neg77.8%
Simplified77.8%
Taylor expanded in t around 0 59.9%
Taylor expanded in c around inf 51.9%
associate-*r*51.9%
associate-*r*51.9%
neg-mul-151.9%
*-commutative51.9%
distribute-rgt-neg-in51.9%
associate-*r*52.1%
Simplified52.1%
if 1.75e44 < j Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in c around inf 45.2%
Taylor expanded in t around inf 42.4%
associate-*r*40.7%
*-commutative40.7%
associate-*l*48.2%
Simplified48.2%
Final simplification42.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= a -6.9e-32)
t_1
(if (<= a -5.8e-216)
(* y (* x z))
(if (<= a 1.75e-290)
(* c (* t j))
(if (<= a 1.2e-99) (* z (* x y)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (a <= -6.9e-32) {
tmp = t_1;
} else if (a <= -5.8e-216) {
tmp = y * (x * z);
} else if (a <= 1.75e-290) {
tmp = c * (t * j);
} else if (a <= 1.2e-99) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (a * i)
if (a <= (-6.9d-32)) then
tmp = t_1
else if (a <= (-5.8d-216)) then
tmp = y * (x * z)
else if (a <= 1.75d-290) then
tmp = c * (t * j)
else if (a <= 1.2d-99) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (a * i);
double tmp;
if (a <= -6.9e-32) {
tmp = t_1;
} else if (a <= -5.8e-216) {
tmp = y * (x * z);
} else if (a <= 1.75e-290) {
tmp = c * (t * j);
} else if (a <= 1.2e-99) {
tmp = z * (x * y);
} 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 a <= -6.9e-32: tmp = t_1 elif a <= -5.8e-216: tmp = y * (x * z) elif a <= 1.75e-290: tmp = c * (t * j) elif a <= 1.2e-99: tmp = z * (x * y) 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 (a <= -6.9e-32) tmp = t_1; elseif (a <= -5.8e-216) tmp = Float64(y * Float64(x * z)); elseif (a <= 1.75e-290) tmp = Float64(c * Float64(t * j)); elseif (a <= 1.2e-99) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (a <= -6.9e-32) tmp = t_1; elseif (a <= -5.8e-216) tmp = y * (x * z); elseif (a <= 1.75e-290) tmp = c * (t * j); elseif (a <= 1.2e-99) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.9e-32], t$95$1, If[LessEqual[a, -5.8e-216], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-290], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e-99], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -6.9 \cdot 10^{-32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-216}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-290}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-99}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -6.90000000000000018e-32 or 1.2e-99 < a Initial program 62.0%
cancel-sign-sub62.0%
cancel-sign-sub-inv62.0%
*-commutative62.0%
*-commutative62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in b around inf 54.0%
Taylor expanded in a around inf 41.5%
if -6.90000000000000018e-32 < a < -5.8000000000000001e-216Initial program 70.5%
cancel-sign-sub70.5%
cancel-sign-sub-inv70.5%
*-commutative70.5%
*-commutative70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
add-cube-cbrt70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
*-commutative70.2%
Applied egg-rr70.2%
Taylor expanded in x around inf 46.0%
*-commutative46.0%
*-commutative46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in z around inf 34.7%
if -5.8000000000000001e-216 < a < 1.74999999999999991e-290Initial program 82.5%
cancel-sign-sub82.5%
cancel-sign-sub-inv82.5%
*-commutative82.5%
*-commutative82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in c around inf 57.2%
Taylor expanded in t around inf 49.0%
if 1.74999999999999991e-290 < a < 1.2e-99Initial program 87.3%
cancel-sign-sub87.3%
cancel-sign-sub-inv87.3%
*-commutative87.3%
*-commutative87.3%
remove-double-neg87.3%
*-commutative87.3%
*-commutative87.3%
Simplified87.3%
Taylor expanded in j around 0 65.4%
*-commutative65.4%
sub-neg65.4%
mul-1-neg65.4%
*-commutative65.4%
*-commutative65.4%
mul-1-neg65.4%
*-commutative65.4%
sub-neg65.4%
Simplified65.4%
Taylor expanded in t around 0 55.8%
Taylor expanded in y around inf 37.7%
*-commutative37.7%
associate-*l*40.0%
*-commutative40.0%
Simplified40.0%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.2e+60)
(* c (* t j))
(if (<= j -4.3e-274)
(* b (* a i))
(if (<= j 3.2e+58) (* x (* y z)) (* t (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.2e+60) {
tmp = c * (t * j);
} else if (j <= -4.3e-274) {
tmp = b * (a * i);
} else if (j <= 3.2e+58) {
tmp = x * (y * z);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-4.2d+60)) then
tmp = c * (t * j)
else if (j <= (-4.3d-274)) then
tmp = b * (a * i)
else if (j <= 3.2d+58) then
tmp = x * (y * z)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.2e+60) {
tmp = c * (t * j);
} else if (j <= -4.3e-274) {
tmp = b * (a * i);
} else if (j <= 3.2e+58) {
tmp = x * (y * z);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.2e+60: tmp = c * (t * j) elif j <= -4.3e-274: tmp = b * (a * i) elif j <= 3.2e+58: tmp = x * (y * z) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.2e+60) tmp = Float64(c * Float64(t * j)); elseif (j <= -4.3e-274) tmp = Float64(b * Float64(a * i)); elseif (j <= 3.2e+58) tmp = Float64(x * Float64(y * z)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -4.2e+60) tmp = c * (t * j); elseif (j <= -4.3e-274) tmp = b * (a * i); elseif (j <= 3.2e+58) tmp = x * (y * z); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.2e+60], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e-274], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e+58], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.2 \cdot 10^{+60}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-274}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{+58}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -4.2000000000000002e60Initial program 62.5%
cancel-sign-sub62.5%
cancel-sign-sub-inv62.5%
*-commutative62.5%
*-commutative62.5%
remove-double-neg62.5%
*-commutative62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in c around inf 48.4%
Taylor expanded in t around inf 48.4%
if -4.2000000000000002e60 < j < -4.29999999999999989e-274Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around inf 52.4%
Taylor expanded in a around inf 37.4%
if -4.29999999999999989e-274 < j < 3.20000000000000015e58Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
add-cube-cbrt70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
*-commutative70.9%
Applied egg-rr70.9%
Taylor expanded in x around inf 46.4%
*-commutative46.4%
*-commutative46.4%
*-commutative46.4%
Simplified46.4%
Taylor expanded in z around inf 31.8%
associate-*r*32.9%
*-commutative32.9%
Simplified32.9%
if 3.20000000000000015e58 < j Initial program 64.4%
cancel-sign-sub64.4%
cancel-sign-sub-inv64.4%
*-commutative64.4%
*-commutative64.4%
remove-double-neg64.4%
*-commutative64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in c around inf 46.6%
Taylor expanded in t around inf 43.7%
associate-*r*42.0%
*-commutative42.0%
associate-*l*49.7%
Simplified49.7%
Final simplification40.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.8e+106) (not (<= c 8.5e+46))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.8e+106) || !(c <= 8.5e+46)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.8d+106)) .or. (.not. (c <= 8.5d+46))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.8e+106) || !(c <= 8.5e+46)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.8e+106) or not (c <= 8.5e+46): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.8e+106) || !(c <= 8.5e+46)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.8e+106) || ~((c <= 8.5e+46))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.8e+106], N[Not[LessEqual[c, 8.5e+46]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.8 \cdot 10^{+106} \lor \neg \left(c \leq 8.5 \cdot 10^{+46}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -2.79999999999999993e106 or 8.4999999999999996e46 < c Initial program 55.1%
cancel-sign-sub55.1%
cancel-sign-sub-inv55.1%
*-commutative55.1%
*-commutative55.1%
remove-double-neg55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in c around inf 67.3%
Taylor expanded in t around inf 41.0%
if -2.79999999999999993e106 < c < 8.4999999999999996e46Initial program 75.5%
cancel-sign-sub75.5%
cancel-sign-sub-inv75.5%
*-commutative75.5%
*-commutative75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in b around inf 41.6%
Taylor expanded in i around inf 33.4%
Final simplification35.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.9e+42) (not (<= c 3e-140))) (* c (* t j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.9e+42) || !(c <= 3e-140)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.9d+42)) .or. (.not. (c <= 3d-140))) then
tmp = c * (t * j)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.9e+42) || !(c <= 3e-140)) {
tmp = c * (t * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.9e+42) or not (c <= 3e-140): tmp = c * (t * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.9e+42) || !(c <= 3e-140)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.9e+42) || ~((c <= 3e-140))) tmp = c * (t * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.9e+42], N[Not[LessEqual[c, 3e-140]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.9 \cdot 10^{+42} \lor \neg \left(c \leq 3 \cdot 10^{-140}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if c < -3.8999999999999997e42 or 3.00000000000000018e-140 < c Initial program 61.1%
cancel-sign-sub61.1%
cancel-sign-sub-inv61.1%
*-commutative61.1%
*-commutative61.1%
remove-double-neg61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in c around inf 54.9%
Taylor expanded in t around inf 33.7%
if -3.8999999999999997e42 < c < 3.00000000000000018e-140Initial program 79.4%
cancel-sign-sub79.4%
cancel-sign-sub-inv79.4%
*-commutative79.4%
*-commutative79.4%
remove-double-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in b around inf 41.9%
Taylor expanded in a around inf 39.0%
Final simplification36.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.65e+42) (not (<= c 5.6e-43))) (* t (* c j)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.65e+42) || !(c <= 5.6e-43)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.65d+42)) .or. (.not. (c <= 5.6d-43))) then
tmp = t * (c * j)
else
tmp = i * (a * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.65e+42) || !(c <= 5.6e-43)) {
tmp = t * (c * j);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.65e+42) or not (c <= 5.6e-43): tmp = t * (c * j) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.65e+42) || !(c <= 5.6e-43)) tmp = Float64(t * Float64(c * j)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.65e+42) || ~((c <= 5.6e-43))) tmp = t * (c * j); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.65e+42], N[Not[LessEqual[c, 5.6e-43]], $MachinePrecision]], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.65 \cdot 10^{+42} \lor \neg \left(c \leq 5.6 \cdot 10^{-43}\right):\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if c < -2.65000000000000014e42 or 5.5999999999999996e-43 < c Initial program 60.8%
cancel-sign-sub60.8%
cancel-sign-sub-inv60.8%
*-commutative60.8%
*-commutative60.8%
remove-double-neg60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in c around inf 59.8%
Taylor expanded in t around inf 35.0%
associate-*r*36.0%
*-commutative36.0%
associate-*l*38.9%
Simplified38.9%
if -2.65000000000000014e42 < c < 5.5999999999999996e-43Initial program 76.4%
cancel-sign-sub76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
*-commutative76.4%
remove-double-neg76.4%
*-commutative76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in b around inf 41.0%
Taylor expanded in a around inf 36.7%
Final simplification37.8%
(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 68.9%
cancel-sign-sub68.9%
cancel-sign-sub-inv68.9%
*-commutative68.9%
*-commutative68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in b around inf 43.4%
Taylor expanded in i around inf 26.3%
Final simplification26.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 2023230
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(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)))))