
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* z (* c (- (* x (/ y c)) 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))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * (c * ((x * (y / c)) - b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(c * Float64(Float64(x * Float64(y / c)) - 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))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * (c * ((x * (y / c)) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(c * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(x \cdot \frac{y}{c} - b\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 51.5%
*-commutative51.5%
Simplified51.5%
Taylor expanded in c around inf 55.6%
associate-/l*55.6%
Simplified55.6%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -7.5e+120)
(+ (* j (* y (- (/ (* t c) y) i))) t_1)
(if (<= j -1.6e-118)
(+ (- t_1 (* i (* y j))) (* a (* b i)))
(if (<= j 2.9e+48)
(+ t_1 (* b (- (* a i) (* z c))))
(+ (* j (- (* t c) (* y i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -7.5e+120) {
tmp = (j * (y * (((t * c) / y) - i))) + t_1;
} else if (j <= -1.6e-118) {
tmp = (t_1 - (i * (y * j))) + (a * (b * i));
} else if (j <= 2.9e+48) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (j <= (-7.5d+120)) then
tmp = (j * (y * (((t * c) / y) - i))) + t_1
else if (j <= (-1.6d-118)) then
tmp = (t_1 - (i * (y * j))) + (a * (b * i))
else if (j <= 2.9d+48) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -7.5e+120) {
tmp = (j * (y * (((t * c) / y) - i))) + t_1;
} else if (j <= -1.6e-118) {
tmp = (t_1 - (i * (y * j))) + (a * (b * i));
} else if (j <= 2.9e+48) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -7.5e+120: tmp = (j * (y * (((t * c) / y) - i))) + t_1 elif j <= -1.6e-118: tmp = (t_1 - (i * (y * j))) + (a * (b * i)) elif j <= 2.9e+48: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) + t_1 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 (j <= -7.5e+120) tmp = Float64(Float64(j * Float64(y * Float64(Float64(Float64(t * c) / y) - i))) + t_1); elseif (j <= -1.6e-118) tmp = Float64(Float64(t_1 - Float64(i * Float64(y * j))) + Float64(a * Float64(b * i))); elseif (j <= 2.9e+48) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1); 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 (j <= -7.5e+120) tmp = (j * (y * (((t * c) / y) - i))) + t_1; elseif (j <= -1.6e-118) tmp = (t_1 - (i * (y * j))) + (a * (b * i)); elseif (j <= 2.9e+48) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) + t_1; 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[j, -7.5e+120], N[(N[(j * N[(y * N[(N[(N[(t * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, -1.6e-118], N[(N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e+48], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -7.5 \cdot 10^{+120}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{t \cdot c}{y} - i\right)\right) + t\_1\\
\mathbf{elif}\;j \leq -1.6 \cdot 10^{-118}:\\
\;\;\;\;\left(t\_1 - i \cdot \left(y \cdot j\right)\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{+48}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
\end{array}
\end{array}
if j < -7.5000000000000006e120Initial program 72.2%
Taylor expanded in b around 0 78.0%
Taylor expanded in y around inf 80.8%
if -7.5000000000000006e120 < j < -1.60000000000000002e-118Initial program 71.0%
Taylor expanded in c around 0 69.0%
if -1.60000000000000002e-118 < j < 2.8999999999999999e48Initial program 74.3%
Taylor expanded in j around 0 74.7%
if 2.8999999999999999e48 < j Initial program 74.2%
Taylor expanded in b around 0 84.8%
Final simplification76.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.3e+132)
(* z (- (* x y) (* b c)))
(if (<= z -2.4e-241)
(+ (* j (- (* t c) (* y i))) (* x (* y z)))
(if (<= z 2.7e+142)
(- (* j (* y (- (/ (* t c) y) i))) (* x (* t a)))
(* z (* c (- (* x (/ y c)) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.3e+132) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -2.4e-241) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (z <= 2.7e+142) {
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a));
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.3d+132)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-2.4d-241)) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else if (z <= 2.7d+142) then
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a))
else
tmp = z * (c * ((x * (y / c)) - b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.3e+132) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -2.4e-241) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else if (z <= 2.7e+142) {
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a));
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.3e+132: tmp = z * ((x * y) - (b * c)) elif z <= -2.4e-241: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) elif z <= 2.7e+142: tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a)) else: tmp = z * (c * ((x * (y / c)) - b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.3e+132) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -2.4e-241) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); elseif (z <= 2.7e+142) tmp = Float64(Float64(j * Float64(y * Float64(Float64(Float64(t * c) / y) - i))) - Float64(x * Float64(t * a))); else tmp = Float64(z * Float64(c * Float64(Float64(x * Float64(y / c)) - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.3e+132) tmp = z * ((x * y) - (b * c)); elseif (z <= -2.4e-241) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); elseif (z <= 2.7e+142) tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a)); else tmp = z * (c * ((x * (y / c)) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.3e+132], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.4e-241], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e+142], N[(N[(j * N[(y * N[(N[(N[(t * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{+132}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-241}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+142}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{t \cdot c}{y} - i\right)\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(x \cdot \frac{y}{c} - b\right)\right)\\
\end{array}
\end{array}
if z < -2.3000000000000002e132Initial program 62.6%
Taylor expanded in z around inf 80.4%
*-commutative80.4%
Simplified80.4%
if -2.3000000000000002e132 < z < -2.4e-241Initial program 80.9%
Taylor expanded in b around 0 61.2%
Taylor expanded in a around 0 57.1%
if -2.4e-241 < z < 2.69999999999999983e142Initial program 79.2%
Taylor expanded in b around 0 65.8%
Taylor expanded in y around inf 65.9%
Taylor expanded in y around 0 60.6%
mul-1-neg60.6%
associate-*r*61.5%
*-commutative61.5%
distribute-rgt-neg-in61.5%
Simplified61.5%
if 2.69999999999999983e142 < z Initial program 53.5%
Taylor expanded in z around inf 78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in c around inf 78.4%
associate-/l*78.4%
Simplified78.4%
Final simplification65.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.8e+51)
t_1
(if (<= b 9e-59)
(- (* x (- (* y z) (* t a))) (* i (* y j)))
(if (<= b 3.4e+121) (+ (* j (- (* t c) (* y i))) (* x (* y z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.8e+51) {
tmp = t_1;
} else if (b <= 9e-59) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (b <= 3.4e+121) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-1.8d+51)) then
tmp = t_1
else if (b <= 9d-59) then
tmp = (x * ((y * z) - (t * a))) - (i * (y * j))
else if (b <= 3.4d+121) then
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.8e+51) {
tmp = t_1;
} else if (b <= 9e-59) {
tmp = (x * ((y * z) - (t * a))) - (i * (y * j));
} else if (b <= 3.4e+121) {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.8e+51: tmp = t_1 elif b <= 9e-59: tmp = (x * ((y * z) - (t * a))) - (i * (y * j)) elif b <= 3.4e+121: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.8e+51) tmp = t_1; elseif (b <= 9e-59) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))); elseif (b <= 3.4e+121) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.8e+51) tmp = t_1; elseif (b <= 9e-59) tmp = (x * ((y * z) - (t * a))) - (i * (y * j)); elseif (b <= 3.4e+121) tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.8e+51], t$95$1, If[LessEqual[b, 9e-59], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.4e+121], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.8 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+121}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.80000000000000005e51 or 3.4000000000000001e121 < b Initial program 74.3%
Taylor expanded in b around inf 67.6%
*-commutative67.6%
Simplified67.6%
if -1.80000000000000005e51 < b < 9.00000000000000023e-59Initial program 69.7%
Taylor expanded in b around 0 64.3%
Taylor expanded in c around 0 60.7%
+-commutative60.7%
sub-neg60.7%
*-commutative60.7%
sub-neg60.7%
mul-1-neg60.7%
unsub-neg60.7%
*-commutative60.7%
Simplified60.7%
if 9.00000000000000023e-59 < b < 3.4000000000000001e121Initial program 84.3%
Taylor expanded in b around 0 77.8%
Taylor expanded in a around 0 75.6%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -4.1e-80)
t_1
(if (<= x 3.1e-307)
(* j (- (* t c) (* y i)))
(if (<= x 9.6e-165)
(* i (- (* a b) (* y j)))
(if (<= x 9e+67) (* c (- (* t j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.1e-80) {
tmp = t_1;
} else if (x <= 3.1e-307) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 9.6e-165) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 9e+67) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (x <= (-4.1d-80)) then
tmp = t_1
else if (x <= 3.1d-307) then
tmp = j * ((t * c) - (y * i))
else if (x <= 9.6d-165) then
tmp = i * ((a * b) - (y * j))
else if (x <= 9d+67) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (x <= -4.1e-80) {
tmp = t_1;
} else if (x <= 3.1e-307) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 9.6e-165) {
tmp = i * ((a * b) - (y * j));
} else if (x <= 9e+67) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -4.1e-80: tmp = t_1 elif x <= 3.1e-307: tmp = j * ((t * c) - (y * i)) elif x <= 9.6e-165: tmp = i * ((a * b) - (y * j)) elif x <= 9e+67: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 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 <= -4.1e-80) tmp = t_1; elseif (x <= 3.1e-307) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (x <= 9.6e-165) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (x <= 9e+67) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -4.1e-80) tmp = t_1; elseif (x <= 3.1e-307) tmp = j * ((t * c) - (y * i)); elseif (x <= 9.6e-165) tmp = i * ((a * b) - (y * j)); elseif (x <= 9e+67) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.1e-80], t$95$1, If[LessEqual[x, 3.1e-307], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.6e-165], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+67], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.1 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-307}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-165}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+67}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.0999999999999999e-80 or 8.9999999999999997e67 < x Initial program 74.8%
Taylor expanded in b around 0 64.5%
Taylor expanded in j around 0 64.8%
if -4.0999999999999999e-80 < x < 3.0999999999999998e-307Initial program 78.9%
Taylor expanded in j around inf 73.0%
if 3.0999999999999998e-307 < x < 9.6000000000000009e-165Initial program 68.7%
Taylor expanded in t around inf 67.7%
Simplified65.2%
Taylor expanded in i around -inf 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
associate-/l*55.0%
*-commutative55.0%
associate-*r/51.5%
Simplified51.5%
Taylor expanded in t around 0 65.5%
if 9.6000000000000009e-165 < x < 8.9999999999999997e67Initial program 66.7%
Taylor expanded in c around inf 52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -1.5e+120)
t_1
(if (<= j -3.7e-141)
(* i (- (* a b) (* y j)))
(if (<= j 9e-269)
(* b (- (* a i) (* z c)))
(if (<= j 2.5e+76) (* a (- (* b i) (* x t))) 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));
double tmp;
if (j <= -1.5e+120) {
tmp = t_1;
} else if (j <= -3.7e-141) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 9e-269) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 2.5e+76) {
tmp = a * ((b * i) - (x * t));
} 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))
if (j <= (-1.5d+120)) then
tmp = t_1
else if (j <= (-3.7d-141)) then
tmp = i * ((a * b) - (y * j))
else if (j <= 9d-269) then
tmp = b * ((a * i) - (z * c))
else if (j <= 2.5d+76) then
tmp = a * ((b * i) - (x * t))
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));
double tmp;
if (j <= -1.5e+120) {
tmp = t_1;
} else if (j <= -3.7e-141) {
tmp = i * ((a * b) - (y * j));
} else if (j <= 9e-269) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 2.5e+76) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.5e+120: tmp = t_1 elif j <= -3.7e-141: tmp = i * ((a * b) - (y * j)) elif j <= 9e-269: tmp = b * ((a * i) - (z * c)) elif j <= 2.5e+76: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 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 <= -1.5e+120) tmp = t_1; elseif (j <= -3.7e-141) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (j <= 9e-269) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 2.5e+76) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); 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)); tmp = 0.0; if (j <= -1.5e+120) tmp = t_1; elseif (j <= -3.7e-141) tmp = i * ((a * b) - (y * j)); elseif (j <= 9e-269) tmp = b * ((a * i) - (z * c)); elseif (j <= 2.5e+76) tmp = a * ((b * i) - (x * t)); else tmp = t_1; 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, -1.5e+120], t$95$1, If[LessEqual[j, -3.7e-141], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e-269], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e+76], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.7 \cdot 10^{-141}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{+76}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.5e120 or 2.49999999999999996e76 < j Initial program 72.6%
Taylor expanded in j around inf 73.1%
if -1.5e120 < j < -3.7e-141Initial program 73.7%
Taylor expanded in t around inf 65.6%
Simplified70.5%
Taylor expanded in i around -inf 54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
associate-/l*52.6%
*-commutative52.6%
associate-*r/49.5%
Simplified49.5%
Taylor expanded in t around 0 59.1%
if -3.7e-141 < j < 9.0000000000000003e-269Initial program 70.3%
Taylor expanded in b around inf 58.2%
*-commutative58.2%
Simplified58.2%
if 9.0000000000000003e-269 < j < 2.49999999999999996e76Initial program 76.1%
Taylor expanded in a around inf 48.5%
distribute-lft-out--48.5%
*-commutative48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in a around 0 48.5%
mul-1-neg48.5%
*-commutative48.5%
*-commutative48.5%
distribute-rgt-neg-out48.5%
neg-mul-148.5%
*-commutative48.5%
*-commutative48.5%
distribute-lft-out--48.5%
sub-neg48.5%
mul-1-neg48.5%
*-commutative48.5%
remove-double-neg48.5%
*-commutative48.5%
+-commutative48.5%
*-commutative48.5%
mul-1-neg48.5%
unsub-neg48.5%
*-commutative48.5%
Simplified48.5%
Final simplification60.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -22000000.0) (not (<= j 1.65e-13))) (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a)))) (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -22000000.0) || !(j <= 1.65e-13)) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-22000000.0d0)) .or. (.not. (j <= 1.65d-13))) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -22000000.0) || !(j <= 1.65e-13)) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -22000000.0) or not (j <= 1.65e-13): tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -22000000.0) || !(j <= 1.65e-13)) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -22000000.0) || ~((j <= 1.65e-13))) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -22000000.0], N[Not[LessEqual[j, 1.65e-13]], $MachinePrecision]], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -22000000 \lor \neg \left(j \leq 1.65 \cdot 10^{-13}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -2.2e7 or 1.65e-13 < j Initial program 77.2%
Taylor expanded in b around 0 76.1%
if -2.2e7 < j < 1.65e-13Initial program 69.8%
Taylor expanded in y around 0 64.7%
mul-1-neg64.7%
associate-*r*61.9%
*-commutative61.9%
associate-*l*64.7%
distribute-rgt-neg-in64.7%
mul-1-neg64.7%
*-commutative64.7%
associate-*r*62.4%
*-commutative62.4%
associate-*l*64.5%
distribute-lft-in65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
*-commutative65.2%
*-commutative65.2%
Simplified65.2%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -5.6e+84)
(+ (* j (* y (- (/ (* t c) y) i))) t_1)
(if (<= j 4.8e+47)
(+ t_1 (* b (- (* a i) (* z c))))
(+ (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -5.6e+84) {
tmp = (j * (y * (((t * c) / y) - i))) + t_1;
} else if (j <= 4.8e+47) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (j <= (-5.6d+84)) then
tmp = (j * (y * (((t * c) / y) - i))) + t_1
else if (j <= 4.8d+47) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -5.6e+84) {
tmp = (j * (y * (((t * c) / y) - i))) + t_1;
} else if (j <= 4.8e+47) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -5.6e+84: tmp = (j * (y * (((t * c) / y) - i))) + t_1 elif j <= 4.8e+47: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) + t_1 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 (j <= -5.6e+84) tmp = Float64(Float64(j * Float64(y * Float64(Float64(Float64(t * c) / y) - i))) + t_1); elseif (j <= 4.8e+47) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1); 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 (j <= -5.6e+84) tmp = (j * (y * (((t * c) / y) - i))) + t_1; elseif (j <= 4.8e+47) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) + t_1; 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[j, -5.6e+84], N[(N[(j * N[(y * N[(N[(N[(t * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 4.8e+47], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -5.6 \cdot 10^{+84}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{t \cdot c}{y} - i\right)\right) + t\_1\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+47}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
\end{array}
\end{array}
if j < -5.59999999999999963e84Initial program 74.5%
Taylor expanded in b around 0 71.8%
Taylor expanded in y around inf 73.9%
if -5.59999999999999963e84 < j < 4.80000000000000037e47Initial program 72.8%
Taylor expanded in j around 0 71.3%
if 4.80000000000000037e47 < j Initial program 74.2%
Taylor expanded in b around 0 84.8%
Final simplification74.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= j -7.8e+124)
(- (* j (* y (- (/ (* t c) y) i))) (* x (* t a)))
(if (<= j 1.45e+50)
(+ t_1 (* b (- (* a i) (* z c))))
(+ (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -7.8e+124) {
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a));
} else if (j <= 1.45e+50) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if (j <= (-7.8d+124)) then
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a))
else if (j <= 1.45d+50) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (j <= -7.8e+124) {
tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a));
} else if (j <= 1.45e+50) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if j <= -7.8e+124: tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a)) elif j <= 1.45e+50: tmp = t_1 + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) + t_1 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 (j <= -7.8e+124) tmp = Float64(Float64(j * Float64(y * Float64(Float64(Float64(t * c) / y) - i))) - Float64(x * Float64(t * a))); elseif (j <= 1.45e+50) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1); 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 (j <= -7.8e+124) tmp = (j * (y * (((t * c) / y) - i))) - (x * (t * a)); elseif (j <= 1.45e+50) tmp = t_1 + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) + t_1; 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[j, -7.8e+124], N[(N[(j * N[(y * N[(N[(N[(t * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+50], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -7.8 \cdot 10^{+124}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{t \cdot c}{y} - i\right)\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{+50}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
\end{array}
\end{array}
if j < -7.8000000000000001e124Initial program 71.5%
Taylor expanded in b around 0 77.3%
Taylor expanded in y around inf 80.2%
Taylor expanded in y around 0 80.0%
mul-1-neg80.0%
associate-*r*80.0%
*-commutative80.0%
distribute-rgt-neg-in80.0%
Simplified80.0%
if -7.8000000000000001e124 < j < 1.45e50Initial program 73.5%
Taylor expanded in j around 0 69.9%
if 1.45e50 < j Initial program 74.2%
Taylor expanded in b around 0 84.8%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.4e+129)
(* z (- (* x y) (* b c)))
(if (<= z 1.5e+143)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(* z (* c (- (* x (/ y c)) b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.4e+129) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 1.5e+143) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.4d+129)) then
tmp = z * ((x * y) - (b * c))
else if (z <= 1.5d+143) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = z * (c * ((x * (y / c)) - b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.4e+129) {
tmp = z * ((x * y) - (b * c));
} else if (z <= 1.5e+143) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = z * (c * ((x * (y / c)) - b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.4e+129: tmp = z * ((x * y) - (b * c)) elif z <= 1.5e+143: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = z * (c * ((x * (y / c)) - b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.4e+129) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= 1.5e+143) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(z * Float64(c * Float64(Float64(x * Float64(y / c)) - b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.4e+129) tmp = z * ((x * y) - (b * c)); elseif (z <= 1.5e+143) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = z * (c * ((x * (y / c)) - b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.4e+129], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e+143], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * N[(N[(x * N[(y / c), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+129}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+143}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(x \cdot \frac{y}{c} - b\right)\right)\\
\end{array}
\end{array}
if z < -2.3999999999999999e129Initial program 62.6%
Taylor expanded in z around inf 80.4%
*-commutative80.4%
Simplified80.4%
if -2.3999999999999999e129 < z < 1.5e143Initial program 79.9%
Taylor expanded in b around 0 63.9%
if 1.5e143 < z Initial program 53.5%
Taylor expanded in z around inf 78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in c around inf 78.4%
associate-/l*78.4%
Simplified78.4%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -3.8e-80)
(* z (* x y))
(if (<= x 8.5e-165)
(* (- y) (* i j))
(if (<= x 1.7e+68)
(* b (* z (- c)))
(if (<= x 3.1e+262) (* t (* x (- a))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.8e-80) {
tmp = z * (x * y);
} else if (x <= 8.5e-165) {
tmp = -y * (i * j);
} else if (x <= 1.7e+68) {
tmp = b * (z * -c);
} else if (x <= 3.1e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-3.8d-80)) then
tmp = z * (x * y)
else if (x <= 8.5d-165) then
tmp = -y * (i * j)
else if (x <= 1.7d+68) then
tmp = b * (z * -c)
else if (x <= 3.1d+262) then
tmp = t * (x * -a)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -3.8e-80) {
tmp = z * (x * y);
} else if (x <= 8.5e-165) {
tmp = -y * (i * j);
} else if (x <= 1.7e+68) {
tmp = b * (z * -c);
} else if (x <= 3.1e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -3.8e-80: tmp = z * (x * y) elif x <= 8.5e-165: tmp = -y * (i * j) elif x <= 1.7e+68: tmp = b * (z * -c) elif x <= 3.1e+262: tmp = t * (x * -a) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -3.8e-80) tmp = Float64(z * Float64(x * y)); elseif (x <= 8.5e-165) tmp = Float64(Float64(-y) * Float64(i * j)); elseif (x <= 1.7e+68) tmp = Float64(b * Float64(z * Float64(-c))); elseif (x <= 3.1e+262) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -3.8e-80) tmp = z * (x * y); elseif (x <= 8.5e-165) tmp = -y * (i * j); elseif (x <= 1.7e+68) tmp = b * (z * -c); elseif (x <= 3.1e+262) tmp = t * (x * -a); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.8e-80], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e-165], N[((-y) * N[(i * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e+68], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+262], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{-80}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-165}:\\
\;\;\;\;\left(-y\right) \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+262}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -3.79999999999999967e-80Initial program 81.2%
Taylor expanded in z around inf 56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in x around inf 42.9%
*-commutative42.9%
Simplified42.9%
if -3.79999999999999967e-80 < x < 8.5e-165Initial program 75.1%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in x around 0 43.6%
mul-1-neg43.6%
distribute-lft-neg-out43.6%
*-commutative43.6%
Simplified43.6%
if 8.5e-165 < x < 1.70000000000000008e68Initial program 66.7%
Taylor expanded in b around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in a around 0 32.8%
mul-1-neg32.8%
distribute-rgt-neg-in32.8%
*-commutative32.8%
distribute-rgt-neg-in32.8%
Simplified32.8%
if 1.70000000000000008e68 < x < 3.09999999999999991e262Initial program 64.4%
Taylor expanded in a around inf 59.1%
distribute-lft-out--59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in x around inf 56.0%
associate-*r*56.0%
neg-mul-156.0%
*-commutative56.0%
Simplified56.0%
distribute-lft-neg-out56.0%
add-sqr-sqrt16.7%
sqrt-unprod36.2%
sqr-neg36.2%
sqrt-unprod16.8%
add-sqr-sqrt16.8%
associate-*r*10.8%
add-sqr-sqrt10.7%
sqrt-unprod33.3%
sqr-neg33.3%
sqrt-unprod19.6%
add-sqr-sqrt58.9%
Applied egg-rr58.9%
if 3.09999999999999991e262 < x Initial program 49.9%
Taylor expanded in y around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in x around inf 70.0%
Final simplification44.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.5e-79)
(* z (* x y))
(if (<= x 8.2e-165)
(* j (* y (- i)))
(if (<= x 1.1e+68)
(* b (* z (- c)))
(if (<= x 1.9e+262) (* t (* x (- a))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.5e-79) {
tmp = z * (x * y);
} else if (x <= 8.2e-165) {
tmp = j * (y * -i);
} else if (x <= 1.1e+68) {
tmp = b * (z * -c);
} else if (x <= 1.9e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.5d-79)) then
tmp = z * (x * y)
else if (x <= 8.2d-165) then
tmp = j * (y * -i)
else if (x <= 1.1d+68) then
tmp = b * (z * -c)
else if (x <= 1.9d+262) then
tmp = t * (x * -a)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.5e-79) {
tmp = z * (x * y);
} else if (x <= 8.2e-165) {
tmp = j * (y * -i);
} else if (x <= 1.1e+68) {
tmp = b * (z * -c);
} else if (x <= 1.9e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.5e-79: tmp = z * (x * y) elif x <= 8.2e-165: tmp = j * (y * -i) elif x <= 1.1e+68: tmp = b * (z * -c) elif x <= 1.9e+262: tmp = t * (x * -a) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.5e-79) tmp = Float64(z * Float64(x * y)); elseif (x <= 8.2e-165) tmp = Float64(j * Float64(y * Float64(-i))); elseif (x <= 1.1e+68) tmp = Float64(b * Float64(z * Float64(-c))); elseif (x <= 1.9e+262) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.5e-79) tmp = z * (x * y); elseif (x <= 8.2e-165) tmp = j * (y * -i); elseif (x <= 1.1e+68) tmp = b * (z * -c); elseif (x <= 1.9e+262) tmp = t * (x * -a); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.5e-79], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e-165], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+68], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+262], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{-79}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-165}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+262}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -2.5e-79Initial program 81.2%
Taylor expanded in z around inf 56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in x around inf 42.9%
*-commutative42.9%
Simplified42.9%
if -2.5e-79 < x < 8.2000000000000004e-165Initial program 75.1%
Taylor expanded in y around inf 48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in x around 0 41.0%
mul-1-neg41.0%
*-commutative41.0%
distribute-rgt-neg-in41.0%
Simplified41.0%
Taylor expanded in j around 0 41.0%
*-commutative41.0%
neg-mul-141.0%
distribute-rgt-neg-in41.0%
associate-*r*42.3%
distribute-rgt-neg-out42.3%
Simplified42.3%
if 8.2000000000000004e-165 < x < 1.09999999999999994e68Initial program 66.7%
Taylor expanded in b around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in a around 0 32.8%
mul-1-neg32.8%
distribute-rgt-neg-in32.8%
*-commutative32.8%
distribute-rgt-neg-in32.8%
Simplified32.8%
if 1.09999999999999994e68 < x < 1.90000000000000017e262Initial program 64.4%
Taylor expanded in a around inf 59.1%
distribute-lft-out--59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in x around inf 56.0%
associate-*r*56.0%
neg-mul-156.0%
*-commutative56.0%
Simplified56.0%
distribute-lft-neg-out56.0%
add-sqr-sqrt16.7%
sqrt-unprod36.2%
sqr-neg36.2%
sqrt-unprod16.8%
add-sqr-sqrt16.8%
associate-*r*10.8%
add-sqr-sqrt10.7%
sqrt-unprod33.3%
sqr-neg33.3%
sqrt-unprod19.6%
add-sqr-sqrt58.9%
Applied egg-rr58.9%
if 1.90000000000000017e262 < x Initial program 49.9%
Taylor expanded in y around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in x around inf 70.0%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -4.5e-173)
(* z (* x y))
(if (<= x 4.3e-162)
(* i (* a b))
(if (<= x 4.5e+68)
(* b (* z (- c)))
(if (<= x 2.9e+262) (* t (* x (- a))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.5e-173) {
tmp = z * (x * y);
} else if (x <= 4.3e-162) {
tmp = i * (a * b);
} else if (x <= 4.5e+68) {
tmp = b * (z * -c);
} else if (x <= 2.9e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-4.5d-173)) then
tmp = z * (x * y)
else if (x <= 4.3d-162) then
tmp = i * (a * b)
else if (x <= 4.5d+68) then
tmp = b * (z * -c)
else if (x <= 2.9d+262) then
tmp = t * (x * -a)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.5e-173) {
tmp = z * (x * y);
} else if (x <= 4.3e-162) {
tmp = i * (a * b);
} else if (x <= 4.5e+68) {
tmp = b * (z * -c);
} else if (x <= 2.9e+262) {
tmp = t * (x * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -4.5e-173: tmp = z * (x * y) elif x <= 4.3e-162: tmp = i * (a * b) elif x <= 4.5e+68: tmp = b * (z * -c) elif x <= 2.9e+262: tmp = t * (x * -a) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -4.5e-173) tmp = Float64(z * Float64(x * y)); elseif (x <= 4.3e-162) tmp = Float64(i * Float64(a * b)); elseif (x <= 4.5e+68) tmp = Float64(b * Float64(z * Float64(-c))); elseif (x <= 2.9e+262) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -4.5e-173) tmp = z * (x * y); elseif (x <= 4.3e-162) tmp = i * (a * b); elseif (x <= 4.5e+68) tmp = b * (z * -c); elseif (x <= 2.9e+262) tmp = t * (x * -a); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.5e-173], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e-162], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+68], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+262], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{-173}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-162}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+262}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -4.50000000000000018e-173Initial program 80.1%
Taylor expanded in z around inf 52.6%
*-commutative52.6%
Simplified52.6%
Taylor expanded in x around inf 38.9%
*-commutative38.9%
Simplified38.9%
if -4.50000000000000018e-173 < x < 4.29999999999999996e-162Initial program 76.3%
Taylor expanded in b around inf 43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in a around inf 30.1%
*-commutative30.1%
Simplified30.1%
Taylor expanded in a around 0 30.1%
associate-*r*31.7%
Simplified31.7%
if 4.29999999999999996e-162 < x < 4.5000000000000003e68Initial program 65.3%
Taylor expanded in b around inf 42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in a around 0 34.0%
mul-1-neg34.0%
distribute-rgt-neg-in34.0%
*-commutative34.0%
distribute-rgt-neg-in34.0%
Simplified34.0%
if 4.5000000000000003e68 < x < 2.8999999999999998e262Initial program 64.4%
Taylor expanded in a around inf 59.1%
distribute-lft-out--59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in x around inf 56.0%
associate-*r*56.0%
neg-mul-156.0%
*-commutative56.0%
Simplified56.0%
distribute-lft-neg-out56.0%
add-sqr-sqrt16.7%
sqrt-unprod36.2%
sqr-neg36.2%
sqrt-unprod16.8%
add-sqr-sqrt16.8%
associate-*r*10.8%
add-sqr-sqrt10.7%
sqrt-unprod33.3%
sqr-neg33.3%
sqrt-unprod19.6%
add-sqr-sqrt58.9%
Applied egg-rr58.9%
if 2.8999999999999998e262 < x Initial program 49.9%
Taylor expanded in y around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in x around inf 70.0%
Final simplification39.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -5e+160) (not (<= b 3.8e+121))) (* b (- (* a i) (* z c))) (+ (* j (- (* t c) (* y i))) (* x (* y z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5e+160) || !(b <= 3.8e+121)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-5d+160)) .or. (.not. (b <= 3.8d+121))) then
tmp = b * ((a * i) - (z * c))
else
tmp = (j * ((t * c) - (y * i))) + (x * (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5e+160) || !(b <= 3.8e+121)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * (y * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -5e+160) or not (b <= 3.8e+121): tmp = b * ((a * i) - (z * c)) else: tmp = (j * ((t * c) - (y * i))) + (x * (y * z)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -5e+160) || !(b <= 3.8e+121)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -5e+160) || ~((b <= 3.8e+121))) tmp = b * ((a * i) - (z * c)); else tmp = (j * ((t * c) - (y * i))) + (x * (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -5e+160], N[Not[LessEqual[b, 3.8e+121]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+160} \lor \neg \left(b \leq 3.8 \cdot 10^{+121}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if b < -5.0000000000000002e160 or 3.8e121 < b Initial program 72.2%
Taylor expanded in b around inf 70.2%
*-commutative70.2%
Simplified70.2%
if -5.0000000000000002e160 < b < 3.8e121Initial program 73.7%
Taylor expanded in b around 0 66.9%
Taylor expanded in a around 0 59.9%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -6.5e-45)
t_1
(if (<= i 2e-196)
(* c (- (* t j) (* z b)))
(if (<= i 1.46e+54) (* a (- (* b i) (* x t))) 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -6.5e-45) {
tmp = t_1;
} else if (i <= 2e-196) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 1.46e+54) {
tmp = a * ((b * i) - (x * t));
} 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 = i * ((a * b) - (y * j))
if (i <= (-6.5d-45)) then
tmp = t_1
else if (i <= 2d-196) then
tmp = c * ((t * j) - (z * b))
else if (i <= 1.46d+54) then
tmp = a * ((b * i) - (x * t))
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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -6.5e-45) {
tmp = t_1;
} else if (i <= 2e-196) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 1.46e+54) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -6.5e-45: tmp = t_1 elif i <= 2e-196: tmp = c * ((t * j) - (z * b)) elif i <= 1.46e+54: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -6.5e-45) tmp = t_1; elseif (i <= 2e-196) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 1.46e+54) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -6.5e-45) tmp = t_1; elseif (i <= 2e-196) tmp = c * ((t * j) - (z * b)); elseif (i <= 1.46e+54) tmp = a * ((b * i) - (x * t)); else tmp = t_1; 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]}, If[LessEqual[i, -6.5e-45], t$95$1, If[LessEqual[i, 2e-196], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.46e+54], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -6.5 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-196}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.46 \cdot 10^{+54}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -6.4999999999999995e-45 or 1.46000000000000003e54 < i Initial program 62.0%
Taylor expanded in t around inf 61.3%
Simplified62.2%
Taylor expanded in i around -inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
associate-/l*51.2%
*-commutative51.2%
associate-*r/50.0%
Simplified50.0%
Taylor expanded in t around 0 60.3%
if -6.4999999999999995e-45 < i < 2.0000000000000001e-196Initial program 84.9%
Taylor expanded in c around inf 54.1%
*-commutative54.1%
*-commutative54.1%
Simplified54.1%
if 2.0000000000000001e-196 < i < 1.46000000000000003e54Initial program 81.1%
Taylor expanded in a around inf 46.9%
distribute-lft-out--46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in a around 0 46.9%
mul-1-neg46.9%
*-commutative46.9%
*-commutative46.9%
distribute-rgt-neg-out46.9%
neg-mul-146.9%
*-commutative46.9%
*-commutative46.9%
distribute-lft-out--46.9%
sub-neg46.9%
mul-1-neg46.9%
*-commutative46.9%
remove-double-neg46.9%
*-commutative46.9%
+-commutative46.9%
*-commutative46.9%
mul-1-neg46.9%
unsub-neg46.9%
*-commutative46.9%
Simplified46.9%
Final simplification55.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= c -360000000.0)
t_1
(if (<= c -2.5e-110)
(* x (* y z))
(if (<= c 1.5e-11) (* a (- (* b i) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -360000000.0) {
tmp = t_1;
} else if (c <= -2.5e-110) {
tmp = x * (y * z);
} else if (c <= 1.5e-11) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
if (c <= (-360000000.0d0)) then
tmp = t_1
else if (c <= (-2.5d-110)) then
tmp = x * (y * z)
else if (c <= 1.5d-11) then
tmp = a * ((b * i) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (c <= -360000000.0) {
tmp = t_1;
} else if (c <= -2.5e-110) {
tmp = x * (y * z);
} else if (c <= 1.5e-11) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if c <= -360000000.0: tmp = t_1 elif c <= -2.5e-110: tmp = x * (y * z) elif c <= 1.5e-11: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -360000000.0) tmp = t_1; elseif (c <= -2.5e-110) tmp = Float64(x * Float64(y * z)); elseif (c <= 1.5e-11) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -360000000.0) tmp = t_1; elseif (c <= -2.5e-110) tmp = x * (y * z); elseif (c <= 1.5e-11) tmp = a * ((b * i) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -360000000.0], t$95$1, If[LessEqual[c, -2.5e-110], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.5e-11], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -360000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.5 \cdot 10^{-110}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-11}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.6e8 or 1.5e-11 < c Initial program 60.5%
Taylor expanded in c around inf 58.8%
*-commutative58.8%
*-commutative58.8%
Simplified58.8%
if -3.6e8 < c < -2.5e-110Initial program 88.0%
Taylor expanded in y around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
Simplified72.6%
Taylor expanded in x around inf 52.8%
if -2.5e-110 < c < 1.5e-11Initial program 83.9%
Taylor expanded in a around inf 47.4%
distribute-lft-out--47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in a around 0 47.4%
mul-1-neg47.4%
*-commutative47.4%
*-commutative47.4%
distribute-rgt-neg-out47.4%
neg-mul-147.4%
*-commutative47.4%
*-commutative47.4%
distribute-lft-out--47.4%
sub-neg47.4%
mul-1-neg47.4%
*-commutative47.4%
remove-double-neg47.4%
*-commutative47.4%
+-commutative47.4%
*-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
*-commutative47.4%
Simplified47.4%
Final simplification53.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.3e+146)
(* z (* x y))
(if (<= x 1.2e+68)
(* b (- (* a i) (* z c)))
(if (<= x 2.1e+262) (* a (- (* b i) (* x t))) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.3e+146) {
tmp = z * (x * y);
} else if (x <= 1.2e+68) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2.1e+262) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-1.3d+146)) then
tmp = z * (x * y)
else if (x <= 1.2d+68) then
tmp = b * ((a * i) - (z * c))
else if (x <= 2.1d+262) then
tmp = a * ((b * i) - (x * t))
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.3e+146) {
tmp = z * (x * y);
} else if (x <= 1.2e+68) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 2.1e+262) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.3e+146: tmp = z * (x * y) elif x <= 1.2e+68: tmp = b * ((a * i) - (z * c)) elif x <= 2.1e+262: tmp = a * ((b * i) - (x * t)) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.3e+146) tmp = Float64(z * Float64(x * y)); elseif (x <= 1.2e+68) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 2.1e+262) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.3e+146) tmp = z * (x * y); elseif (x <= 1.2e+68) tmp = b * ((a * i) - (z * c)); elseif (x <= 2.1e+262) tmp = a * ((b * i) - (x * t)); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.3e+146], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e+68], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1e+262], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+146}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{+262}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if x < -1.30000000000000007e146Initial program 75.0%
Taylor expanded in z around inf 70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in x around inf 67.4%
*-commutative67.4%
Simplified67.4%
if -1.30000000000000007e146 < x < 1.20000000000000004e68Initial program 75.9%
Taylor expanded in b around inf 40.3%
*-commutative40.3%
Simplified40.3%
if 1.20000000000000004e68 < x < 2.09999999999999989e262Initial program 64.4%
Taylor expanded in a around inf 59.1%
distribute-lft-out--59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in a around 0 59.1%
mul-1-neg59.1%
*-commutative59.1%
*-commutative59.1%
distribute-rgt-neg-out59.1%
neg-mul-159.1%
*-commutative59.1%
*-commutative59.1%
distribute-lft-out--59.1%
sub-neg59.1%
mul-1-neg59.1%
*-commutative59.1%
remove-double-neg59.1%
*-commutative59.1%
+-commutative59.1%
*-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
*-commutative59.1%
Simplified59.1%
if 2.09999999999999989e262 < x Initial program 49.9%
Taylor expanded in y around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Taylor expanded in x around inf 70.0%
Final simplification47.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2e-26)
(* x (* y z))
(if (<= z 2.5e-68)
(* a (- (* b i) (* x t)))
(if (<= z 1.3e+111) (* (- y) (* i j)) (* b (* z (- c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2e-26) {
tmp = x * (y * z);
} else if (z <= 2.5e-68) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.3e+111) {
tmp = -y * (i * j);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2d-26)) then
tmp = x * (y * z)
else if (z <= 2.5d-68) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.3d+111) then
tmp = -y * (i * j)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2e-26) {
tmp = x * (y * z);
} else if (z <= 2.5e-68) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.3e+111) {
tmp = -y * (i * j);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2e-26: tmp = x * (y * z) elif z <= 2.5e-68: tmp = a * ((b * i) - (x * t)) elif z <= 1.3e+111: tmp = -y * (i * j) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2e-26) tmp = Float64(x * Float64(y * z)); elseif (z <= 2.5e-68) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.3e+111) tmp = Float64(Float64(-y) * Float64(i * j)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2e-26) tmp = x * (y * z); elseif (z <= 2.5e-68) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.3e+111) tmp = -y * (i * j); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2e-26], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e-68], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+111], N[((-y) * N[(i * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-26}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-68}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+111}:\\
\;\;\;\;\left(-y\right) \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -2.0000000000000001e-26Initial program 67.6%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
Simplified54.2%
Taylor expanded in x around inf 45.4%
if -2.0000000000000001e-26 < z < 2.49999999999999986e-68Initial program 80.7%
Taylor expanded in a around inf 49.1%
distribute-lft-out--49.1%
*-commutative49.1%
*-commutative49.1%
Simplified49.1%
Taylor expanded in a around 0 49.1%
mul-1-neg49.1%
*-commutative49.1%
*-commutative49.1%
distribute-rgt-neg-out49.1%
neg-mul-149.1%
*-commutative49.1%
*-commutative49.1%
distribute-lft-out--49.1%
sub-neg49.1%
mul-1-neg49.1%
*-commutative49.1%
remove-double-neg49.1%
*-commutative49.1%
+-commutative49.1%
*-commutative49.1%
mul-1-neg49.1%
unsub-neg49.1%
*-commutative49.1%
Simplified49.1%
if 2.49999999999999986e-68 < z < 1.2999999999999999e111Initial program 78.1%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in x around 0 42.3%
mul-1-neg42.3%
distribute-lft-neg-out42.3%
*-commutative42.3%
Simplified42.3%
if 1.2999999999999999e111 < z Initial program 59.7%
Taylor expanded in b around inf 42.3%
*-commutative42.3%
Simplified42.3%
Taylor expanded in a around 0 44.5%
mul-1-neg44.5%
distribute-rgt-neg-in44.5%
*-commutative44.5%
distribute-rgt-neg-in44.5%
Simplified44.5%
Final simplification46.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -3.9e-57) (not (<= z 1.7e-58))) (* x (* y z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.9e-57) || !(z <= 1.7e-58)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-3.9d-57)) .or. (.not. (z <= 1.7d-58))) then
tmp = x * (y * z)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -3.9e-57) || !(z <= 1.7e-58)) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -3.9e-57) or not (z <= 1.7e-58): tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -3.9e-57) || !(z <= 1.7e-58)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -3.9e-57) || ~((z <= 1.7e-58))) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -3.9e-57], N[Not[LessEqual[z, 1.7e-58]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{-57} \lor \neg \left(z \leq 1.7 \cdot 10^{-58}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if z < -3.90000000000000006e-57 or 1.69999999999999987e-58 < z Initial program 69.9%
Taylor expanded in y around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
Simplified50.6%
Taylor expanded in x around inf 36.9%
if -3.90000000000000006e-57 < z < 1.69999999999999987e-58Initial program 78.3%
Taylor expanded in b around inf 37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in a around inf 31.3%
*-commutative31.3%
Simplified31.3%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -2.9e-56) (* x (* y z)) (if (<= z 3e-70) (* i (* a b)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e-56) {
tmp = x * (y * z);
} else if (z <= 3e-70) {
tmp = i * (a * b);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.9d-56)) then
tmp = x * (y * z)
else if (z <= 3d-70) then
tmp = i * (a * b)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e-56) {
tmp = x * (y * z);
} else if (z <= 3e-70) {
tmp = i * (a * b);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.9e-56: tmp = x * (y * z) elif z <= 3e-70: tmp = i * (a * b) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.9e-56) tmp = Float64(x * Float64(y * z)); elseif (z <= 3e-70) tmp = Float64(i * Float64(a * b)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.9e-56) tmp = x * (y * z); elseif (z <= 3e-70) tmp = i * (a * b); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.9e-56], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-70], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-70}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -2.89999999999999991e-56Initial program 70.9%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in x around inf 43.1%
if -2.89999999999999991e-56 < z < 3.0000000000000001e-70Initial program 79.6%
Taylor expanded in b around inf 36.9%
*-commutative36.9%
Simplified36.9%
Taylor expanded in a around inf 30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in a around 0 30.6%
associate-*r*31.6%
Simplified31.6%
if 3.0000000000000001e-70 < z Initial program 67.4%
Taylor expanded in z around inf 55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in x around inf 31.6%
*-commutative31.6%
Simplified31.6%
Final simplification35.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.7e-54) (* x (* y z)) (if (<= z 4.8e-64) (* b (* a i)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.7e-54) {
tmp = x * (y * z);
} else if (z <= 4.8e-64) {
tmp = b * (a * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.7d-54)) then
tmp = x * (y * z)
else if (z <= 4.8d-64) then
tmp = b * (a * i)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.7e-54) {
tmp = x * (y * z);
} else if (z <= 4.8e-64) {
tmp = b * (a * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.7e-54: tmp = x * (y * z) elif z <= 4.8e-64: tmp = b * (a * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.7e-54) tmp = Float64(x * Float64(y * z)); elseif (z <= 4.8e-64) tmp = Float64(b * Float64(a * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.7e-54) tmp = x * (y * z); elseif (z <= 4.8e-64) tmp = b * (a * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.7e-54], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-64], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{-54}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-64}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -1.69999999999999994e-54Initial program 70.9%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in x around inf 43.1%
if -1.69999999999999994e-54 < z < 4.79999999999999997e-64Initial program 79.8%
Taylor expanded in b around inf 37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in a around inf 30.9%
*-commutative30.9%
Simplified30.9%
if 4.79999999999999997e-64 < z Initial program 67.0%
Taylor expanded in z around inf 54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in x around inf 32.0%
*-commutative32.0%
Simplified32.0%
Final simplification34.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -7e-57) (* x (* y z)) (if (<= z 2.7e-59) (* b (* a i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7e-57) {
tmp = x * (y * z);
} else if (z <= 2.7e-59) {
tmp = b * (a * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-7d-57)) then
tmp = x * (y * z)
else if (z <= 2.7d-59) then
tmp = b * (a * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7e-57) {
tmp = x * (y * z);
} else if (z <= 2.7e-59) {
tmp = b * (a * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7e-57: tmp = x * (y * z) elif z <= 2.7e-59: tmp = b * (a * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7e-57) tmp = Float64(x * Float64(y * z)); elseif (z <= 2.7e-59) tmp = Float64(b * Float64(a * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7e-57) tmp = x * (y * z); elseif (z <= 2.7e-59) tmp = b * (a * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7e-57], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e-59], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{-57}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -6.99999999999999983e-57Initial program 70.9%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Taylor expanded in x around inf 43.1%
if -6.99999999999999983e-57 < z < 2.6999999999999999e-59Initial program 78.3%
Taylor expanded in b around inf 37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in a around inf 31.3%
*-commutative31.3%
Simplified31.3%
if 2.6999999999999999e-59 < z Initial program 68.9%
Taylor expanded in y around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
Simplified47.9%
Taylor expanded in x around inf 30.3%
*-commutative30.3%
Simplified30.3%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z 1.86e+205) (* a (* b i)) (* a (* x t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 1.86e+205) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= 1.86d+205) then
tmp = a * (b * i)
else
tmp = a * (x * t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= 1.86e+205) {
tmp = a * (b * i);
} else {
tmp = a * (x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= 1.86e+205: tmp = a * (b * i) else: tmp = a * (x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= 1.86e+205) tmp = Float64(a * Float64(b * i)); else tmp = Float64(a * Float64(x * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= 1.86e+205) tmp = a * (b * i); else tmp = a * (x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, 1.86e+205], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.86 \cdot 10^{+205}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if z < 1.8600000000000001e205Initial program 74.4%
Taylor expanded in b around inf 34.5%
*-commutative34.5%
Simplified34.5%
Taylor expanded in a around inf 19.7%
*-commutative19.7%
Simplified19.7%
if 1.8600000000000001e205 < z Initial program 60.5%
Taylor expanded in a around inf 11.6%
distribute-lft-out--11.6%
*-commutative11.6%
*-commutative11.6%
Simplified11.6%
Taylor expanded in x around inf 11.5%
associate-*r*11.5%
neg-mul-111.5%
*-commutative11.5%
Simplified11.5%
neg-sub011.5%
sub-neg11.5%
add-sqr-sqrt1.3%
sqrt-unprod6.7%
sqr-neg6.7%
sqrt-unprod1.1%
add-sqr-sqrt21.8%
Applied egg-rr21.8%
+-lft-identity21.8%
Simplified21.8%
Final simplification19.9%
(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 73.3%
Taylor expanded in b around inf 35.0%
*-commutative35.0%
Simplified35.0%
Taylor expanded in a around inf 18.3%
*-commutative18.3%
Simplified18.3%
Final simplification18.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 2024186
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))