
(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 25 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 (- (* t c) (* y i)))
(t_2
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j t_1))))
(if (<= t_2 INFINITY) t_2 (* j (cbrt (* t_1 (* t_1 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * c) - (y * i);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * t_1);
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = j * cbrt((t_1 * (t_1 * t_1)));
}
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 = (t * c) - (y * i);
double t_2 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * t_1);
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = j * Math.cbrt((t_1 * (t_1 * t_1)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * t_1)) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(j * cbrt(Float64(t_1 * Float64(t_1 * t_1)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(j * N[Power[N[(t$95$1 * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot t_1\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \sqrt[3]{t_1 \cdot \left(t_1 \cdot t_1\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.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around 0 25.8%
sub-neg25.8%
Simplified31.3%
Taylor expanded in j around inf 49.8%
mul-1-neg49.8%
distribute-lft-neg-out49.8%
+-commutative49.8%
cancel-sign-sub-inv49.8%
*-commutative49.8%
*-commutative49.8%
Simplified49.8%
add-cbrt-cube54.9%
Applied egg-rr54.9%
Final simplification82.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* c (- (* t j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * 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 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around inf 53.2%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= c -1.15e+142) (not (<= c 2.45e+129)))
(* c (- (* t j) (* z b)))
(-
(* b (- (* a i) (* z c)))
(+ (* y (- (* i j) (* x z))) (* t (- (* x a) (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.15e+142) || !(c <= 2.45e+129)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (b * ((a * i) - (z * c))) - ((y * ((i * j) - (x * z))) + (t * ((x * a) - (c * j))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.15d+142)) .or. (.not. (c <= 2.45d+129))) then
tmp = c * ((t * j) - (z * b))
else
tmp = (b * ((a * i) - (z * c))) - ((y * ((i * j) - (x * z))) + (t * ((x * a) - (c * j))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.15e+142) || !(c <= 2.45e+129)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (b * ((a * i) - (z * c))) - ((y * ((i * j) - (x * z))) + (t * ((x * a) - (c * j))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.15e+142) or not (c <= 2.45e+129): tmp = c * ((t * j) - (z * b)) else: tmp = (b * ((a * i) - (z * c))) - ((y * ((i * j) - (x * z))) + (t * ((x * a) - (c * j)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.15e+142) || !(c <= 2.45e+129)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(Float64(y * Float64(Float64(i * j) - Float64(x * z))) + Float64(t * Float64(Float64(x * a) - Float64(c * j))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.15e+142) || ~((c <= 2.45e+129))) tmp = c * ((t * j) - (z * b)); else tmp = (b * ((a * i) - (z * c))) - ((y * ((i * j) - (x * z))) + (t * ((x * a) - (c * j)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.15e+142], N[Not[LessEqual[c, 2.45e+129]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.15 \cdot 10^{+142} \lor \neg \left(c \leq 2.45 \cdot 10^{+129}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - \left(y \cdot \left(i \cdot j - x \cdot z\right) + t \cdot \left(x \cdot a - c \cdot j\right)\right)\\
\end{array}
\end{array}
if c < -1.15000000000000001e142 or 2.45e129 < c Initial program 57.7%
Taylor expanded in c around inf 76.5%
if -1.15000000000000001e142 < c < 2.45e129Initial program 76.6%
Taylor expanded in y around 0 79.5%
sub-neg79.5%
Simplified83.2%
Final simplification81.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* t (- (* c j) (* x a))) (* y (- (* x z) (* i j)))))
(t_2 (* j (- (* t c) (* y i)))))
(if (<= j -1.9e+184)
t_2
(if (<= j -2.9e-88)
t_1
(if (<= j 9e-123)
(- (* b (- (* a i) (* z c))) (* a (* x t)))
(if (<= j 9e+47) 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 = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.9e+184) {
tmp = t_2;
} else if (j <= -2.9e-88) {
tmp = t_1;
} else if (j <= 9e-123) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else if (j <= 9e+47) {
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 = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)))
t_2 = j * ((t * c) - (y * i))
if (j <= (-1.9d+184)) then
tmp = t_2
else if (j <= (-2.9d-88)) then
tmp = t_1
else if (j <= 9d-123) then
tmp = (b * ((a * i) - (z * c))) - (a * (x * t))
else if (j <= 9d+47) 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 = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.9e+184) {
tmp = t_2;
} else if (j <= -2.9e-88) {
tmp = t_1;
} else if (j <= 9e-123) {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
} else if (j <= 9e+47) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.9e+184: tmp = t_2 elif j <= -2.9e-88: tmp = t_1 elif j <= 9e-123: tmp = (b * ((a * i) - (z * c))) - (a * (x * t)) elif j <= 9e+47: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.9e+184) tmp = t_2; elseif (j <= -2.9e-88) tmp = t_1; elseif (j <= 9e-123) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(a * Float64(x * t))); elseif (j <= 9e+47) 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 = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.9e+184) tmp = t_2; elseif (j <= -2.9e-88) tmp = t_1; elseif (j <= 9e-123) tmp = (b * ((a * i) - (z * c))) - (a * (x * t)); elseif (j <= 9e+47) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.9e+184], t$95$2, If[LessEqual[j, -2.9e-88], t$95$1, If[LessEqual[j, 9e-123], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9e+47], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.9 \cdot 10^{+184}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -2.9 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 9 \cdot 10^{-123}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;j \leq 9 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.9000000000000001e184 or 8.99999999999999958e47 < j Initial program 70.3%
Taylor expanded in y around 0 57.6%
sub-neg57.6%
Simplified60.1%
Taylor expanded in j around inf 77.1%
mul-1-neg77.1%
distribute-lft-neg-out77.1%
+-commutative77.1%
cancel-sign-sub-inv77.1%
*-commutative77.1%
*-commutative77.1%
Simplified77.1%
if -1.9000000000000001e184 < j < -2.9000000000000001e-88 or 8.99999999999999986e-123 < j < 8.99999999999999958e47Initial program 69.9%
Taylor expanded in y around 0 76.5%
sub-neg76.5%
Simplified78.4%
Taylor expanded in b around 0 73.8%
if -2.9000000000000001e-88 < j < 8.99999999999999986e-123Initial program 73.3%
Taylor expanded in y around 0 70.3%
associate-*r*70.3%
*-commutative70.3%
associate-*r*68.9%
associate-*r*68.9%
associate-*r*68.9%
distribute-rgt-in68.9%
*-commutative68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in j around 0 69.1%
sub-neg69.1%
neg-mul-169.1%
+-commutative69.1%
unsub-neg69.1%
distribute-rgt-neg-in69.1%
neg-sub069.1%
associate--r-69.1%
neg-sub069.1%
+-commutative69.1%
sub-neg69.1%
Simplified69.1%
Final simplification73.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* c (- (* t j) (* z b)))))
(if (<= c -5.8e+78)
t_3
(if (<= c -7.5e+27)
t_2
(if (<= c -9.5e-11)
t_1
(if (<= c -4.6e-63)
(* x (* y z))
(if (<= c -2.7e-88)
(* c (* t j))
(if (<= c 1.4e-307)
t_2
(if (<= c 8e-254) t_1 (if (<= c 8e+80) t_2 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double t_2 = a * ((b * i) - (x * t));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -5.8e+78) {
tmp = t_3;
} else if (c <= -7.5e+27) {
tmp = t_2;
} else if (c <= -9.5e-11) {
tmp = t_1;
} else if (c <= -4.6e-63) {
tmp = x * (y * z);
} else if (c <= -2.7e-88) {
tmp = c * (t * j);
} else if (c <= 1.4e-307) {
tmp = t_2;
} else if (c <= 8e-254) {
tmp = t_1;
} else if (c <= 8e+80) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * (i * -j)
t_2 = a * ((b * i) - (x * t))
t_3 = c * ((t * j) - (z * b))
if (c <= (-5.8d+78)) then
tmp = t_3
else if (c <= (-7.5d+27)) then
tmp = t_2
else if (c <= (-9.5d-11)) then
tmp = t_1
else if (c <= (-4.6d-63)) then
tmp = x * (y * z)
else if (c <= (-2.7d-88)) then
tmp = c * (t * j)
else if (c <= 1.4d-307) then
tmp = t_2
else if (c <= 8d-254) then
tmp = t_1
else if (c <= 8d+80) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double t_2 = a * ((b * i) - (x * t));
double t_3 = c * ((t * j) - (z * b));
double tmp;
if (c <= -5.8e+78) {
tmp = t_3;
} else if (c <= -7.5e+27) {
tmp = t_2;
} else if (c <= -9.5e-11) {
tmp = t_1;
} else if (c <= -4.6e-63) {
tmp = x * (y * z);
} else if (c <= -2.7e-88) {
tmp = c * (t * j);
} else if (c <= 1.4e-307) {
tmp = t_2;
} else if (c <= 8e-254) {
tmp = t_1;
} else if (c <= 8e+80) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) t_2 = a * ((b * i) - (x * t)) t_3 = c * ((t * j) - (z * b)) tmp = 0 if c <= -5.8e+78: tmp = t_3 elif c <= -7.5e+27: tmp = t_2 elif c <= -9.5e-11: tmp = t_1 elif c <= -4.6e-63: tmp = x * (y * z) elif c <= -2.7e-88: tmp = c * (t * j) elif c <= 1.4e-307: tmp = t_2 elif c <= 8e-254: tmp = t_1 elif c <= 8e+80: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -5.8e+78) tmp = t_3; elseif (c <= -7.5e+27) tmp = t_2; elseif (c <= -9.5e-11) tmp = t_1; elseif (c <= -4.6e-63) tmp = Float64(x * Float64(y * z)); elseif (c <= -2.7e-88) tmp = Float64(c * Float64(t * j)); elseif (c <= 1.4e-307) tmp = t_2; elseif (c <= 8e-254) tmp = t_1; elseif (c <= 8e+80) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); t_2 = a * ((b * i) - (x * t)); t_3 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -5.8e+78) tmp = t_3; elseif (c <= -7.5e+27) tmp = t_2; elseif (c <= -9.5e-11) tmp = t_1; elseif (c <= -4.6e-63) tmp = x * (y * z); elseif (c <= -2.7e-88) tmp = c * (t * j); elseif (c <= 1.4e-307) tmp = t_2; elseif (c <= 8e-254) tmp = t_1; elseif (c <= 8e+80) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.8e+78], t$95$3, If[LessEqual[c, -7.5e+27], t$95$2, If[LessEqual[c, -9.5e-11], t$95$1, If[LessEqual[c, -4.6e-63], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.7e-88], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.4e-307], t$95$2, If[LessEqual[c, 8e-254], t$95$1, If[LessEqual[c, 8e+80], t$95$2, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -5.8 \cdot 10^{+78}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -9.5 \cdot 10^{-11}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.6 \cdot 10^{-63}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -2.7 \cdot 10^{-88}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-307}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 8 \cdot 10^{-254}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 8 \cdot 10^{+80}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -5.80000000000000034e78 or 8e80 < c Initial program 62.5%
Taylor expanded in c around inf 72.2%
if -5.80000000000000034e78 < c < -7.5000000000000002e27 or -2.69999999999999995e-88 < c < 1.4e-307 or 7.9999999999999993e-254 < c < 8e80Initial program 78.3%
Taylor expanded in y around 0 81.6%
sub-neg81.6%
Simplified82.3%
Taylor expanded in a around inf 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
*-commutative58.6%
*-commutative58.6%
Simplified58.6%
if -7.5000000000000002e27 < c < -9.49999999999999951e-11 or 1.4e-307 < c < 7.9999999999999993e-254Initial program 64.1%
Taylor expanded in y around inf 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in z around 0 50.3%
mul-1-neg50.3%
*-commutative50.3%
*-commutative50.3%
associate-*r*56.8%
*-commutative56.8%
distribute-rgt-neg-out56.8%
distribute-rgt-neg-in56.8%
Simplified56.8%
if -9.49999999999999951e-11 < c < -4.6e-63Initial program 89.9%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in z around inf 67.5%
if -4.6e-63 < c < -2.69999999999999995e-88Initial program 75.0%
Taylor expanded in y around 0 100.0%
sub-neg100.0%
Simplified99.2%
Taylor expanded in j around inf 100.0%
mul-1-neg100.0%
distribute-lft-neg-out100.0%
+-commutative100.0%
cancel-sign-sub-inv100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 75.1%
*-commutative75.1%
Simplified75.1%
Final simplification64.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.8e+88) (not (<= b 1.42e-27))) (+ (* b (- (* a i) (* z c))) (* j (- (* t c) (* y i)))) (+ (* t (- (* c j) (* x a))) (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.8e+88) || !(b <= 1.42e-27)) {
tmp = (b * ((a * i) - (z * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.8d+88)) .or. (.not. (b <= 1.42d-27))) then
tmp = (b * ((a * i) - (z * c))) + (j * ((t * c) - (y * i)))
else
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.8e+88) || !(b <= 1.42e-27)) {
tmp = (b * ((a * i) - (z * c))) + (j * ((t * c) - (y * i)));
} else {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.8e+88) or not (b <= 1.42e-27): tmp = (b * ((a * i) - (z * c))) + (j * ((t * c) - (y * i))) else: tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.8e+88) || !(b <= 1.42e-27)) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.8e+88) || ~((b <= 1.42e-27))) tmp = (b * ((a * i) - (z * c))) + (j * ((t * c) - (y * i))); else tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.8e+88], N[Not[LessEqual[b, 1.42e-27]], $MachinePrecision]], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+88} \lor \neg \left(b \leq 1.42 \cdot 10^{-27}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if b < -3.7999999999999997e88 or 1.41999999999999996e-27 < b Initial program 75.5%
Taylor expanded in x around 0 79.1%
*-commutative79.1%
Simplified79.1%
if -3.7999999999999997e88 < b < 1.41999999999999996e-27Initial program 67.3%
Taylor expanded in y around 0 68.3%
sub-neg68.3%
Simplified72.4%
Taylor expanded in b around 0 70.9%
Final simplification74.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x t))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -7e+35)
t_2
(if (<= j -3.6e-243)
(- (* z (- (* x y) (* b c))) t_1)
(if (<= j 1.55e+32) (- (* b (- (* a i) (* z c))) t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * t);
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -7e+35) {
tmp = t_2;
} else if (j <= -3.6e-243) {
tmp = (z * ((x * y) - (b * c))) - t_1;
} else if (j <= 1.55e+32) {
tmp = (b * ((a * i) - (z * c))) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (x * t)
t_2 = j * ((t * c) - (y * i))
if (j <= (-7d+35)) then
tmp = t_2
else if (j <= (-3.6d-243)) then
tmp = (z * ((x * y) - (b * c))) - t_1
else if (j <= 1.55d+32) then
tmp = (b * ((a * i) - (z * c))) - t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * t);
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -7e+35) {
tmp = t_2;
} else if (j <= -3.6e-243) {
tmp = (z * ((x * y) - (b * c))) - t_1;
} else if (j <= 1.55e+32) {
tmp = (b * ((a * i) - (z * c))) - t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * t) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -7e+35: tmp = t_2 elif j <= -3.6e-243: tmp = (z * ((x * y) - (b * c))) - t_1 elif j <= 1.55e+32: tmp = (b * ((a * i) - (z * c))) - t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * t)) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -7e+35) tmp = t_2; elseif (j <= -3.6e-243) tmp = Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) - t_1); elseif (j <= 1.55e+32) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * t); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -7e+35) tmp = t_2; elseif (j <= -3.6e-243) tmp = (z * ((x * y) - (b * c))) - t_1; elseif (j <= 1.55e+32) tmp = (b * ((a * i) - (z * c))) - t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7e+35], t$95$2, If[LessEqual[j, -3.6e-243], N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[j, 1.55e+32], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -7 \cdot 10^{+35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq -3.6 \cdot 10^{-243}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right) - t_1\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{+32}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -7.0000000000000001e35 or 1.54999999999999997e32 < j Initial program 70.5%
Taylor expanded in y around 0 62.0%
sub-neg62.0%
Simplified63.6%
Taylor expanded in j around inf 71.6%
mul-1-neg71.6%
distribute-lft-neg-out71.6%
+-commutative71.6%
cancel-sign-sub-inv71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
if -7.0000000000000001e35 < j < -3.6000000000000001e-243Initial program 76.2%
Taylor expanded in y around 0 79.2%
sub-neg79.2%
Simplified82.0%
Taylor expanded in j around 0 70.3%
Taylor expanded in z around inf 71.8%
if -3.6000000000000001e-243 < j < 1.54999999999999997e32Initial program 67.4%
Taylor expanded in y around 0 67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*r*64.6%
associate-*r*64.6%
associate-*r*64.5%
distribute-rgt-in65.9%
*-commutative65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
Simplified65.9%
Taylor expanded in j around 0 66.0%
sub-neg66.0%
neg-mul-166.0%
+-commutative66.0%
unsub-neg66.0%
distribute-rgt-neg-in66.0%
neg-sub066.0%
associate--r-66.0%
neg-sub066.0%
+-commutative66.0%
sub-neg66.0%
Simplified66.0%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))))
(if (<= t -7.5e+88)
t_1
(if (<= t -8.4e-255)
(* i (- (* a b) (* y j)))
(if (<= t 4.5e-35)
(* y (- (* x z) (* i j)))
(if (<= t 2.8e+102) (- (* (* t a) (- x)) (* b (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -7.5e+88) {
tmp = t_1;
} else if (t <= -8.4e-255) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 4.5e-35) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 2.8e+102) {
tmp = ((t * a) * -x) - (b * (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
if (t <= (-7.5d+88)) then
tmp = t_1
else if (t <= (-8.4d-255)) then
tmp = i * ((a * b) - (y * j))
else if (t <= 4.5d-35) then
tmp = y * ((x * z) - (i * j))
else if (t <= 2.8d+102) then
tmp = ((t * a) * -x) - (b * (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double tmp;
if (t <= -7.5e+88) {
tmp = t_1;
} else if (t <= -8.4e-255) {
tmp = i * ((a * b) - (y * j));
} else if (t <= 4.5e-35) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 2.8e+102) {
tmp = ((t * a) * -x) - (b * (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) tmp = 0 if t <= -7.5e+88: tmp = t_1 elif t <= -8.4e-255: tmp = i * ((a * b) - (y * j)) elif t <= 4.5e-35: tmp = y * ((x * z) - (i * j)) elif t <= 2.8e+102: tmp = ((t * a) * -x) - (b * (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (t <= -7.5e+88) tmp = t_1; elseif (t <= -8.4e-255) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (t <= 4.5e-35) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 2.8e+102) tmp = Float64(Float64(Float64(t * a) * Float64(-x)) - Float64(b * Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); tmp = 0.0; if (t <= -7.5e+88) tmp = t_1; elseif (t <= -8.4e-255) tmp = i * ((a * b) - (y * j)); elseif (t <= 4.5e-35) tmp = y * ((x * z) - (i * j)); elseif (t <= 2.8e+102) tmp = ((t * a) * -x) - (b * (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+88], t$95$1, If[LessEqual[t, -8.4e-255], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-35], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+102], N[(N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -8.4 \cdot 10^{-255}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+102}:\\
\;\;\;\;\left(t \cdot a\right) \cdot \left(-x\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -7.50000000000000031e88 or 2.80000000000000018e102 < t Initial program 58.5%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
Simplified72.2%
if -7.50000000000000031e88 < t < -8.3999999999999999e-255Initial program 80.1%
Taylor expanded in y around 0 83.0%
sub-neg83.0%
Simplified78.2%
Taylor expanded in i around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
*-commutative58.7%
Simplified58.7%
if -8.3999999999999999e-255 < t < 4.5000000000000001e-35Initial program 77.7%
Taylor expanded in y around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
Simplified57.9%
if 4.5000000000000001e-35 < t < 2.80000000000000018e102Initial program 73.0%
Taylor expanded in y around 0 66.9%
sub-neg66.9%
Simplified70.1%
Taylor expanded in j around 0 58.4%
Taylor expanded in z around inf 61.5%
Taylor expanded in y around 0 53.7%
distribute-lft-out53.7%
associate-*r*56.5%
Simplified56.5%
Final simplification62.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= i -1.6e+234)
(* y (* i (- j)))
(if (<= i -7.2e-219)
t_1
(if (<= i -3.55e-283)
(* t (* c j))
(if (<= i 5.1e-89)
(* z (* c (- b)))
(if (<= i 4.4e+277) t_1 (* i (* y (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (i <= -1.6e+234) {
tmp = y * (i * -j);
} else if (i <= -7.2e-219) {
tmp = t_1;
} else if (i <= -3.55e-283) {
tmp = t * (c * j);
} else if (i <= 5.1e-89) {
tmp = z * (c * -b);
} else if (i <= 4.4e+277) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (i <= (-1.6d+234)) then
tmp = y * (i * -j)
else if (i <= (-7.2d-219)) then
tmp = t_1
else if (i <= (-3.55d-283)) then
tmp = t * (c * j)
else if (i <= 5.1d-89) then
tmp = z * (c * -b)
else if (i <= 4.4d+277) then
tmp = t_1
else
tmp = i * (y * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (i <= -1.6e+234) {
tmp = y * (i * -j);
} else if (i <= -7.2e-219) {
tmp = t_1;
} else if (i <= -3.55e-283) {
tmp = t * (c * j);
} else if (i <= 5.1e-89) {
tmp = z * (c * -b);
} else if (i <= 4.4e+277) {
tmp = t_1;
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if i <= -1.6e+234: tmp = y * (i * -j) elif i <= -7.2e-219: tmp = t_1 elif i <= -3.55e-283: tmp = t * (c * j) elif i <= 5.1e-89: tmp = z * (c * -b) elif i <= 4.4e+277: tmp = t_1 else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (i <= -1.6e+234) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -7.2e-219) tmp = t_1; elseif (i <= -3.55e-283) tmp = Float64(t * Float64(c * j)); elseif (i <= 5.1e-89) tmp = Float64(z * Float64(c * Float64(-b))); elseif (i <= 4.4e+277) tmp = t_1; else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (i <= -1.6e+234) tmp = y * (i * -j); elseif (i <= -7.2e-219) tmp = t_1; elseif (i <= -3.55e-283) tmp = t * (c * j); elseif (i <= 5.1e-89) tmp = z * (c * -b); elseif (i <= 4.4e+277) tmp = t_1; else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.6e+234], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.2e-219], t$95$1, If[LessEqual[i, -3.55e-283], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.1e-89], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.4e+277], t$95$1, N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;i \leq -1.6 \cdot 10^{+234}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -7.2 \cdot 10^{-219}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -3.55 \cdot 10^{-283}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 5.1 \cdot 10^{-89}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 4.4 \cdot 10^{+277}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -1.59999999999999996e234Initial program 66.7%
Taylor expanded in y around inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in z around 0 60.0%
mul-1-neg60.0%
*-commutative60.0%
*-commutative60.0%
associate-*r*75.8%
*-commutative75.8%
distribute-rgt-neg-out75.8%
distribute-rgt-neg-in75.8%
Simplified75.8%
if -1.59999999999999996e234 < i < -7.19999999999999947e-219 or 5.10000000000000004e-89 < i < 4.39999999999999993e277Initial program 70.6%
Taylor expanded in y around 0 74.1%
sub-neg74.1%
Simplified73.5%
Taylor expanded in a around inf 47.5%
+-commutative47.5%
mul-1-neg47.5%
unsub-neg47.5%
*-commutative47.5%
*-commutative47.5%
Simplified47.5%
if -7.19999999999999947e-219 < i < -3.5499999999999999e-283Initial program 72.2%
Taylor expanded in y around 0 77.8%
sub-neg77.8%
Simplified88.5%
Taylor expanded in j around inf 49.6%
mul-1-neg49.6%
distribute-lft-neg-out49.6%
+-commutative49.6%
cancel-sign-sub-inv49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in t around inf 54.7%
associate-*r*54.8%
*-commutative54.8%
Simplified54.8%
if -3.5499999999999999e-283 < i < 5.10000000000000004e-89Initial program 78.1%
Taylor expanded in b around inf 46.7%
*-commutative46.7%
Simplified46.7%
Taylor expanded in i around 0 44.4%
mul-1-neg44.4%
*-commutative44.4%
*-commutative44.4%
associate-*r*51.3%
*-commutative51.3%
distribute-rgt-neg-out51.3%
*-commutative51.3%
distribute-rgt-neg-in51.3%
Simplified51.3%
if 4.39999999999999993e277 < i Initial program 50.6%
Taylor expanded in y around inf 94.6%
+-commutative94.6%
mul-1-neg94.6%
unsub-neg94.6%
*-commutative94.6%
Simplified94.6%
Taylor expanded in z around 0 94.6%
mul-1-neg94.6%
*-commutative94.6%
Simplified94.6%
Final simplification51.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -5200000.0) (not (<= j 1.36e+32))) (* j (- (* t c) (* y i))) (- (* b (- (* a i) (* z c))) (* 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 ((j <= -5200000.0) || !(j <= 1.36e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (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 ((j <= (-5200000.0d0)) .or. (.not. (j <= 1.36d+32))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (b * ((a * i) - (z * c))) - (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 ((j <= -5200000.0) || !(j <= 1.36e+32)) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -5200000.0) or not (j <= 1.36e+32): tmp = j * ((t * c) - (y * i)) else: tmp = (b * ((a * i) - (z * c))) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -5200000.0) || !(j <= 1.36e+32)) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - 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 ((j <= -5200000.0) || ~((j <= 1.36e+32))) tmp = j * ((t * c) - (y * i)); else tmp = (b * ((a * i) - (z * c))) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -5200000.0], N[Not[LessEqual[j, 1.36e+32]], $MachinePrecision]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5200000 \lor \neg \left(j \leq 1.36 \cdot 10^{+32}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if j < -5.2e6 or 1.3599999999999999e32 < j Initial program 71.5%
Taylor expanded in y around 0 63.3%
sub-neg63.3%
Simplified64.8%
Taylor expanded in j around inf 71.0%
mul-1-neg71.0%
distribute-lft-neg-out71.0%
+-commutative71.0%
cancel-sign-sub-inv71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
if -5.2e6 < j < 1.3599999999999999e32Initial program 70.7%
Taylor expanded in y around 0 66.5%
associate-*r*66.5%
*-commutative66.5%
associate-*r*66.3%
associate-*r*66.3%
associate-*r*66.3%
distribute-rgt-in67.1%
*-commutative67.1%
+-commutative67.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in j around 0 65.1%
sub-neg65.1%
neg-mul-165.1%
+-commutative65.1%
unsub-neg65.1%
distribute-rgt-neg-in65.1%
neg-sub065.1%
associate--r-65.1%
neg-sub065.1%
+-commutative65.1%
sub-neg65.1%
Simplified65.1%
Final simplification67.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.55e+151) (not (<= i 2.85e+162))) (* i (- (* a b) (* y j))) (- (* t (- (* c j) (* x a))) (* c (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.55e+151) || !(i <= 2.85e+162)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.55d+151)) .or. (.not. (i <= 2.85d+162))) then
tmp = i * ((a * b) - (y * j))
else
tmp = (t * ((c * j) - (x * a))) - (c * (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.55e+151) || !(i <= 2.85e+162)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (t * ((c * j) - (x * a))) - (c * (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.55e+151) or not (i <= 2.85e+162): tmp = i * ((a * b) - (y * j)) else: tmp = (t * ((c * j) - (x * a))) - (c * (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.55e+151) || !(i <= 2.85e+162)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(c * Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.55e+151) || ~((i <= 2.85e+162))) tmp = i * ((a * b) - (y * j)); else tmp = (t * ((c * j) - (x * a))) - (c * (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.55e+151], N[Not[LessEqual[i, 2.85e+162]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.55 \cdot 10^{+151} \lor \neg \left(i \leq 2.85 \cdot 10^{+162}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - c \cdot \left(z \cdot b\right)\\
\end{array}
\end{array}
if i < -1.5500000000000001e151 or 2.84999999999999998e162 < i Initial program 56.8%
Taylor expanded in y around 0 55.1%
sub-neg55.1%
Simplified53.3%
Taylor expanded in i around inf 79.8%
+-commutative79.8%
mul-1-neg79.8%
unsub-neg79.8%
*-commutative79.8%
Simplified79.8%
if -1.5500000000000001e151 < i < 2.84999999999999998e162Initial program 75.9%
Taylor expanded in y around 0 64.2%
associate-*r*64.2%
*-commutative64.2%
associate-*r*66.6%
associate-*r*66.6%
associate-*r*67.6%
distribute-rgt-in69.6%
*-commutative69.6%
+-commutative69.6%
mul-1-neg69.6%
unsub-neg69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in c around inf 61.7%
*-commutative61.7%
associate-*l*64.1%
*-commutative64.1%
Simplified64.1%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.26e+217)
t_1
(if (<= t -6.3e+162)
(* a (* x (- t)))
(if (<= t -1.16e+84)
t_1
(if (<= t -6e-164)
(* i (* a b))
(if (<= t 4.5e-35)
(* y (* i (- j)))
(if (<= t 9.5e+121) (* z (* c (- b))) (* t (* c j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.26e+217) {
tmp = t_1;
} else if (t <= -6.3e+162) {
tmp = a * (x * -t);
} else if (t <= -1.16e+84) {
tmp = t_1;
} else if (t <= -6e-164) {
tmp = i * (a * b);
} else if (t <= 4.5e-35) {
tmp = y * (i * -j);
} else if (t <= 9.5e+121) {
tmp = z * (c * -b);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-1.26d+217)) then
tmp = t_1
else if (t <= (-6.3d+162)) then
tmp = a * (x * -t)
else if (t <= (-1.16d+84)) then
tmp = t_1
else if (t <= (-6d-164)) then
tmp = i * (a * b)
else if (t <= 4.5d-35) then
tmp = y * (i * -j)
else if (t <= 9.5d+121) then
tmp = z * (c * -b)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.26e+217) {
tmp = t_1;
} else if (t <= -6.3e+162) {
tmp = a * (x * -t);
} else if (t <= -1.16e+84) {
tmp = t_1;
} else if (t <= -6e-164) {
tmp = i * (a * b);
} else if (t <= 4.5e-35) {
tmp = y * (i * -j);
} else if (t <= 9.5e+121) {
tmp = z * (c * -b);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.26e+217: tmp = t_1 elif t <= -6.3e+162: tmp = a * (x * -t) elif t <= -1.16e+84: tmp = t_1 elif t <= -6e-164: tmp = i * (a * b) elif t <= 4.5e-35: tmp = y * (i * -j) elif t <= 9.5e+121: tmp = z * (c * -b) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.26e+217) tmp = t_1; elseif (t <= -6.3e+162) tmp = Float64(a * Float64(x * Float64(-t))); elseif (t <= -1.16e+84) tmp = t_1; elseif (t <= -6e-164) tmp = Float64(i * Float64(a * b)); elseif (t <= 4.5e-35) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= 9.5e+121) tmp = Float64(z * Float64(c * Float64(-b))); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -1.26e+217) tmp = t_1; elseif (t <= -6.3e+162) tmp = a * (x * -t); elseif (t <= -1.16e+84) tmp = t_1; elseif (t <= -6e-164) tmp = i * (a * b); elseif (t <= 4.5e-35) tmp = y * (i * -j); elseif (t <= 9.5e+121) tmp = z * (c * -b); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.26e+217], t$95$1, If[LessEqual[t, -6.3e+162], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.16e+84], t$95$1, If[LessEqual[t, -6e-164], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-35], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+121], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.26 \cdot 10^{+217}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.3 \cdot 10^{+162}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;t \leq -1.16 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6 \cdot 10^{-164}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+121}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.2599999999999999e217 or -6.3000000000000001e162 < t < -1.16e84Initial program 61.6%
Taylor expanded in y around 0 70.9%
sub-neg70.9%
Simplified80.4%
Taylor expanded in j around inf 54.6%
mul-1-neg54.6%
distribute-lft-neg-out54.6%
+-commutative54.6%
cancel-sign-sub-inv54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in t around inf 57.1%
*-commutative57.1%
Simplified57.1%
if -1.2599999999999999e217 < t < -6.3000000000000001e162Initial program 67.3%
Taylor expanded in y around 0 83.3%
associate-*r*83.3%
*-commutative83.3%
associate-*r*83.2%
associate-*r*83.2%
associate-*r*83.2%
distribute-rgt-in83.2%
*-commutative83.2%
+-commutative83.2%
mul-1-neg83.2%
unsub-neg83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 67.1%
neg-mul-167.1%
distribute-lft-neg-in67.1%
Simplified67.1%
if -1.16e84 < t < -6.0000000000000002e-164Initial program 84.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in i around inf 37.8%
associate-*r*42.0%
Simplified42.0%
if -6.0000000000000002e-164 < t < 4.5000000000000001e-35Initial program 75.4%
Taylor expanded in y around inf 56.2%
+-commutative56.2%
mul-1-neg56.2%
unsub-neg56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in z around 0 38.9%
mul-1-neg38.9%
*-commutative38.9%
*-commutative38.9%
associate-*r*42.6%
*-commutative42.6%
distribute-rgt-neg-out42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
if 4.5000000000000001e-35 < t < 9.49999999999999949e121Initial program 71.7%
Taylor expanded in b around inf 40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in i around 0 33.4%
mul-1-neg33.4%
*-commutative33.4%
*-commutative33.4%
associate-*r*40.8%
*-commutative40.8%
distribute-rgt-neg-out40.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
if 9.49999999999999949e121 < t Initial program 55.9%
Taylor expanded in y around 0 50.8%
sub-neg50.8%
Simplified72.3%
Taylor expanded in j around inf 51.4%
mul-1-neg51.4%
distribute-lft-neg-out51.4%
+-commutative51.4%
cancel-sign-sub-inv51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in t around inf 42.8%
associate-*r*45.3%
*-commutative45.3%
Simplified45.3%
Final simplification46.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= j -1.75e+14)
(* t (* c j))
(if (<= j 8e-88)
t_1
(if (<= j 7.2e+14)
(* a (- (* b i) (* x t)))
(if (<= j 2e+190)
t_1
(if (<= j 1.4e+229) (* j (* t c)) (* y (* i (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (j <= -1.75e+14) {
tmp = t * (c * j);
} else if (j <= 8e-88) {
tmp = t_1;
} else if (j <= 7.2e+14) {
tmp = a * ((b * i) - (x * t));
} else if (j <= 2e+190) {
tmp = t_1;
} else if (j <= 1.4e+229) {
tmp = j * (t * c);
} else {
tmp = y * (i * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (j <= (-1.75d+14)) then
tmp = t * (c * j)
else if (j <= 8d-88) then
tmp = t_1
else if (j <= 7.2d+14) then
tmp = a * ((b * i) - (x * t))
else if (j <= 2d+190) then
tmp = t_1
else if (j <= 1.4d+229) then
tmp = j * (t * c)
else
tmp = y * (i * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (j <= -1.75e+14) {
tmp = t * (c * j);
} else if (j <= 8e-88) {
tmp = t_1;
} else if (j <= 7.2e+14) {
tmp = a * ((b * i) - (x * t));
} else if (j <= 2e+190) {
tmp = t_1;
} else if (j <= 1.4e+229) {
tmp = j * (t * c);
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if j <= -1.75e+14: tmp = t * (c * j) elif j <= 8e-88: tmp = t_1 elif j <= 7.2e+14: tmp = a * ((b * i) - (x * t)) elif j <= 2e+190: tmp = t_1 elif j <= 1.4e+229: tmp = j * (t * c) else: tmp = y * (i * -j) 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 (j <= -1.75e+14) tmp = Float64(t * Float64(c * j)); elseif (j <= 8e-88) tmp = t_1; elseif (j <= 7.2e+14) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (j <= 2e+190) tmp = t_1; elseif (j <= 1.4e+229) tmp = Float64(j * Float64(t * c)); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (j <= -1.75e+14) tmp = t * (c * j); elseif (j <= 8e-88) tmp = t_1; elseif (j <= 7.2e+14) tmp = a * ((b * i) - (x * t)); elseif (j <= 2e+190) tmp = t_1; elseif (j <= 1.4e+229) tmp = j * (t * c); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.75e+14], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-88], t$95$1, If[LessEqual[j, 7.2e+14], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+190], t$95$1, If[LessEqual[j, 1.4e+229], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{+14}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 7.2 \cdot 10^{+14}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+229}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if j < -1.75e14Initial program 74.9%
Taylor expanded in y around 0 67.2%
sub-neg67.2%
Simplified68.7%
Taylor expanded in j around inf 70.3%
mul-1-neg70.3%
distribute-lft-neg-out70.3%
+-commutative70.3%
cancel-sign-sub-inv70.3%
*-commutative70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in t around inf 43.5%
associate-*r*47.9%
*-commutative47.9%
Simplified47.9%
if -1.75e14 < j < 7.99999999999999947e-88 or 7.2e14 < j < 2.0000000000000001e190Initial program 71.5%
Taylor expanded in b around inf 49.9%
*-commutative49.9%
Simplified49.9%
if 7.99999999999999947e-88 < j < 7.2e14Initial program 69.1%
Taylor expanded in y around 0 83.8%
sub-neg83.8%
Simplified87.7%
Taylor expanded in a around inf 52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
if 2.0000000000000001e190 < j < 1.4000000000000001e229Initial program 87.5%
Taylor expanded in y around 0 75.0%
sub-neg75.0%
Simplified75.7%
Taylor expanded in j around inf 75.0%
mul-1-neg75.0%
distribute-lft-neg-out75.0%
+-commutative75.0%
cancel-sign-sub-inv75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around inf 62.6%
*-commutative62.6%
Simplified62.6%
if 1.4000000000000001e229 < j Initial program 42.9%
Taylor expanded in y around inf 78.6%
+-commutative78.6%
mul-1-neg78.6%
unsub-neg78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in z around 0 79.3%
mul-1-neg79.3%
*-commutative79.3%
*-commutative79.3%
associate-*r*85.7%
*-commutative85.7%
distribute-rgt-neg-out85.7%
distribute-rgt-neg-in85.7%
Simplified85.7%
Final simplification52.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -1.1e+141)
t_1
(if (<= i -2.1e-107)
(* a (- (* b i) (* x t)))
(if (<= i 1.92e-72) (* 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.1e+141) {
tmp = t_1;
} else if (i <= -2.1e-107) {
tmp = a * ((b * i) - (x * t));
} else if (i <= 1.92e-72) {
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 = i * ((a * b) - (y * j))
if (i <= (-1.1d+141)) then
tmp = t_1
else if (i <= (-2.1d-107)) then
tmp = a * ((b * i) - (x * t))
else if (i <= 1.92d-72) 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.1e+141) {
tmp = t_1;
} else if (i <= -2.1e-107) {
tmp = a * ((b * i) - (x * t));
} else if (i <= 1.92e-72) {
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 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.1e+141: tmp = t_1 elif i <= -2.1e-107: tmp = a * ((b * i) - (x * t)) elif i <= 1.92e-72: 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(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.1e+141) tmp = t_1; elseif (i <= -2.1e-107) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (i <= 1.92e-72) 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 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.1e+141) tmp = t_1; elseif (i <= -2.1e-107) tmp = a * ((b * i) - (x * t)); elseif (i <= 1.92e-72) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.1e+141], t$95$1, If[LessEqual[i, -2.1e-107], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.92e-72], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $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 -1.1 \cdot 10^{+141}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.1 \cdot 10^{-107}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.92 \cdot 10^{-72}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.1e141 or 1.92000000000000004e-72 < i Initial program 65.1%
Taylor expanded in y around 0 64.9%
sub-neg64.9%
Simplified65.7%
Taylor expanded in i around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
if -1.1e141 < i < -2.0999999999999999e-107Initial program 75.6%
Taylor expanded in y around 0 81.4%
sub-neg81.4%
Simplified83.4%
Taylor expanded in a around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
if -2.0999999999999999e-107 < i < 1.92000000000000004e-72Initial program 76.3%
Taylor expanded in c around inf 58.8%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -2.1e-49)
t_1
(if (<= j 3.8e-92)
(* b (- (* a i) (* z c)))
(if (<= j 1.7e+32) (* 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 <= -2.1e-49) {
tmp = t_1;
} else if (j <= 3.8e-92) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 1.7e+32) {
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 <= (-2.1d-49)) then
tmp = t_1
else if (j <= 3.8d-92) then
tmp = b * ((a * i) - (z * c))
else if (j <= 1.7d+32) 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 <= -2.1e-49) {
tmp = t_1;
} else if (j <= 3.8e-92) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 1.7e+32) {
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 <= -2.1e-49: tmp = t_1 elif j <= 3.8e-92: tmp = b * ((a * i) - (z * c)) elif j <= 1.7e+32: 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 <= -2.1e-49) tmp = t_1; elseif (j <= 3.8e-92) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 1.7e+32) 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 <= -2.1e-49) tmp = t_1; elseif (j <= 3.8e-92) tmp = b * ((a * i) - (z * c)); elseif (j <= 1.7e+32) 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, -2.1e-49], t$95$1, If[LessEqual[j, 3.8e-92], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e+32], 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 -2.1 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-92}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{+32}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -2.0999999999999999e-49 or 1.69999999999999989e32 < j Initial program 72.0%
Taylor expanded in y around 0 62.8%
sub-neg62.8%
Simplified64.9%
Taylor expanded in j around inf 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
+-commutative68.4%
cancel-sign-sub-inv68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
if -2.0999999999999999e-49 < j < 3.8000000000000001e-92Initial program 69.6%
Taylor expanded in b around inf 52.6%
*-commutative52.6%
Simplified52.6%
if 3.8000000000000001e-92 < j < 1.69999999999999989e32Initial program 72.4%
Taylor expanded in y around 0 85.4%
sub-neg85.4%
Simplified85.7%
Taylor expanded in a around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
*-commutative53.7%
Simplified53.7%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -1.95e-7)
t_1
(if (<= i -1.08e-240)
(* t (- (* c j) (* x a)))
(if (<= i 1.92e-72) (* 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.95e-7) {
tmp = t_1;
} else if (i <= -1.08e-240) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 1.92e-72) {
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 = i * ((a * b) - (y * j))
if (i <= (-1.95d-7)) then
tmp = t_1
else if (i <= (-1.08d-240)) then
tmp = t * ((c * j) - (x * a))
else if (i <= 1.92d-72) 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.95e-7) {
tmp = t_1;
} else if (i <= -1.08e-240) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 1.92e-72) {
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 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.95e-7: tmp = t_1 elif i <= -1.08e-240: tmp = t * ((c * j) - (x * a)) elif i <= 1.92e-72: 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(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.95e-7) tmp = t_1; elseif (i <= -1.08e-240) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 1.92e-72) 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 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.95e-7) tmp = t_1; elseif (i <= -1.08e-240) tmp = t * ((c * j) - (x * a)); elseif (i <= 1.92e-72) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.95e-7], t$95$1, If[LessEqual[i, -1.08e-240], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.92e-72], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $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 -1.95 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.08 \cdot 10^{-240}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 1.92 \cdot 10^{-72}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.95000000000000012e-7 or 1.92000000000000004e-72 < i Initial program 64.5%
Taylor expanded in y around 0 67.1%
sub-neg67.1%
Simplified67.8%
Taylor expanded in i around inf 60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
Simplified60.6%
if -1.95000000000000012e-7 < i < -1.08e-240Initial program 84.6%
Taylor expanded in t around inf 57.0%
+-commutative57.0%
mul-1-neg57.0%
unsub-neg57.0%
*-commutative57.0%
Simplified57.0%
if -1.08e-240 < i < 1.92000000000000004e-72Initial program 74.5%
Taylor expanded in c around inf 64.9%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.8e+85)
(* c (* t j))
(if (<= t -1.25e-161)
(* i (* a b))
(if (<= t 3.5e-35)
(* y (* i (- j)))
(if (<= t 7.8e+121) (* z (* c (- b))) (* t (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.8e+85) {
tmp = c * (t * j);
} else if (t <= -1.25e-161) {
tmp = i * (a * b);
} else if (t <= 3.5e-35) {
tmp = y * (i * -j);
} else if (t <= 7.8e+121) {
tmp = z * (c * -b);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-3.8d+85)) then
tmp = c * (t * j)
else if (t <= (-1.25d-161)) then
tmp = i * (a * b)
else if (t <= 3.5d-35) then
tmp = y * (i * -j)
else if (t <= 7.8d+121) then
tmp = z * (c * -b)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.8e+85) {
tmp = c * (t * j);
} else if (t <= -1.25e-161) {
tmp = i * (a * b);
} else if (t <= 3.5e-35) {
tmp = y * (i * -j);
} else if (t <= 7.8e+121) {
tmp = z * (c * -b);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.8e+85: tmp = c * (t * j) elif t <= -1.25e-161: tmp = i * (a * b) elif t <= 3.5e-35: tmp = y * (i * -j) elif t <= 7.8e+121: tmp = z * (c * -b) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.8e+85) tmp = Float64(c * Float64(t * j)); elseif (t <= -1.25e-161) tmp = Float64(i * Float64(a * b)); elseif (t <= 3.5e-35) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= 7.8e+121) tmp = Float64(z * Float64(c * Float64(-b))); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -3.8e+85) tmp = c * (t * j); elseif (t <= -1.25e-161) tmp = i * (a * b); elseif (t <= 3.5e-35) tmp = y * (i * -j); elseif (t <= 7.8e+121) tmp = z * (c * -b); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.8e+85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.25e-161], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-35], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.8e+121], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-161}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-35}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+121}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -3.79999999999999992e85Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -3.79999999999999992e85 < t < -1.25e-161Initial program 84.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in i around inf 37.8%
associate-*r*42.0%
Simplified42.0%
if -1.25e-161 < t < 3.49999999999999996e-35Initial program 75.4%
Taylor expanded in y around inf 56.2%
+-commutative56.2%
mul-1-neg56.2%
unsub-neg56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in z around 0 38.9%
mul-1-neg38.9%
*-commutative38.9%
*-commutative38.9%
associate-*r*42.6%
*-commutative42.6%
distribute-rgt-neg-out42.6%
distribute-rgt-neg-in42.6%
Simplified42.6%
if 3.49999999999999996e-35 < t < 7.79999999999999967e121Initial program 71.7%
Taylor expanded in b around inf 40.6%
*-commutative40.6%
Simplified40.6%
Taylor expanded in i around 0 33.4%
mul-1-neg33.4%
*-commutative33.4%
*-commutative33.4%
associate-*r*40.8%
*-commutative40.8%
distribute-rgt-neg-out40.8%
*-commutative40.8%
distribute-rgt-neg-in40.8%
Simplified40.8%
if 7.79999999999999967e121 < t Initial program 55.9%
Taylor expanded in y around 0 50.8%
sub-neg50.8%
Simplified72.3%
Taylor expanded in j around inf 51.4%
mul-1-neg51.4%
distribute-lft-neg-out51.4%
+-commutative51.4%
cancel-sign-sub-inv51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in t around inf 42.8%
associate-*r*45.3%
*-commutative45.3%
Simplified45.3%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -8.6e+84)
(* c (* t j))
(if (<= t -9e-255)
(* a (* b i))
(if (<= t 6.5e-157)
(* y (* x z))
(if (<= t 3.4e-26) (* b (* a i)) (* j (* t c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.6e+84) {
tmp = c * (t * j);
} else if (t <= -9e-255) {
tmp = a * (b * i);
} else if (t <= 6.5e-157) {
tmp = y * (x * z);
} else if (t <= 3.4e-26) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-8.6d+84)) then
tmp = c * (t * j)
else if (t <= (-9d-255)) then
tmp = a * (b * i)
else if (t <= 6.5d-157) then
tmp = y * (x * z)
else if (t <= 3.4d-26) then
tmp = b * (a * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -8.6e+84) {
tmp = c * (t * j);
} else if (t <= -9e-255) {
tmp = a * (b * i);
} else if (t <= 6.5e-157) {
tmp = y * (x * z);
} else if (t <= 3.4e-26) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -8.6e+84: tmp = c * (t * j) elif t <= -9e-255: tmp = a * (b * i) elif t <= 6.5e-157: tmp = y * (x * z) elif t <= 3.4e-26: tmp = b * (a * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -8.6e+84) tmp = Float64(c * Float64(t * j)); elseif (t <= -9e-255) tmp = Float64(a * Float64(b * i)); elseif (t <= 6.5e-157) tmp = Float64(y * Float64(x * z)); elseif (t <= 3.4e-26) tmp = Float64(b * Float64(a * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -8.6e+84) tmp = c * (t * j); elseif (t <= -9e-255) tmp = a * (b * i); elseif (t <= 6.5e-157) tmp = y * (x * z); elseif (t <= 3.4e-26) tmp = b * (a * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -8.6e+84], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-255], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-157], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-26], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.6 \cdot 10^{+84}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-255}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-26}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -8.5999999999999992e84Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -8.5999999999999992e84 < t < -8.99999999999999959e-255Initial program 79.1%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 36.1%
if -8.99999999999999959e-255 < t < 6.5000000000000002e-157Initial program 80.0%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in z around inf 31.1%
associate-*r*31.1%
*-commutative31.1%
associate-*r*35.5%
Simplified35.5%
if 6.5000000000000002e-157 < t < 3.40000000000000013e-26Initial program 76.6%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in i around inf 25.6%
*-commutative25.6%
Simplified25.6%
if 3.40000000000000013e-26 < t Initial program 62.1%
Taylor expanded in y around 0 55.0%
sub-neg55.0%
Simplified69.4%
Taylor expanded in j around inf 48.7%
mul-1-neg48.7%
distribute-lft-neg-out48.7%
+-commutative48.7%
cancel-sign-sub-inv48.7%
*-commutative48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in t around inf 34.2%
*-commutative34.2%
Simplified34.2%
Final simplification36.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.1e+85)
(* c (* t j))
(if (<= t -1.7e-254)
(* i (* a b))
(if (<= t 7.6e-157)
(* y (* x z))
(if (<= t 4.5e-25) (* b (* a i)) (* j (* t c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.1e+85) {
tmp = c * (t * j);
} else if (t <= -1.7e-254) {
tmp = i * (a * b);
} else if (t <= 7.6e-157) {
tmp = y * (x * z);
} else if (t <= 4.5e-25) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.1d+85)) then
tmp = c * (t * j)
else if (t <= (-1.7d-254)) then
tmp = i * (a * b)
else if (t <= 7.6d-157) then
tmp = y * (x * z)
else if (t <= 4.5d-25) then
tmp = b * (a * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.1e+85) {
tmp = c * (t * j);
} else if (t <= -1.7e-254) {
tmp = i * (a * b);
} else if (t <= 7.6e-157) {
tmp = y * (x * z);
} else if (t <= 4.5e-25) {
tmp = b * (a * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.1e+85: tmp = c * (t * j) elif t <= -1.7e-254: tmp = i * (a * b) elif t <= 7.6e-157: tmp = y * (x * z) elif t <= 4.5e-25: tmp = b * (a * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.1e+85) tmp = Float64(c * Float64(t * j)); elseif (t <= -1.7e-254) tmp = Float64(i * Float64(a * b)); elseif (t <= 7.6e-157) tmp = Float64(y * Float64(x * z)); elseif (t <= 4.5e-25) tmp = Float64(b * Float64(a * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.1e+85) tmp = c * (t * j); elseif (t <= -1.7e-254) tmp = i * (a * b); elseif (t <= 7.6e-157) tmp = y * (x * z); elseif (t <= 4.5e-25) tmp = b * (a * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.1e+85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.7e-254], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.6e-157], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-25], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-254}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-25}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -1.1000000000000001e85Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -1.1000000000000001e85 < t < -1.69999999999999996e-254Initial program 79.1%
Taylor expanded in b around inf 49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in i around inf 36.1%
associate-*r*39.1%
Simplified39.1%
if -1.69999999999999996e-254 < t < 7.60000000000000041e-157Initial program 80.0%
Taylor expanded in y around inf 61.9%
+-commutative61.9%
mul-1-neg61.9%
unsub-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in z around inf 31.1%
associate-*r*31.1%
*-commutative31.1%
associate-*r*35.5%
Simplified35.5%
if 7.60000000000000041e-157 < t < 4.5000000000000001e-25Initial program 76.6%
Taylor expanded in b around inf 44.7%
*-commutative44.7%
Simplified44.7%
Taylor expanded in i around inf 25.6%
*-commutative25.6%
Simplified25.6%
if 4.5000000000000001e-25 < t Initial program 62.1%
Taylor expanded in y around 0 55.0%
sub-neg55.0%
Simplified69.4%
Taylor expanded in j around inf 48.7%
mul-1-neg48.7%
distribute-lft-neg-out48.7%
+-commutative48.7%
cancel-sign-sub-inv48.7%
*-commutative48.7%
*-commutative48.7%
Simplified48.7%
Taylor expanded in t around inf 34.2%
*-commutative34.2%
Simplified34.2%
Final simplification37.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -6.5e+83)
(* c (* t j))
(if (<= t -6.8e-161)
(* i (* a b))
(if (<= t 1.4e+54) (* i (* y (- j))) (* t (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.5e+83) {
tmp = c * (t * j);
} else if (t <= -6.8e-161) {
tmp = i * (a * b);
} else if (t <= 1.4e+54) {
tmp = i * (y * -j);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-6.5d+83)) then
tmp = c * (t * j)
else if (t <= (-6.8d-161)) then
tmp = i * (a * b)
else if (t <= 1.4d+54) then
tmp = i * (y * -j)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -6.5e+83) {
tmp = c * (t * j);
} else if (t <= -6.8e-161) {
tmp = i * (a * b);
} else if (t <= 1.4e+54) {
tmp = i * (y * -j);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.5e+83: tmp = c * (t * j) elif t <= -6.8e-161: tmp = i * (a * b) elif t <= 1.4e+54: tmp = i * (y * -j) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.5e+83) tmp = Float64(c * Float64(t * j)); elseif (t <= -6.8e-161) tmp = Float64(i * Float64(a * b)); elseif (t <= 1.4e+54) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.5e+83) tmp = c * (t * j); elseif (t <= -6.8e-161) tmp = i * (a * b); elseif (t <= 1.4e+54) tmp = i * (y * -j); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.5e+83], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.8e-161], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+54], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-161}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+54}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -6.5000000000000003e83Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -6.5000000000000003e83 < t < -6.79999999999999964e-161Initial program 84.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in i around inf 37.8%
associate-*r*42.0%
Simplified42.0%
if -6.79999999999999964e-161 < t < 1.40000000000000008e54Initial program 75.4%
Taylor expanded in y around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in z around 0 37.5%
mul-1-neg37.5%
*-commutative37.5%
Simplified37.5%
if 1.40000000000000008e54 < t Initial program 59.1%
Taylor expanded in y around 0 51.8%
sub-neg51.8%
Simplified69.0%
Taylor expanded in j around inf 46.6%
mul-1-neg46.6%
distribute-lft-neg-out46.6%
+-commutative46.6%
cancel-sign-sub-inv46.6%
*-commutative46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in t around inf 36.9%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
Final simplification40.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.4e+85)
(* c (* t j))
(if (<= t -6.8e-162)
(* i (* a b))
(if (<= t 2.4e-13) (* (* y i) (- j)) (* j (* t c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.4e+85) {
tmp = c * (t * j);
} else if (t <= -6.8e-162) {
tmp = i * (a * b);
} else if (t <= 2.4e-13) {
tmp = (y * i) * -j;
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.4d+85)) then
tmp = c * (t * j)
else if (t <= (-6.8d-162)) then
tmp = i * (a * b)
else if (t <= 2.4d-13) then
tmp = (y * i) * -j
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.4e+85) {
tmp = c * (t * j);
} else if (t <= -6.8e-162) {
tmp = i * (a * b);
} else if (t <= 2.4e-13) {
tmp = (y * i) * -j;
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.4e+85: tmp = c * (t * j) elif t <= -6.8e-162: tmp = i * (a * b) elif t <= 2.4e-13: tmp = (y * i) * -j else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.4e+85) tmp = Float64(c * Float64(t * j)); elseif (t <= -6.8e-162) tmp = Float64(i * Float64(a * b)); elseif (t <= 2.4e-13) tmp = Float64(Float64(y * i) * Float64(-j)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.4e+85) tmp = c * (t * j); elseif (t <= -6.8e-162) tmp = i * (a * b); elseif (t <= 2.4e-13) tmp = (y * i) * -j; else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.4e+85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.8e-162], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-13], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -6.8 \cdot 10^{-162}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-13}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -1.4e85Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -1.4e85 < t < -6.8e-162Initial program 84.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in i around inf 37.8%
associate-*r*42.0%
Simplified42.0%
if -6.8e-162 < t < 2.3999999999999999e-13Initial program 76.4%
Taylor expanded in y around 0 82.0%
sub-neg82.0%
Simplified73.7%
Taylor expanded in j around inf 41.1%
mul-1-neg41.1%
distribute-lft-neg-out41.1%
+-commutative41.1%
cancel-sign-sub-inv41.1%
*-commutative41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in t around 0 39.3%
mul-1-neg39.3%
*-commutative39.3%
distribute-rgt-neg-in39.3%
Simplified39.3%
if 2.3999999999999999e-13 < t Initial program 60.7%
Taylor expanded in y around 0 51.4%
sub-neg51.4%
Simplified67.0%
Taylor expanded in j around inf 49.2%
mul-1-neg49.2%
distribute-lft-neg-out49.2%
+-commutative49.2%
cancel-sign-sub-inv49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in t around inf 36.6%
*-commutative36.6%
Simplified36.6%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.65e+83)
(* c (* t j))
(if (<= t -1.95e-163)
(* i (* a b))
(if (<= t 1.4e+54) (* y (* i (- j))) (* t (* c j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.65e+83) {
tmp = c * (t * j);
} else if (t <= -1.95e-163) {
tmp = i * (a * b);
} else if (t <= 1.4e+54) {
tmp = y * (i * -j);
} else {
tmp = t * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-1.65d+83)) then
tmp = c * (t * j)
else if (t <= (-1.95d-163)) then
tmp = i * (a * b)
else if (t <= 1.4d+54) then
tmp = y * (i * -j)
else
tmp = t * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.65e+83) {
tmp = c * (t * j);
} else if (t <= -1.95e-163) {
tmp = i * (a * b);
} else if (t <= 1.4e+54) {
tmp = y * (i * -j);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.65e+83: tmp = c * (t * j) elif t <= -1.95e-163: tmp = i * (a * b) elif t <= 1.4e+54: tmp = y * (i * -j) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.65e+83) tmp = Float64(c * Float64(t * j)); elseif (t <= -1.95e-163) tmp = Float64(i * Float64(a * b)); elseif (t <= 1.4e+54) tmp = Float64(y * Float64(i * Float64(-j))); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.65e+83) tmp = c * (t * j); elseif (t <= -1.95e-163) tmp = i * (a * b); elseif (t <= 1.4e+54) tmp = y * (i * -j); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.65e+83], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.95e-163], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+54], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-163}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+54}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.64999999999999992e83Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -1.64999999999999992e83 < t < -1.9500000000000001e-163Initial program 84.2%
Taylor expanded in b around inf 51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in i around inf 37.8%
associate-*r*42.0%
Simplified42.0%
if -1.9500000000000001e-163 < t < 1.40000000000000008e54Initial program 75.4%
Taylor expanded in y around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in z around 0 37.5%
mul-1-neg37.5%
*-commutative37.5%
*-commutative37.5%
associate-*r*40.5%
*-commutative40.5%
distribute-rgt-neg-out40.5%
distribute-rgt-neg-in40.5%
Simplified40.5%
if 1.40000000000000008e54 < t Initial program 59.1%
Taylor expanded in y around 0 51.8%
sub-neg51.8%
Simplified69.0%
Taylor expanded in j around inf 46.6%
mul-1-neg46.6%
distribute-lft-neg-out46.6%
+-commutative46.6%
cancel-sign-sub-inv46.6%
*-commutative46.6%
*-commutative46.6%
Simplified46.6%
Taylor expanded in t around inf 36.9%
associate-*r*38.7%
*-commutative38.7%
Simplified38.7%
Final simplification42.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.65e+83) (not (<= t 3.8e-35))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.65e+83) || !(t <= 3.8e-35)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.65d+83)) .or. (.not. (t <= 3.8d-35))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.65e+83) || !(t <= 3.8e-35)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.65e+83) or not (t <= 3.8e-35): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.65e+83) || !(t <= 3.8e-35)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.65e+83) || ~((t <= 3.8e-35))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.65e+83], N[Not[LessEqual[t, 3.8e-35]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.65 \cdot 10^{+83} \lor \neg \left(t \leq 3.8 \cdot 10^{-35}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -1.64999999999999992e83 or 3.8000000000000001e-35 < t Initial program 63.3%
Taylor expanded in y around 0 62.5%
sub-neg62.5%
Simplified73.5%
Taylor expanded in j around inf 46.5%
mul-1-neg46.5%
distribute-lft-neg-out46.5%
+-commutative46.5%
cancel-sign-sub-inv46.5%
*-commutative46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in t around inf 38.6%
*-commutative38.6%
Simplified38.6%
if -1.64999999999999992e83 < t < 3.8000000000000001e-35Initial program 78.4%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in i around inf 30.3%
Final simplification34.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -4.3e+83) (* c (* t j)) (if (<= t 2.8e-35) (* a (* b i)) (* j (* t c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.3e+83) {
tmp = c * (t * j);
} else if (t <= 2.8e-35) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= (-4.3d+83)) then
tmp = c * (t * j)
else if (t <= 2.8d-35) then
tmp = a * (b * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -4.3e+83) {
tmp = c * (t * j);
} else if (t <= 2.8e-35) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -4.3e+83: tmp = c * (t * j) elif t <= 2.8e-35: tmp = a * (b * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -4.3e+83) tmp = Float64(c * Float64(t * j)); elseif (t <= 2.8e-35) tmp = Float64(a * Float64(b * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -4.3e+83) tmp = c * (t * j); elseif (t <= 2.8e-35) tmp = a * (b * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -4.3e+83], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e-35], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{+83}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-35}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if t < -4.3e83Initial program 62.9%
Taylor expanded in y around 0 70.0%
sub-neg70.0%
Simplified77.3%
Taylor expanded in j around inf 46.2%
mul-1-neg46.2%
distribute-lft-neg-out46.2%
+-commutative46.2%
cancel-sign-sub-inv46.2%
*-commutative46.2%
*-commutative46.2%
Simplified46.2%
Taylor expanded in t around inf 48.2%
*-commutative48.2%
Simplified48.2%
if -4.3e83 < t < 2.8e-35Initial program 78.4%
Taylor expanded in b around inf 42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in i around inf 30.3%
if 2.8e-35 < t Initial program 63.7%
Taylor expanded in y around 0 56.9%
sub-neg56.9%
Simplified70.7%
Taylor expanded in j around inf 46.8%
mul-1-neg46.8%
distribute-lft-neg-out46.8%
+-commutative46.8%
cancel-sign-sub-inv46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in t around inf 32.9%
*-commutative32.9%
Simplified32.9%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 71.1%
Taylor expanded in b around inf 37.3%
*-commutative37.3%
Simplified37.3%
Taylor expanded in i around inf 21.6%
Final simplification21.6%
(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 2023297
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))