
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 27 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ (* j t_2) t_1) INFINITY)
(fma j t_2 t_1)
(* y (+ (* x z) (- (/ (* t (- (* b i) (* x a))) 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 * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = (a * c) - (y * i);
double tmp;
if (((j * t_2) + t_1) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_2) + t_1) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) / y) - Float64(i * j)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t\_2 + t\_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{t \cdot \left(b \cdot i - x \cdot a\right)}{y} - i \cdot j\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.2%
+-commutative93.2%
fma-define93.2%
*-commutative93.2%
*-commutative93.2%
Simplified93.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in y around -inf 41.4%
Simplified48.6%
Taylor expanded in c around 0 52.1%
mul-1-neg52.1%
*-commutative52.1%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
associate-*r*53.9%
distribute-rgt-in61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Final simplification86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* a c) (* y i)))
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY)
t_1
(* y (+ (* x z) (- (/ (* t (- (* b i) (* x a))) 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 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) / y) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{t \cdot \left(b \cdot i - x \cdot a\right)}{y} - i \cdot j\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in y around -inf 41.4%
Simplified48.6%
Taylor expanded in c around 0 52.1%
mul-1-neg52.1%
*-commutative52.1%
associate-*r*52.1%
distribute-lft-neg-in52.1%
mul-1-neg52.1%
associate-*r*53.9%
distribute-rgt-in61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
Final simplification86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x y) (- z (* a (/ t y))))))
(if (<= x -2.7e-36)
t_1
(if (<= x -9.5e-269)
(* t (* b (- i (* c (/ z t)))))
(if (<= x 3e-293)
(* j (* y (- (/ (* a c) y) i)))
(if (<= x 1.25e-238)
(* t (- (* b i) (* b (/ (* z c) t))))
(if (<= x 5.4e-151)
(* y (- (* x z) (* i j)))
(if (<= x 1.5e-69)
(* a (* x (- (/ (* c j) x) t)))
(if (<= x 4.7e-34)
(* i (* y (- (/ (* t b) y) j)))
(if (<= x 3e+73) (* t (- (* b i) (* x a))) t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -2.7e-36) {
tmp = t_1;
} else if (x <= -9.5e-269) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 3e-293) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.25e-238) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (x <= 5.4e-151) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.5e-69) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 4.7e-34) {
tmp = i * (y * (((t * b) / y) - j));
} else if (x <= 3e+73) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * y) * (z - (a * (t / y)))
if (x <= (-2.7d-36)) then
tmp = t_1
else if (x <= (-9.5d-269)) then
tmp = t * (b * (i - (c * (z / t))))
else if (x <= 3d-293) then
tmp = j * (y * (((a * c) / y) - i))
else if (x <= 1.25d-238) then
tmp = t * ((b * i) - (b * ((z * c) / t)))
else if (x <= 5.4d-151) then
tmp = y * ((x * z) - (i * j))
else if (x <= 1.5d-69) then
tmp = a * (x * (((c * j) / x) - t))
else if (x <= 4.7d-34) then
tmp = i * (y * (((t * b) / y) - j))
else if (x <= 3d+73) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -2.7e-36) {
tmp = t_1;
} else if (x <= -9.5e-269) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 3e-293) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.25e-238) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (x <= 5.4e-151) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 1.5e-69) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 4.7e-34) {
tmp = i * (y * (((t * b) / y) - j));
} else if (x <= 3e+73) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * y) * (z - (a * (t / y))) tmp = 0 if x <= -2.7e-36: tmp = t_1 elif x <= -9.5e-269: tmp = t * (b * (i - (c * (z / t)))) elif x <= 3e-293: tmp = j * (y * (((a * c) / y) - i)) elif x <= 1.25e-238: tmp = t * ((b * i) - (b * ((z * c) / t))) elif x <= 5.4e-151: tmp = y * ((x * z) - (i * j)) elif x <= 1.5e-69: tmp = a * (x * (((c * j) / x) - t)) elif x <= 4.7e-34: tmp = i * (y * (((t * b) / y) - j)) elif x <= 3e+73: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))) tmp = 0.0 if (x <= -2.7e-36) tmp = t_1; elseif (x <= -9.5e-269) tmp = Float64(t * Float64(b * Float64(i - Float64(c * Float64(z / t))))); elseif (x <= 3e-293) tmp = Float64(j * Float64(y * Float64(Float64(Float64(a * c) / y) - i))); elseif (x <= 1.25e-238) tmp = Float64(t * Float64(Float64(b * i) - Float64(b * Float64(Float64(z * c) / t)))); elseif (x <= 5.4e-151) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 1.5e-69) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (x <= 4.7e-34) tmp = Float64(i * Float64(y * Float64(Float64(Float64(t * b) / y) - j))); elseif (x <= 3e+73) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * y) * (z - (a * (t / y))); tmp = 0.0; if (x <= -2.7e-36) tmp = t_1; elseif (x <= -9.5e-269) tmp = t * (b * (i - (c * (z / t)))); elseif (x <= 3e-293) tmp = j * (y * (((a * c) / y) - i)); elseif (x <= 1.25e-238) tmp = t * ((b * i) - (b * ((z * c) / t))); elseif (x <= 5.4e-151) tmp = y * ((x * z) - (i * j)); elseif (x <= 1.5e-69) tmp = a * (x * (((c * j) / x) - t)); elseif (x <= 4.7e-34) tmp = i * (y * (((t * b) / y) - j)); elseif (x <= 3e+73) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.7e-36], t$95$1, If[LessEqual[x, -9.5e-269], N[(t * N[(b * N[(i - N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e-293], N[(j * N[(y * N[(N[(N[(a * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e-238], N[(t * N[(N[(b * i), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-151], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e-69], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7e-34], N[(i * N[(y * N[(N[(N[(t * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+73], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{if}\;x \leq -2.7 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-269}:\\
\;\;\;\;t \cdot \left(b \cdot \left(i - c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-293}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \left(b \cdot i - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-151}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-69}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{-34}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{t \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.70000000000000007e-36 or 3.00000000000000011e73 < x Initial program 71.3%
Taylor expanded in y around -inf 69.4%
Simplified72.7%
Taylor expanded in x around inf 71.0%
associate-*r*72.5%
*-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
associate-/l*74.1%
Simplified74.1%
if -2.70000000000000007e-36 < x < -9.5000000000000006e-269Initial program 72.9%
Taylor expanded in b around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in t around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
associate-/l*52.8%
Simplified52.8%
Taylor expanded in b around 0 56.7%
associate-*r/58.5%
Simplified58.5%
if -9.5000000000000006e-269 < x < 3.0000000000000002e-293Initial program 66.5%
Taylor expanded in y around -inf 77.9%
Simplified77.9%
Taylor expanded in j around inf 73.8%
if 3.0000000000000002e-293 < x < 1.25e-238Initial program 67.6%
Taylor expanded in b around inf 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in t around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
associate-/l*72.2%
Simplified72.2%
if 1.25e-238 < x < 5.40000000000000014e-151Initial program 77.0%
Taylor expanded in y around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
Simplified54.8%
if 5.40000000000000014e-151 < x < 1.49999999999999995e-69Initial program 58.2%
Taylor expanded in a around inf 83.2%
+-commutative83.2%
mul-1-neg83.2%
unsub-neg83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 83.3%
if 1.49999999999999995e-69 < x < 4.70000000000000002e-34Initial program 83.1%
Taylor expanded in y around -inf 99.7%
Simplified99.7%
Taylor expanded in i around inf 53.9%
if 4.70000000000000002e-34 < x < 3.00000000000000011e73Initial program 90.8%
Taylor expanded in j around 0 76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in z around 0 45.0%
associate-*r*45.0%
neg-mul-145.0%
cancel-sign-sub45.0%
mul-1-neg45.0%
*-commutative45.0%
associate-*r*54.3%
distribute-lft-neg-in54.3%
mul-1-neg54.3%
associate-*r*63.0%
distribute-rgt-in63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.1%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* x y) (- z (* a (/ t y))))))
(if (<= x -2.4e-31)
t_1
(if (<= x -2.7e-270)
(* t (* b (- i (* c (/ z t)))))
(if (<= x 3.4e-291)
(* j (* y (- (/ (* a c) y) i)))
(if (<= x 1.3e-236)
(* b (- (* t i) (* z c)))
(if (<= x 2.4e-146)
(* y (- (* x z) (* i j)))
(if (<= x 6.5e-71)
(* a (* x (- (/ (* c j) x) t)))
(if (<= x 4.8e-34)
(* i (* y (- (/ (* t b) y) j)))
(if (<= x 2.3e+73) (* t (- (* b i) (* x a))) t_1))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -2.4e-31) {
tmp = t_1;
} else if (x <= -2.7e-270) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 3.4e-291) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.3e-236) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 2.4e-146) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 6.5e-71) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 4.8e-34) {
tmp = i * (y * (((t * b) / y) - j));
} else if (x <= 2.3e+73) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * y) * (z - (a * (t / y)))
if (x <= (-2.4d-31)) then
tmp = t_1
else if (x <= (-2.7d-270)) then
tmp = t * (b * (i - (c * (z / t))))
else if (x <= 3.4d-291) then
tmp = j * (y * (((a * c) / y) - i))
else if (x <= 1.3d-236) then
tmp = b * ((t * i) - (z * c))
else if (x <= 2.4d-146) then
tmp = y * ((x * z) - (i * j))
else if (x <= 6.5d-71) then
tmp = a * (x * (((c * j) / x) - t))
else if (x <= 4.8d-34) then
tmp = i * (y * (((t * b) / y) - j))
else if (x <= 2.3d+73) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -2.4e-31) {
tmp = t_1;
} else if (x <= -2.7e-270) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 3.4e-291) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.3e-236) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 2.4e-146) {
tmp = y * ((x * z) - (i * j));
} else if (x <= 6.5e-71) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 4.8e-34) {
tmp = i * (y * (((t * b) / y) - j));
} else if (x <= 2.3e+73) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * y) * (z - (a * (t / y))) tmp = 0 if x <= -2.4e-31: tmp = t_1 elif x <= -2.7e-270: tmp = t * (b * (i - (c * (z / t)))) elif x <= 3.4e-291: tmp = j * (y * (((a * c) / y) - i)) elif x <= 1.3e-236: tmp = b * ((t * i) - (z * c)) elif x <= 2.4e-146: tmp = y * ((x * z) - (i * j)) elif x <= 6.5e-71: tmp = a * (x * (((c * j) / x) - t)) elif x <= 4.8e-34: tmp = i * (y * (((t * b) / y) - j)) elif x <= 2.3e+73: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))) tmp = 0.0 if (x <= -2.4e-31) tmp = t_1; elseif (x <= -2.7e-270) tmp = Float64(t * Float64(b * Float64(i - Float64(c * Float64(z / t))))); elseif (x <= 3.4e-291) tmp = Float64(j * Float64(y * Float64(Float64(Float64(a * c) / y) - i))); elseif (x <= 1.3e-236) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= 2.4e-146) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (x <= 6.5e-71) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (x <= 4.8e-34) tmp = Float64(i * Float64(y * Float64(Float64(Float64(t * b) / y) - j))); elseif (x <= 2.3e+73) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * y) * (z - (a * (t / y))); tmp = 0.0; if (x <= -2.4e-31) tmp = t_1; elseif (x <= -2.7e-270) tmp = t * (b * (i - (c * (z / t)))); elseif (x <= 3.4e-291) tmp = j * (y * (((a * c) / y) - i)); elseif (x <= 1.3e-236) tmp = b * ((t * i) - (z * c)); elseif (x <= 2.4e-146) tmp = y * ((x * z) - (i * j)); elseif (x <= 6.5e-71) tmp = a * (x * (((c * j) / x) - t)); elseif (x <= 4.8e-34) tmp = i * (y * (((t * b) / y) - j)); elseif (x <= 2.3e+73) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.4e-31], t$95$1, If[LessEqual[x, -2.7e-270], N[(t * N[(b * N[(i - N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e-291], N[(j * N[(y * N[(N[(N[(a * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e-236], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-146], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e-71], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-34], N[(i * N[(y * N[(N[(N[(t * b), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e+73], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{if}\;x \leq -2.4 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-270}:\\
\;\;\;\;t \cdot \left(b \cdot \left(i - c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-291}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-236}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-146}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-71}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-34}:\\
\;\;\;\;i \cdot \left(y \cdot \left(\frac{t \cdot b}{y} - j\right)\right)\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{+73}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.4e-31 or 2.3e73 < x Initial program 71.3%
Taylor expanded in y around -inf 69.4%
Simplified72.7%
Taylor expanded in x around inf 71.0%
associate-*r*72.5%
*-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
associate-/l*74.1%
Simplified74.1%
if -2.4e-31 < x < -2.70000000000000007e-270Initial program 72.9%
Taylor expanded in b around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in t around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
associate-/l*52.8%
Simplified52.8%
Taylor expanded in b around 0 56.7%
associate-*r/58.5%
Simplified58.5%
if -2.70000000000000007e-270 < x < 3.40000000000000026e-291Initial program 66.5%
Taylor expanded in y around -inf 77.9%
Simplified77.9%
Taylor expanded in j around inf 73.8%
if 3.40000000000000026e-291 < x < 1.3e-236Initial program 67.6%
Taylor expanded in b around inf 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
if 1.3e-236 < x < 2.4000000000000002e-146Initial program 77.0%
Taylor expanded in y around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
Simplified54.8%
if 2.4000000000000002e-146 < x < 6.50000000000000005e-71Initial program 58.2%
Taylor expanded in a around inf 83.2%
+-commutative83.2%
mul-1-neg83.2%
unsub-neg83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 83.3%
if 6.50000000000000005e-71 < x < 4.79999999999999982e-34Initial program 83.1%
Taylor expanded in y around -inf 99.7%
Simplified99.7%
Taylor expanded in i around inf 53.9%
if 4.79999999999999982e-34 < x < 2.3e73Initial program 90.8%
Taylor expanded in j around 0 76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in z around 0 45.0%
associate-*r*45.0%
neg-mul-145.0%
cancel-sign-sub45.0%
mul-1-neg45.0%
*-commutative45.0%
associate-*r*54.3%
distribute-lft-neg-in54.3%
mul-1-neg54.3%
associate-*r*63.0%
distribute-rgt-in63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
Simplified63.1%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* i (* j (/ y t))))))
(t_2 (* (* x y) (- z (* a (/ t y))))))
(if (<= x -8e-32)
t_2
(if (<= x -4.2e-269)
(* t (* b (- i (* c (/ z t)))))
(if (<= x 4.2e-290)
(* j (* y (- (/ (* a c) y) i)))
(if (<= x 1.6e-249)
(* b (- (* t i) (* z c)))
(if (<= x 5.2e-147)
t_1
(if (<= x 1.25e-70)
(* a (* x (- (/ (* c j) x) t)))
(if (<= x 1.4e-8) 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 * ((b * i) - (i * (j * (y / t))));
double t_2 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -8e-32) {
tmp = t_2;
} else if (x <= -4.2e-269) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 4.2e-290) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.6e-249) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 5.2e-147) {
tmp = t_1;
} else if (x <= 1.25e-70) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 1.4e-8) {
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 * ((b * i) - (i * (j * (y / t))))
t_2 = (x * y) * (z - (a * (t / y)))
if (x <= (-8d-32)) then
tmp = t_2
else if (x <= (-4.2d-269)) then
tmp = t * (b * (i - (c * (z / t))))
else if (x <= 4.2d-290) then
tmp = j * (y * (((a * c) / y) - i))
else if (x <= 1.6d-249) then
tmp = b * ((t * i) - (z * c))
else if (x <= 5.2d-147) then
tmp = t_1
else if (x <= 1.25d-70) then
tmp = a * (x * (((c * j) / x) - t))
else if (x <= 1.4d-8) 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 * ((b * i) - (i * (j * (y / t))));
double t_2 = (x * y) * (z - (a * (t / y)));
double tmp;
if (x <= -8e-32) {
tmp = t_2;
} else if (x <= -4.2e-269) {
tmp = t * (b * (i - (c * (z / t))));
} else if (x <= 4.2e-290) {
tmp = j * (y * (((a * c) / y) - i));
} else if (x <= 1.6e-249) {
tmp = b * ((t * i) - (z * c));
} else if (x <= 5.2e-147) {
tmp = t_1;
} else if (x <= 1.25e-70) {
tmp = a * (x * (((c * j) / x) - t));
} else if (x <= 1.4e-8) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (i * (j * (y / t)))) t_2 = (x * y) * (z - (a * (t / y))) tmp = 0 if x <= -8e-32: tmp = t_2 elif x <= -4.2e-269: tmp = t * (b * (i - (c * (z / t)))) elif x <= 4.2e-290: tmp = j * (y * (((a * c) / y) - i)) elif x <= 1.6e-249: tmp = b * ((t * i) - (z * c)) elif x <= 5.2e-147: tmp = t_1 elif x <= 1.25e-70: tmp = a * (x * (((c * j) / x) - t)) elif x <= 1.4e-8: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(i * Float64(j * Float64(y / t))))) t_2 = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))) tmp = 0.0 if (x <= -8e-32) tmp = t_2; elseif (x <= -4.2e-269) tmp = Float64(t * Float64(b * Float64(i - Float64(c * Float64(z / t))))); elseif (x <= 4.2e-290) tmp = Float64(j * Float64(y * Float64(Float64(Float64(a * c) / y) - i))); elseif (x <= 1.6e-249) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (x <= 5.2e-147) tmp = t_1; elseif (x <= 1.25e-70) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (x <= 1.4e-8) 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 * ((b * i) - (i * (j * (y / t)))); t_2 = (x * y) * (z - (a * (t / y))); tmp = 0.0; if (x <= -8e-32) tmp = t_2; elseif (x <= -4.2e-269) tmp = t * (b * (i - (c * (z / t)))); elseif (x <= 4.2e-290) tmp = j * (y * (((a * c) / y) - i)); elseif (x <= 1.6e-249) tmp = b * ((t * i) - (z * c)); elseif (x <= 5.2e-147) tmp = t_1; elseif (x <= 1.25e-70) tmp = a * (x * (((c * j) / x) - t)); elseif (x <= 1.4e-8) 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[(t * N[(N[(b * i), $MachinePrecision] - N[(i * N[(j * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8e-32], t$95$2, If[LessEqual[x, -4.2e-269], N[(t * N[(b * N[(i - N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e-290], N[(j * N[(y * N[(N[(N[(a * c), $MachinePrecision] / y), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e-249], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-147], t$95$1, If[LessEqual[x, 1.25e-70], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e-8], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - i \cdot \left(j \cdot \frac{y}{t}\right)\right)\\
t_2 := \left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{if}\;x \leq -8 \cdot 10^{-32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-269}:\\
\;\;\;\;t \cdot \left(b \cdot \left(i - c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-290}:\\
\;\;\;\;j \cdot \left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-249}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-70}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -8.00000000000000045e-32 or 1.4e-8 < x Initial program 73.4%
Taylor expanded in y around -inf 69.0%
Simplified71.9%
Taylor expanded in x around inf 67.6%
associate-*r*69.0%
*-commutative69.0%
mul-1-neg69.0%
unsub-neg69.0%
associate-/l*70.4%
Simplified70.4%
if -8.00000000000000045e-32 < x < -4.20000000000000009e-269Initial program 72.9%
Taylor expanded in b around inf 56.2%
*-commutative56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in t around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
associate-/l*52.8%
Simplified52.8%
Taylor expanded in b around 0 56.7%
associate-*r/58.5%
Simplified58.5%
if -4.20000000000000009e-269 < x < 4.2000000000000002e-290Initial program 66.5%
Taylor expanded in y around -inf 77.9%
Simplified77.9%
Taylor expanded in j around inf 73.8%
if 4.2000000000000002e-290 < x < 1.6000000000000001e-249Initial program 84.0%
Taylor expanded in b around inf 74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
if 1.6000000000000001e-249 < x < 5.1999999999999997e-147 or 1.25e-70 < x < 1.4e-8Initial program 77.1%
Taylor expanded in y around -inf 90.1%
Simplified90.1%
Taylor expanded in i around inf 49.1%
Taylor expanded in t around inf 61.8%
+-commutative61.8%
mul-1-neg61.8%
unsub-neg61.8%
associate-/l*61.7%
associate-/l*64.9%
Simplified64.9%
if 5.1999999999999997e-147 < x < 1.25e-70Initial program 58.2%
Taylor expanded in a around inf 83.2%
+-commutative83.2%
mul-1-neg83.2%
unsub-neg83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in x around inf 83.3%
Final simplification68.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (* y z)) (* b (- (* t i) (* z c))))))
(if (<= a -2.3e+88)
(* a (* x (- (/ (* c j) x) t)))
(if (<= a -2.5)
(* x (- (* y z) (* t a)))
(if (<= a -1.95e-16)
(* t (- (* b i) (* b (/ (* z c) t))))
(if (<= a 9.5e-16)
t_1
(if (<= a 2.3e+49)
(+ (* a (* c j)) (* y (- (* x z) (* i j))))
(if (<= a 1.9e+70) t_1 (* a (- (* c j) (* x t)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (a <= -2.3e+88) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -2.5) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.95e-16) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (a <= 9.5e-16) {
tmp = t_1;
} else if (a <= 2.3e+49) {
tmp = (a * (c * j)) + (y * ((x * z) - (i * j)));
} else if (a <= 1.9e+70) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (x * (y * z)) + (b * ((t * i) - (z * c)))
if (a <= (-2.3d+88)) then
tmp = a * (x * (((c * j) / x) - t))
else if (a <= (-2.5d0)) then
tmp = x * ((y * z) - (t * a))
else if (a <= (-1.95d-16)) then
tmp = t * ((b * i) - (b * ((z * c) / t)))
else if (a <= 9.5d-16) then
tmp = t_1
else if (a <= 2.3d+49) then
tmp = (a * (c * j)) + (y * ((x * z) - (i * j)))
else if (a <= 1.9d+70) then
tmp = t_1
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * (y * z)) + (b * ((t * i) - (z * c)));
double tmp;
if (a <= -2.3e+88) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -2.5) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.95e-16) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (a <= 9.5e-16) {
tmp = t_1;
} else if (a <= 2.3e+49) {
tmp = (a * (c * j)) + (y * ((x * z) - (i * j)));
} else if (a <= 1.9e+70) {
tmp = t_1;
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * (y * z)) + (b * ((t * i) - (z * c))) tmp = 0 if a <= -2.3e+88: tmp = a * (x * (((c * j) / x) - t)) elif a <= -2.5: tmp = x * ((y * z) - (t * a)) elif a <= -1.95e-16: tmp = t * ((b * i) - (b * ((z * c) / t))) elif a <= 9.5e-16: tmp = t_1 elif a <= 2.3e+49: tmp = (a * (c * j)) + (y * ((x * z) - (i * j))) elif a <= 1.9e+70: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) tmp = 0.0 if (a <= -2.3e+88) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (a <= -2.5) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= -1.95e-16) tmp = Float64(t * Float64(Float64(b * i) - Float64(b * Float64(Float64(z * c) / t)))); elseif (a <= 9.5e-16) tmp = t_1; elseif (a <= 2.3e+49) tmp = Float64(Float64(a * Float64(c * j)) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (a <= 1.9e+70) tmp = t_1; else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * (y * z)) + (b * ((t * i) - (z * c))); tmp = 0.0; if (a <= -2.3e+88) tmp = a * (x * (((c * j) / x) - t)); elseif (a <= -2.5) tmp = x * ((y * z) - (t * a)); elseif (a <= -1.95e-16) tmp = t * ((b * i) - (b * ((z * c) / t))); elseif (a <= 9.5e-16) tmp = t_1; elseif (a <= 2.3e+49) tmp = (a * (c * j)) + (y * ((x * z) - (i * j))); elseif (a <= 1.9e+70) tmp = t_1; else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e+88], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.5], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-16], N[(t * N[(N[(b * i), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-16], t$95$1, If[LessEqual[a, 2.3e+49], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.9e+70], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{+88}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;a \leq -2.5:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-16}:\\
\;\;\;\;t \cdot \left(b \cdot i - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{+49}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.9 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if a < -2.3000000000000002e88Initial program 54.6%
Taylor expanded in a around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in x around inf 74.9%
if -2.3000000000000002e88 < a < -2.5Initial program 90.7%
Taylor expanded in j around 0 82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in x around inf 81.3%
if -2.5 < a < -1.94999999999999989e-16Initial program 49.6%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in t around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*75.8%
Simplified75.8%
if -1.94999999999999989e-16 < a < 9.5000000000000005e-16 or 2.30000000000000002e49 < a < 1.8999999999999999e70Initial program 80.1%
Taylor expanded in j around 0 71.5%
*-commutative71.5%
*-commutative71.5%
Simplified71.5%
Taylor expanded in y around inf 68.6%
*-commutative68.6%
Simplified68.6%
if 9.5000000000000005e-16 < a < 2.30000000000000002e49Initial program 100.0%
Taylor expanded in y around -inf 90.4%
Simplified90.4%
Taylor expanded in j around inf 80.4%
associate-*r*80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around 0 89.9%
if 1.8999999999999999e70 < a Initial program 64.1%
Taylor expanded in a around inf 68.9%
+-commutative68.9%
mul-1-neg68.9%
unsub-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Final simplification71.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= a -3.2e+77)
t_3
(if (<= a -2.0)
t_2
(if (<= a 9.5e-99)
t_1
(if (<= a 8.5e-32)
t_2
(if (<= a 8.8e-16)
t_1
(if (<= a 2.5e+21)
(* j (- (* a c) (* y i)))
(if (<= a 9e+110) (* t (- (* b i) (* x a))) 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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e+77) {
tmp = t_3;
} else if (a <= -2.0) {
tmp = t_2;
} else if (a <= 9.5e-99) {
tmp = t_1;
} else if (a <= 8.5e-32) {
tmp = t_2;
} else if (a <= 8.8e-16) {
tmp = t_1;
} else if (a <= 2.5e+21) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 9e+110) {
tmp = t * ((b * i) - (x * a));
} 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 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = a * ((c * j) - (x * t))
if (a <= (-3.2d+77)) then
tmp = t_3
else if (a <= (-2.0d0)) then
tmp = t_2
else if (a <= 9.5d-99) then
tmp = t_1
else if (a <= 8.5d-32) then
tmp = t_2
else if (a <= 8.8d-16) then
tmp = t_1
else if (a <= 2.5d+21) then
tmp = j * ((a * c) - (y * i))
else if (a <= 9d+110) then
tmp = t * ((b * i) - (x * a))
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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e+77) {
tmp = t_3;
} else if (a <= -2.0) {
tmp = t_2;
} else if (a <= 9.5e-99) {
tmp = t_1;
} else if (a <= 8.5e-32) {
tmp = t_2;
} else if (a <= 8.8e-16) {
tmp = t_1;
} else if (a <= 2.5e+21) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 9e+110) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.2e+77: tmp = t_3 elif a <= -2.0: tmp = t_2 elif a <= 9.5e-99: tmp = t_1 elif a <= 8.5e-32: tmp = t_2 elif a <= 8.8e-16: tmp = t_1 elif a <= 2.5e+21: tmp = j * ((a * c) - (y * i)) elif a <= 9e+110: tmp = t * ((b * i) - (x * a)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.2e+77) tmp = t_3; elseif (a <= -2.0) tmp = t_2; elseif (a <= 9.5e-99) tmp = t_1; elseif (a <= 8.5e-32) tmp = t_2; elseif (a <= 8.8e-16) tmp = t_1; elseif (a <= 2.5e+21) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= 9e+110) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = x * ((y * z) - (t * a)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.2e+77) tmp = t_3; elseif (a <= -2.0) tmp = t_2; elseif (a <= 9.5e-99) tmp = t_1; elseif (a <= 8.5e-32) tmp = t_2; elseif (a <= 8.8e-16) tmp = t_1; elseif (a <= 2.5e+21) tmp = j * ((a * c) - (y * i)); elseif (a <= 9e+110) tmp = t * ((b * i) - (x * a)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e+77], t$95$3, If[LessEqual[a, -2.0], t$95$2, If[LessEqual[a, 9.5e-99], t$95$1, If[LessEqual[a, 8.5e-32], t$95$2, If[LessEqual[a, 8.8e-16], t$95$1, If[LessEqual[a, 2.5e+21], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9e+110], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{+77}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;a \leq -2:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 9.5 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 9 \cdot 10^{+110}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if a < -3.2000000000000002e77 or 9.0000000000000005e110 < a Initial program 60.8%
Taylor expanded in a around inf 72.9%
+-commutative72.9%
mul-1-neg72.9%
unsub-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if -3.2000000000000002e77 < a < -2 or 9.5000000000000008e-99 < a < 8.5000000000000003e-32Initial program 77.5%
Taylor expanded in j around 0 74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in x around inf 78.3%
if -2 < a < 9.5000000000000008e-99 or 8.5000000000000003e-32 < a < 8.80000000000000001e-16Initial program 79.7%
Taylor expanded in b around inf 55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
if 8.80000000000000001e-16 < a < 2.5e21Initial program 100.0%
Taylor expanded in j around inf 83.7%
*-commutative83.7%
Simplified83.7%
if 2.5e21 < a < 9.0000000000000005e110Initial program 75.6%
Taylor expanded in j around 0 63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in z around 0 51.5%
associate-*r*51.5%
neg-mul-151.5%
cancel-sign-sub51.5%
mul-1-neg51.5%
*-commutative51.5%
associate-*r*57.3%
distribute-lft-neg-in57.3%
mul-1-neg57.3%
associate-*r*63.2%
distribute-rgt-in63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (- t_1 (* a (* x t))))
(t_3 (- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z))))))
(if (<= j -4e+72)
(+ t_2 (* b (* t i)))
(if (<= j -8.5e-274)
(* y (+ (* x z) (- (/ (* t (- (* b i) (* x a))) y) (* i j))))
(if (<= j 3.6e-91)
t_3
(if (<= j 7.8e-16)
(+ t_1 (* z (- (* x y) (* b c))))
(if (<= j 4.5e+211) t_3 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 = j * ((a * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double t_3 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double tmp;
if (j <= -4e+72) {
tmp = t_2 + (b * (t * i));
} else if (j <= -8.5e-274) {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
} else if (j <= 3.6e-91) {
tmp = t_3;
} else if (j <= 7.8e-16) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else if (j <= 4.5e+211) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t_1 - (a * (x * t))
t_3 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))
if (j <= (-4d+72)) then
tmp = t_2 + (b * (t * i))
else if (j <= (-8.5d-274)) then
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)))
else if (j <= 3.6d-91) then
tmp = t_3
else if (j <= 7.8d-16) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else if (j <= 4.5d+211) then
tmp = t_3
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 = j * ((a * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double t_3 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
double tmp;
if (j <= -4e+72) {
tmp = t_2 + (b * (t * i));
} else if (j <= -8.5e-274) {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
} else if (j <= 3.6e-91) {
tmp = t_3;
} else if (j <= 7.8e-16) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else if (j <= 4.5e+211) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 - (a * (x * t)) t_3 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))) tmp = 0 if j <= -4e+72: tmp = t_2 + (b * (t * i)) elif j <= -8.5e-274: tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))) elif j <= 3.6e-91: tmp = t_3 elif j <= 7.8e-16: tmp = t_1 + (z * ((x * y) - (b * c))) elif j <= 4.5e+211: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(a * Float64(x * t))) t_3 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (j <= -4e+72) tmp = Float64(t_2 + Float64(b * Float64(t * i))); elseif (j <= -8.5e-274) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) / y) - Float64(i * j)))); elseif (j <= 3.6e-91) tmp = t_3; elseif (j <= 7.8e-16) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (j <= 4.5e+211) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 - (a * (x * t)); t_3 = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))); tmp = 0.0; if (j <= -4e+72) tmp = t_2 + (b * (t * i)); elseif (j <= -8.5e-274) tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))); elseif (j <= 3.6e-91) tmp = t_3; elseif (j <= 7.8e-16) tmp = t_1 + (z * ((x * y) - (b * c))); elseif (j <= 4.5e+211) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4e+72], N[(t$95$2 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.5e-274], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.6e-91], t$95$3, If[LessEqual[j, 7.8e-16], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.5e+211], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t\_1 - a \cdot \left(x \cdot t\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;j \leq -4 \cdot 10^{+72}:\\
\;\;\;\;t\_2 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-274}:\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{t \cdot \left(b \cdot i - x \cdot a\right)}{y} - i \cdot j\right)\right)\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{-91}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq 7.8 \cdot 10^{-16}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 4.5 \cdot 10^{+211}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.99999999999999978e72Initial program 70.3%
Taylor expanded in z around 0 75.4%
if -3.99999999999999978e72 < j < -8.49999999999999978e-274Initial program 65.3%
Taylor expanded in y around -inf 78.0%
Simplified78.0%
Taylor expanded in c around 0 67.7%
mul-1-neg67.7%
*-commutative67.7%
associate-*r*70.9%
distribute-lft-neg-in70.9%
mul-1-neg70.9%
associate-*r*75.3%
distribute-rgt-in75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
Simplified75.3%
if -8.49999999999999978e-274 < j < 3.6e-91 or 7.79999999999999954e-16 < j < 4.5e211Initial program 78.8%
Taylor expanded in j around 0 79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
if 3.6e-91 < j < 7.79999999999999954e-16Initial program 69.0%
Taylor expanded in z around 0 81.2%
Taylor expanded in t around 0 78.0%
if 4.5e211 < j Initial program 76.4%
Taylor expanded in z around 0 82.7%
Taylor expanded in b around 0 71.2%
Taylor expanded in z around 0 83.0%
Final simplification77.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= t -4.8e+41)
(not
(or (<= t -7.5e-31) (and (not (<= t -1.3e-215)) (<= t 5.6e+57)))))
(* y (+ (* x z) (- (/ (* t (- (* b i) (* x a))) y) (* i j))))
(+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -4.8e+41) || !((t <= -7.5e-31) || (!(t <= -1.3e-215) && (t <= 5.6e+57)))) {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-4.8d+41)) .or. (.not. (t <= (-7.5d-31)) .or. (.not. (t <= (-1.3d-215))) .and. (t <= 5.6d+57))) then
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)))
else
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -4.8e+41) || !((t <= -7.5e-31) || (!(t <= -1.3e-215) && (t <= 5.6e+57)))) {
tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j)));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -4.8e+41) or not ((t <= -7.5e-31) or (not (t <= -1.3e-215) and (t <= 5.6e+57))): tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))) else: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -4.8e+41) || !((t <= -7.5e-31) || (!(t <= -1.3e-215) && (t <= 5.6e+57)))) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) / y) - Float64(i * j)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -4.8e+41) || ~(((t <= -7.5e-31) || (~((t <= -1.3e-215)) && (t <= 5.6e+57))))) tmp = y * ((x * z) + (((t * ((b * i) - (x * a))) / y) - (i * j))); else tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4.8e+41], N[Not[Or[LessEqual[t, -7.5e-31], And[N[Not[LessEqual[t, -1.3e-215]], $MachinePrecision], LessEqual[t, 5.6e+57]]]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+41} \lor \neg \left(t \leq -7.5 \cdot 10^{-31} \lor \neg \left(t \leq -1.3 \cdot 10^{-215}\right) \land t \leq 5.6 \cdot 10^{+57}\right):\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{t \cdot \left(b \cdot i - x \cdot a\right)}{y} - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if t < -4.8000000000000003e41 or -7.49999999999999975e-31 < t < -1.3e-215 or 5.59999999999999999e57 < t Initial program 65.1%
Taylor expanded in y around -inf 72.6%
Simplified74.6%
Taylor expanded in c around 0 67.8%
mul-1-neg67.8%
*-commutative67.8%
associate-*r*69.7%
distribute-lft-neg-in69.7%
mul-1-neg69.7%
associate-*r*72.1%
distribute-rgt-in74.8%
+-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
Simplified74.8%
if -4.8000000000000003e41 < t < -7.49999999999999975e-31 or -1.3e-215 < t < 5.59999999999999999e57Initial program 83.9%
Taylor expanded in z around 0 84.9%
Taylor expanded in t around 0 76.0%
Final simplification75.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= a -2.4e+119)
(* a (* x (- (/ (* c j) x) t)))
(if (<= a -0.39)
(- t_1 (* x (- (* t a) (* y z))))
(if (<= a -1.9e-55)
(* t (* b (- i (* c (/ z t)))))
(if (<= a 1.52e-16)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(- t_1 (* a (* x t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (a <= -2.4e+119) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -0.39) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (a <= -1.9e-55) {
tmp = t * (b * (i - (c * (z / t))));
} else if (a <= 1.52e-16) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 - (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) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (a <= (-2.4d+119)) then
tmp = a * (x * (((c * j) / x) - t))
else if (a <= (-0.39d0)) then
tmp = t_1 - (x * ((t * a) - (y * z)))
else if (a <= (-1.9d-55)) then
tmp = t * (b * (i - (c * (z / t))))
else if (a <= 1.52d-16) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else
tmp = t_1 - (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 t_1 = j * ((a * c) - (y * i));
double tmp;
if (a <= -2.4e+119) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -0.39) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else if (a <= -1.9e-55) {
tmp = t * (b * (i - (c * (z / t))));
} else if (a <= 1.52e-16) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1 - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if a <= -2.4e+119: tmp = a * (x * (((c * j) / x) - t)) elif a <= -0.39: tmp = t_1 - (x * ((t * a) - (y * z))) elif a <= -1.9e-55: tmp = t * (b * (i - (c * (z / t)))) elif a <= 1.52e-16: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) else: tmp = t_1 - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (a <= -2.4e+119) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (a <= -0.39) tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (a <= -1.9e-55) tmp = Float64(t * Float64(b * Float64(i - Float64(c * Float64(z / t))))); elseif (a <= 1.52e-16) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(t_1 - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (a <= -2.4e+119) tmp = a * (x * (((c * j) / x) - t)); elseif (a <= -0.39) tmp = t_1 - (x * ((t * a) - (y * z))); elseif (a <= -1.9e-55) tmp = t * (b * (i - (c * (z / t)))); elseif (a <= 1.52e-16) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); else tmp = t_1 - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.4e+119], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -0.39], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.9e-55], N[(t * N[(b * N[(i - N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.52e-16], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;a \leq -2.4 \cdot 10^{+119}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;a \leq -0.39:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-55}:\\
\;\;\;\;t \cdot \left(b \cdot \left(i - c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;a \leq 1.52 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if a < -2.4e119Initial program 52.9%
Taylor expanded in a around inf 75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in x around inf 76.0%
if -2.4e119 < a < -0.39000000000000001Initial program 75.6%
Taylor expanded in b around 0 80.8%
if -0.39000000000000001 < a < -1.8999999999999998e-55Initial program 53.5%
Taylor expanded in b around inf 74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in t around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in b around 0 80.4%
associate-*r/80.5%
Simplified80.5%
if -1.8999999999999998e-55 < a < 1.52e-16Initial program 81.8%
Taylor expanded in j around 0 70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in y around inf 67.0%
*-commutative67.0%
Simplified67.0%
if 1.52e-16 < a Initial program 71.1%
Taylor expanded in z around 0 72.5%
Taylor expanded in b around 0 71.2%
Taylor expanded in z around 0 71.2%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1e+88)
(* a (* x (- (/ (* c j) x) t)))
(if (<= a -0.39)
(* x (- (* y z) (* t a)))
(if (<= a -1.26e-13)
(* t (- (* b i) (* b (/ (* z c) t))))
(if (<= a 4.8e-15)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(- (* j (- (* a c) (* y i))) (* a (* x t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -1e+88) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -0.39) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.26e-13) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (a <= 4.8e-15) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (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 (a <= (-1d+88)) then
tmp = a * (x * (((c * j) / x) - t))
else if (a <= (-0.39d0)) then
tmp = x * ((y * z) - (t * a))
else if (a <= (-1.26d-13)) then
tmp = t * ((b * i) - (b * ((z * c) / t)))
else if (a <= 4.8d-15) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) - (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 (a <= -1e+88) {
tmp = a * (x * (((c * j) / x) - t));
} else if (a <= -0.39) {
tmp = x * ((y * z) - (t * a));
} else if (a <= -1.26e-13) {
tmp = t * ((b * i) - (b * ((z * c) / t)));
} else if (a <= 4.8e-15) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1e+88: tmp = a * (x * (((c * j) / x) - t)) elif a <= -0.39: tmp = x * ((y * z) - (t * a)) elif a <= -1.26e-13: tmp = t * ((b * i) - (b * ((z * c) / t))) elif a <= 4.8e-15: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1e+88) tmp = Float64(a * Float64(x * Float64(Float64(Float64(c * j) / x) - t))); elseif (a <= -0.39) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= -1.26e-13) tmp = Float64(t * Float64(Float64(b * i) - Float64(b * Float64(Float64(z * c) / t)))); elseif (a <= 4.8e-15) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - 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 (a <= -1e+88) tmp = a * (x * (((c * j) / x) - t)); elseif (a <= -0.39) tmp = x * ((y * z) - (t * a)); elseif (a <= -1.26e-13) tmp = t * ((b * i) - (b * ((z * c) / t))); elseif (a <= 4.8e-15) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1e+88], N[(a * N[(x * N[(N[(N[(c * j), $MachinePrecision] / x), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -0.39], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.26e-13], N[(t * N[(N[(b * i), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.8e-15], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+88}:\\
\;\;\;\;a \cdot \left(x \cdot \left(\frac{c \cdot j}{x} - t\right)\right)\\
\mathbf{elif}\;a \leq -0.39:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-13}:\\
\;\;\;\;t \cdot \left(b \cdot i - b \cdot \frac{z \cdot c}{t}\right)\\
\mathbf{elif}\;a \leq 4.8 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if a < -9.99999999999999959e87Initial program 54.6%
Taylor expanded in a around inf 74.2%
+-commutative74.2%
mul-1-neg74.2%
unsub-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in x around inf 74.9%
if -9.99999999999999959e87 < a < -0.39000000000000001Initial program 90.7%
Taylor expanded in j around 0 82.1%
*-commutative82.1%
*-commutative82.1%
Simplified82.1%
Taylor expanded in x around inf 81.3%
if -0.39000000000000001 < a < -1.25999999999999993e-13Initial program 49.6%
Taylor expanded in b around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in t around inf 75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
associate-/l*75.8%
Simplified75.8%
if -1.25999999999999993e-13 < a < 4.7999999999999999e-15Initial program 79.4%
Taylor expanded in j around 0 70.6%
*-commutative70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in y around inf 67.6%
*-commutative67.6%
Simplified67.6%
if 4.7999999999999999e-15 < a Initial program 71.1%
Taylor expanded in z around 0 72.5%
Taylor expanded in b around 0 71.2%
Taylor expanded in z around 0 71.2%
Final simplification70.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* a (* c j)) (* y (- (* x z) (* i j)))))
(t_2 (* t (- (* b i) (* x a)))))
(if (<= t -2.8e+100)
t_2
(if (<= t 1.7e-308)
t_1
(if (<= t 7e-224)
(* z (- (* x y) (* b c)))
(if (<= t 1.5e+57) 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 * (c * j)) + (y * ((x * z) - (i * j)));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2.8e+100) {
tmp = t_2;
} else if (t <= 1.7e-308) {
tmp = t_1;
} else if (t <= 7e-224) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.5e+57) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a * (c * j)) + (y * ((x * z) - (i * j)))
t_2 = t * ((b * i) - (x * a))
if (t <= (-2.8d+100)) then
tmp = t_2
else if (t <= 1.7d-308) then
tmp = t_1
else if (t <= 7d-224) then
tmp = z * ((x * y) - (b * c))
else if (t <= 1.5d+57) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (a * (c * j)) + (y * ((x * z) - (i * j)));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2.8e+100) {
tmp = t_2;
} else if (t <= 1.7e-308) {
tmp = t_1;
} else if (t <= 7e-224) {
tmp = z * ((x * y) - (b * c));
} else if (t <= 1.5e+57) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (a * (c * j)) + (y * ((x * z) - (i * j))) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -2.8e+100: tmp = t_2 elif t <= 1.7e-308: tmp = t_1 elif t <= 7e-224: tmp = z * ((x * y) - (b * c)) elif t <= 1.5e+57: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(a * Float64(c * j)) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -2.8e+100) tmp = t_2; elseif (t <= 1.7e-308) tmp = t_1; elseif (t <= 7e-224) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (t <= 1.5e+57) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (a * (c * j)) + (y * ((x * z) - (i * j))); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -2.8e+100) tmp = t_2; elseif (t <= 1.7e-308) tmp = t_1; elseif (t <= 7e-224) tmp = z * ((x * y) - (b * c)); elseif (t <= 1.5e+57) 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[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e+100], t$95$2, If[LessEqual[t, 1.7e-308], t$95$1, If[LessEqual[t, 7e-224], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+57], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+100}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-224}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.7999999999999998e100 or 1.5e57 < t Initial program 60.5%
Taylor expanded in j around 0 66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in z around 0 59.5%
associate-*r*59.5%
neg-mul-159.5%
cancel-sign-sub59.5%
mul-1-neg59.5%
*-commutative59.5%
associate-*r*61.5%
distribute-lft-neg-in61.5%
mul-1-neg61.5%
associate-*r*63.4%
distribute-rgt-in67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
Simplified67.5%
if -2.7999999999999998e100 < t < 1.7000000000000002e-308 or 7.00000000000000037e-224 < t < 1.5e57Initial program 79.9%
Taylor expanded in y around -inf 77.0%
Simplified78.4%
Taylor expanded in j around inf 62.6%
associate-*r*63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in y around 0 66.7%
if 1.7000000000000002e-308 < t < 7.00000000000000037e-224Initial program 86.0%
Taylor expanded in z around inf 86.0%
*-commutative86.0%
Simplified86.0%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= b -8.2e-51)
(* t (* b (- i (* c (/ z t)))))
(if (<= b -7.4e-196)
(* x (- (* y z) (* t a)))
(if (<= b 8e-239)
t_1
(if (<= b 5e-121)
(* a (- (* c j) (* x t)))
(if (<= b 5.6e-12) t_1 (* b (- (* t i) (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (b <= -8.2e-51) {
tmp = t * (b * (i - (c * (z / t))));
} else if (b <= -7.4e-196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8e-239) {
tmp = t_1;
} else if (b <= 5e-121) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 5.6e-12) {
tmp = t_1;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (b <= (-8.2d-51)) then
tmp = t * (b * (i - (c * (z / t))))
else if (b <= (-7.4d-196)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 8d-239) then
tmp = t_1
else if (b <= 5d-121) then
tmp = a * ((c * j) - (x * t))
else if (b <= 5.6d-12) then
tmp = t_1
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (b <= -8.2e-51) {
tmp = t * (b * (i - (c * (z / t))));
} else if (b <= -7.4e-196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 8e-239) {
tmp = t_1;
} else if (b <= 5e-121) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 5.6e-12) {
tmp = t_1;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if b <= -8.2e-51: tmp = t * (b * (i - (c * (z / t)))) elif b <= -7.4e-196: tmp = x * ((y * z) - (t * a)) elif b <= 8e-239: tmp = t_1 elif b <= 5e-121: tmp = a * ((c * j) - (x * t)) elif b <= 5.6e-12: tmp = t_1 else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (b <= -8.2e-51) tmp = Float64(t * Float64(b * Float64(i - Float64(c * Float64(z / t))))); elseif (b <= -7.4e-196) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 8e-239) tmp = t_1; elseif (b <= 5e-121) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 5.6e-12) tmp = t_1; else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (b <= -8.2e-51) tmp = t * (b * (i - (c * (z / t)))); elseif (b <= -7.4e-196) tmp = x * ((y * z) - (t * a)); elseif (b <= 8e-239) tmp = t_1; elseif (b <= 5e-121) tmp = a * ((c * j) - (x * t)); elseif (b <= 5.6e-12) tmp = t_1; else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e-51], N[(t * N[(b * N[(i - N[(c * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.4e-196], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e-239], t$95$1, If[LessEqual[b, 5e-121], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e-12], t$95$1, N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{-51}:\\
\;\;\;\;t \cdot \left(b \cdot \left(i - c \cdot \frac{z}{t}\right)\right)\\
\mathbf{elif}\;b \leq -7.4 \cdot 10^{-196}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-239}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-121}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -8.19999999999999947e-51Initial program 71.0%
Taylor expanded in b around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in t around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
associate-/l*57.6%
Simplified57.6%
Taylor expanded in b around 0 60.5%
associate-*r/60.5%
Simplified60.5%
if -8.19999999999999947e-51 < b < -7.4000000000000002e-196Initial program 78.1%
Taylor expanded in j around 0 67.7%
*-commutative67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around inf 61.6%
if -7.4000000000000002e-196 < b < 8.0000000000000006e-239 or 4.99999999999999989e-121 < b < 5.6000000000000004e-12Initial program 71.4%
Taylor expanded in y around inf 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
Simplified65.8%
if 8.0000000000000006e-239 < b < 4.99999999999999989e-121Initial program 71.3%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
if 5.6000000000000004e-12 < b Initial program 72.9%
Taylor expanded in b around inf 65.4%
*-commutative65.4%
*-commutative65.4%
Simplified65.4%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -7e-39)
t_2
(if (<= b -2.8e-196)
(* x (- (* y z) (* t a)))
(if (<= b 9.8e-238)
t_1
(if (<= b 4e-122)
(* a (- (* c j) (* x t)))
(if (<= b 3.1e-8) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e-39) {
tmp = t_2;
} else if (b <= -2.8e-196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 9.8e-238) {
tmp = t_1;
} else if (b <= 4e-122) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.1e-8) {
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 = y * ((x * z) - (i * j))
t_2 = b * ((t * i) - (z * c))
if (b <= (-7d-39)) then
tmp = t_2
else if (b <= (-2.8d-196)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 9.8d-238) then
tmp = t_1
else if (b <= 4d-122) then
tmp = a * ((c * j) - (x * t))
else if (b <= 3.1d-8) 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 = y * ((x * z) - (i * j));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -7e-39) {
tmp = t_2;
} else if (b <= -2.8e-196) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 9.8e-238) {
tmp = t_1;
} else if (b <= 4e-122) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 3.1e-8) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -7e-39: tmp = t_2 elif b <= -2.8e-196: tmp = x * ((y * z) - (t * a)) elif b <= 9.8e-238: tmp = t_1 elif b <= 4e-122: tmp = a * ((c * j) - (x * t)) elif b <= 3.1e-8: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -7e-39) tmp = t_2; elseif (b <= -2.8e-196) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 9.8e-238) tmp = t_1; elseif (b <= 4e-122) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 3.1e-8) 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 = y * ((x * z) - (i * j)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -7e-39) tmp = t_2; elseif (b <= -2.8e-196) tmp = x * ((y * z) - (t * a)); elseif (b <= 9.8e-238) tmp = t_1; elseif (b <= 4e-122) tmp = a * ((c * j) - (x * t)); elseif (b <= 3.1e-8) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7e-39], t$95$2, If[LessEqual[b, -2.8e-196], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e-238], t$95$1, If[LessEqual[b, 4e-122], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-8], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7 \cdot 10^{-39}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-196}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-122}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -6.99999999999999999e-39 or 3.1e-8 < b Initial program 71.4%
Taylor expanded in b around inf 62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
if -6.99999999999999999e-39 < b < -2.7999999999999998e-196Initial program 79.0%
Taylor expanded in j around 0 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in x around inf 61.1%
if -2.7999999999999998e-196 < b < 9.7999999999999996e-238 or 4.00000000000000024e-122 < b < 3.1e-8Initial program 71.4%
Taylor expanded in y around inf 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
Simplified65.8%
if 9.7999999999999996e-238 < b < 4.00000000000000024e-122Initial program 71.3%
Taylor expanded in a around inf 62.9%
+-commutative62.9%
mul-1-neg62.9%
unsub-neg62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
Final simplification63.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (* c (- b)))))
(if (<= a -0.36)
t_1
(if (<= a -1.35e-250)
(* t (* b i))
(if (<= a 2.7e-230)
t_2
(if (<= a 3.7e-175)
(* i (* y (- j)))
(if (<= a 1.02e-98) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * (c * -b);
double tmp;
if (a <= -0.36) {
tmp = t_1;
} else if (a <= -1.35e-250) {
tmp = t * (b * i);
} else if (a <= 2.7e-230) {
tmp = t_2;
} else if (a <= 3.7e-175) {
tmp = i * (y * -j);
} else if (a <= 1.02e-98) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = z * (c * -b)
if (a <= (-0.36d0)) then
tmp = t_1
else if (a <= (-1.35d-250)) then
tmp = t * (b * i)
else if (a <= 2.7d-230) then
tmp = t_2
else if (a <= 3.7d-175) then
tmp = i * (y * -j)
else if (a <= 1.02d-98) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * (c * -b);
double tmp;
if (a <= -0.36) {
tmp = t_1;
} else if (a <= -1.35e-250) {
tmp = t * (b * i);
} else if (a <= 2.7e-230) {
tmp = t_2;
} else if (a <= 3.7e-175) {
tmp = i * (y * -j);
} else if (a <= 1.02e-98) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * (c * -b) tmp = 0 if a <= -0.36: tmp = t_1 elif a <= -1.35e-250: tmp = t * (b * i) elif a <= 2.7e-230: tmp = t_2 elif a <= 3.7e-175: tmp = i * (y * -j) elif a <= 1.02e-98: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(c * Float64(-b))) tmp = 0.0 if (a <= -0.36) tmp = t_1; elseif (a <= -1.35e-250) tmp = Float64(t * Float64(b * i)); elseif (a <= 2.7e-230) tmp = t_2; elseif (a <= 3.7e-175) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 1.02e-98) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = z * (c * -b); tmp = 0.0; if (a <= -0.36) tmp = t_1; elseif (a <= -1.35e-250) tmp = t * (b * i); elseif (a <= 2.7e-230) tmp = t_2; elseif (a <= 3.7e-175) tmp = i * (y * -j); elseif (a <= 1.02e-98) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.36], t$95$1, If[LessEqual[a, -1.35e-250], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.7e-230], t$95$2, If[LessEqual[a, 3.7e-175], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e-98], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{if}\;a \leq -0.36:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.35 \cdot 10^{-250}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{-230}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{-98}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -0.35999999999999999 or 1.02e-98 < a Initial program 66.6%
Taylor expanded in a around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
if -0.35999999999999999 < a < -1.35000000000000001e-250Initial program 82.7%
Taylor expanded in y around -inf 78.2%
Simplified78.2%
Taylor expanded in c around 0 66.4%
mul-1-neg66.4%
*-commutative66.4%
associate-*r*71.6%
distribute-lft-neg-in71.6%
mul-1-neg71.6%
associate-*r*73.3%
distribute-rgt-in73.3%
+-commutative73.3%
mul-1-neg73.3%
unsub-neg73.3%
Simplified73.3%
Taylor expanded in b around inf 40.8%
associate-*r*44.0%
Simplified44.0%
if -1.35000000000000001e-250 < a < 2.70000000000000011e-230 or 3.69999999999999998e-175 < a < 1.02e-98Initial program 76.9%
Taylor expanded in z around inf 59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in x around 0 41.3%
mul-1-neg41.3%
distribute-rgt-neg-in41.3%
Simplified41.3%
if 2.70000000000000011e-230 < a < 3.69999999999999998e-175Initial program 83.9%
Taylor expanded in y around -inf 91.8%
Simplified91.8%
Taylor expanded in c around 0 91.5%
mul-1-neg91.5%
*-commutative91.5%
associate-*r*91.4%
distribute-lft-neg-in91.4%
mul-1-neg91.4%
associate-*r*91.4%
distribute-rgt-in91.4%
+-commutative91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in j around inf 52.6%
associate-*r*52.6%
mul-1-neg52.6%
*-commutative52.6%
Simplified52.6%
Final simplification54.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -0.42)
t_1
(if (<= a 2.4e-45)
(* b (- (* t i) (* z c)))
(if (<= a 3.3e-32)
(* x (* y z))
(if (<= a 7.2e+19) (* i (- (* t b) (* y j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.42) {
tmp = t_1;
} else if (a <= 2.4e-45) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 3.3e-32) {
tmp = x * (y * z);
} else if (a <= 7.2e+19) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-0.42d0)) then
tmp = t_1
else if (a <= 2.4d-45) then
tmp = b * ((t * i) - (z * c))
else if (a <= 3.3d-32) then
tmp = x * (y * z)
else if (a <= 7.2d+19) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.42) {
tmp = t_1;
} else if (a <= 2.4e-45) {
tmp = b * ((t * i) - (z * c));
} else if (a <= 3.3e-32) {
tmp = x * (y * z);
} else if (a <= 7.2e+19) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -0.42: tmp = t_1 elif a <= 2.4e-45: tmp = b * ((t * i) - (z * c)) elif a <= 3.3e-32: tmp = x * (y * z) elif a <= 7.2e+19: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -0.42) tmp = t_1; elseif (a <= 2.4e-45) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (a <= 3.3e-32) tmp = Float64(x * Float64(y * z)); elseif (a <= 7.2e+19) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -0.42) tmp = t_1; elseif (a <= 2.4e-45) tmp = b * ((t * i) - (z * c)); elseif (a <= 3.3e-32) tmp = x * (y * z); elseif (a <= 7.2e+19) tmp = i * ((t * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.42], t$95$1, If[LessEqual[a, 2.4e-45], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-32], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.2e+19], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -0.42:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-45}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-32}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{+19}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -0.419999999999999984 or 7.2e19 < a Initial program 65.8%
Taylor expanded in a around inf 67.8%
+-commutative67.8%
mul-1-neg67.8%
unsub-neg67.8%
*-commutative67.8%
*-commutative67.8%
Simplified67.8%
if -0.419999999999999984 < a < 2.3999999999999999e-45Initial program 81.4%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
if 2.3999999999999999e-45 < a < 3.30000000000000025e-32Initial program 42.9%
Taylor expanded in z around inf 76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in x around inf 76.6%
*-commutative76.6%
Simplified76.6%
if 3.30000000000000025e-32 < a < 7.2e19Initial program 77.8%
Taylor expanded in y around -inf 88.7%
Simplified88.7%
Taylor expanded in i around inf 56.9%
Taylor expanded in y around 0 56.9%
+-commutative56.9%
mul-1-neg56.9%
unsub-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Final simplification61.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -0.9)
t_2
(if (<= a 2.65e-45)
t_1
(if (<= a 4.2e-32)
(* x (* y z))
(if (<= a 1050000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.9) {
tmp = t_2;
} else if (a <= 2.65e-45) {
tmp = t_1;
} else if (a <= 4.2e-32) {
tmp = x * (y * z);
} else if (a <= 1050000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-0.9d0)) then
tmp = t_2
else if (a <= 2.65d-45) then
tmp = t_1
else if (a <= 4.2d-32) then
tmp = x * (y * z)
else if (a <= 1050000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -0.9) {
tmp = t_2;
} else if (a <= 2.65e-45) {
tmp = t_1;
} else if (a <= 4.2e-32) {
tmp = x * (y * z);
} else if (a <= 1050000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -0.9: tmp = t_2 elif a <= 2.65e-45: tmp = t_1 elif a <= 4.2e-32: tmp = x * (y * z) elif a <= 1050000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -0.9) tmp = t_2; elseif (a <= 2.65e-45) tmp = t_1; elseif (a <= 4.2e-32) tmp = Float64(x * Float64(y * z)); elseif (a <= 1050000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -0.9) tmp = t_2; elseif (a <= 2.65e-45) tmp = t_1; elseif (a <= 4.2e-32) tmp = x * (y * z); elseif (a <= 1050000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.9], t$95$2, If[LessEqual[a, 2.65e-45], t$95$1, If[LessEqual[a, 4.2e-32], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1050000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -0.9:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{-45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.2 \cdot 10^{-32}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq 1050000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -0.900000000000000022 or 1.05e12 < a Initial program 66.4%
Taylor expanded in a around inf 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
*-commutative66.7%
*-commutative66.7%
Simplified66.7%
if -0.900000000000000022 < a < 2.6499999999999999e-45 or 4.1999999999999998e-32 < a < 1.05e12Initial program 80.8%
Taylor expanded in b around inf 54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
if 2.6499999999999999e-45 < a < 4.1999999999999998e-32Initial program 42.9%
Taylor expanded in z around inf 76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in x around inf 76.6%
*-commutative76.6%
Simplified76.6%
Final simplification61.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.8e+130) (not (<= t 1.6e+78))) (* t (- (* b i) (* x a))) (+ (* j (- (* a c) (* y i))) (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.8e+130) || !(t <= 1.6e+78)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.8d+130)) .or. (.not. (t <= 1.6d+78))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.8e+130) || !(t <= 1.6e+78)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.8e+130) or not (t <= 1.6e+78): tmp = t * ((b * i) - (x * a)) else: tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.8e+130) || !(t <= 1.6e+78)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.8e+130) || ~((t <= 1.6e+78))) tmp = t * ((b * i) - (x * a)); else tmp = (j * ((a * c) - (y * i))) + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.8e+130], N[Not[LessEqual[t, 1.6e+78]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.8 \cdot 10^{+130} \lor \neg \left(t \leq 1.6 \cdot 10^{+78}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if t < -1.8000000000000001e130 or 1.59999999999999997e78 < t Initial program 59.0%
Taylor expanded in j around 0 67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in z around 0 60.0%
associate-*r*60.0%
neg-mul-160.0%
cancel-sign-sub60.0%
mul-1-neg60.0%
*-commutative60.0%
associate-*r*62.2%
distribute-lft-neg-in62.2%
mul-1-neg62.2%
associate-*r*64.2%
distribute-rgt-in68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
Simplified68.6%
if -1.8000000000000001e130 < t < 1.59999999999999997e78Initial program 80.5%
Taylor expanded in z around 0 79.2%
Taylor expanded in t around 0 68.6%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -2.35e+79)
(- t_1 (* a (* x t)))
(if (<= j 5.8e-93)
(- (* b (- (* t i) (* z c))) (* x (- (* t a) (* y z))))
(+ t_1 (* z (- (* x y) (* b c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.35e+79) {
tmp = t_1 - (a * (x * t));
} else if (j <= 5.8e-93) {
tmp = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 + (z * ((x * y) - (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-2.35d+79)) then
tmp = t_1 - (a * (x * t))
else if (j <= 5.8d-93) then
tmp = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)))
else
tmp = t_1 + (z * ((x * y) - (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -2.35e+79) {
tmp = t_1 - (a * (x * t));
} else if (j <= 5.8e-93) {
tmp = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 + (z * ((x * y) - (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -2.35e+79: tmp = t_1 - (a * (x * t)) elif j <= 5.8e-93: tmp = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))) else: tmp = t_1 + (z * ((x * y) - (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -2.35e+79) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (j <= 5.8e-93) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -2.35e+79) tmp = t_1 - (a * (x * t)); elseif (j <= 5.8e-93) tmp = (b * ((t * i) - (z * c))) - (x * ((t * a) - (y * z))); else tmp = t_1 + (z * ((x * y) - (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -2.35e+79], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.8e-93], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -2.35 \cdot 10^{+79}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;j \leq 5.8 \cdot 10^{-93}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if j < -2.35000000000000011e79Initial program 69.2%
Taylor expanded in z around 0 65.7%
Taylor expanded in b around 0 71.2%
Taylor expanded in z around 0 73.0%
if -2.35000000000000011e79 < j < 5.7999999999999997e-93Initial program 74.0%
Taylor expanded in j around 0 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if 5.7999999999999997e-93 < j Initial program 73.3%
Taylor expanded in z around 0 76.1%
Taylor expanded in t around 0 69.8%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.06e+140)
(* x (* t (- a)))
(if (<= t -2.2e-64)
(* i (* t b))
(if (<= t 5.7e+60) (* z (* x y)) (* b (* t 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.06e+140) {
tmp = x * (t * -a);
} else if (t <= -2.2e-64) {
tmp = i * (t * b);
} else if (t <= 5.7e+60) {
tmp = z * (x * y);
} else {
tmp = b * (t * 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.06d+140)) then
tmp = x * (t * -a)
else if (t <= (-2.2d-64)) then
tmp = i * (t * b)
else if (t <= 5.7d+60) then
tmp = z * (x * y)
else
tmp = b * (t * 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.06e+140) {
tmp = x * (t * -a);
} else if (t <= -2.2e-64) {
tmp = i * (t * b);
} else if (t <= 5.7e+60) {
tmp = z * (x * y);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.06e+140: tmp = x * (t * -a) elif t <= -2.2e-64: tmp = i * (t * b) elif t <= 5.7e+60: tmp = z * (x * y) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.06e+140) tmp = Float64(x * Float64(t * Float64(-a))); elseif (t <= -2.2e-64) tmp = Float64(i * Float64(t * b)); elseif (t <= 5.7e+60) tmp = Float64(z * Float64(x * y)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.06e+140) tmp = x * (t * -a); elseif (t <= -2.2e-64) tmp = i * (t * b); elseif (t <= 5.7e+60) tmp = z * (x * y); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.06e+140], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.2e-64], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.7e+60], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.06 \cdot 10^{+140}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-64}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 5.7 \cdot 10^{+60}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.0600000000000001e140Initial program 63.7%
Taylor expanded in j around 0 75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around inf 52.9%
Taylor expanded in y around 0 47.5%
neg-mul-147.5%
distribute-rgt-neg-in47.5%
Simplified47.5%
if -1.0600000000000001e140 < t < -2.2e-64Initial program 81.8%
Taylor expanded in y around -inf 80.0%
Simplified80.0%
Taylor expanded in i around inf 51.6%
Taylor expanded in y around 0 31.0%
*-commutative31.0%
Simplified31.0%
if -2.2e-64 < t < 5.69999999999999978e60Initial program 79.6%
Taylor expanded in z around inf 54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in x around inf 40.9%
*-commutative40.9%
Simplified40.9%
if 5.69999999999999978e60 < t Initial program 56.6%
Taylor expanded in y around -inf 58.6%
Simplified62.1%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
*-commutative59.2%
associate-*r*64.5%
distribute-lft-neg-in64.5%
mul-1-neg64.5%
associate-*r*69.5%
distribute-rgt-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
Taylor expanded in b around inf 45.6%
*-commutative45.6%
Simplified45.6%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.4e+141)
(* (* x t) (- a))
(if (<= t -1.65e-64)
(* i (* t b))
(if (<= t 2.5e+75) (* z (* x y)) (* b (* t 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.4e+141) {
tmp = (x * t) * -a;
} else if (t <= -1.65e-64) {
tmp = i * (t * b);
} else if (t <= 2.5e+75) {
tmp = z * (x * y);
} else {
tmp = b * (t * 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.4d+141)) then
tmp = (x * t) * -a
else if (t <= (-1.65d-64)) then
tmp = i * (t * b)
else if (t <= 2.5d+75) then
tmp = z * (x * y)
else
tmp = b * (t * 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.4e+141) {
tmp = (x * t) * -a;
} else if (t <= -1.65e-64) {
tmp = i * (t * b);
} else if (t <= 2.5e+75) {
tmp = z * (x * y);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.4e+141: tmp = (x * t) * -a elif t <= -1.65e-64: tmp = i * (t * b) elif t <= 2.5e+75: tmp = z * (x * y) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.4e+141) tmp = Float64(Float64(x * t) * Float64(-a)); elseif (t <= -1.65e-64) tmp = Float64(i * Float64(t * b)); elseif (t <= 2.5e+75) tmp = Float64(z * Float64(x * y)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.4e+141) tmp = (x * t) * -a; elseif (t <= -1.65e-64) tmp = i * (t * b); elseif (t <= 2.5e+75) tmp = z * (x * y); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.4e+141], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], If[LessEqual[t, -1.65e-64], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e+75], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+141}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-64}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+75}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.39999999999999996e141Initial program 63.7%
Taylor expanded in a around inf 56.1%
+-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
*-commutative56.1%
*-commutative56.1%
Simplified56.1%
Taylor expanded in j around 0 46.8%
mul-1-neg46.8%
*-commutative46.8%
distribute-rgt-neg-in46.8%
distribute-lft-neg-in46.8%
*-commutative46.8%
Simplified46.8%
if -1.39999999999999996e141 < t < -1.65e-64Initial program 81.8%
Taylor expanded in y around -inf 80.0%
Simplified80.0%
Taylor expanded in i around inf 51.6%
Taylor expanded in y around 0 31.0%
*-commutative31.0%
Simplified31.0%
if -1.65e-64 < t < 2.5000000000000001e75Initial program 79.6%
Taylor expanded in z around inf 54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in x around inf 40.9%
*-commutative40.9%
Simplified40.9%
if 2.5000000000000001e75 < t Initial program 56.6%
Taylor expanded in y around -inf 58.6%
Simplified62.1%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
*-commutative59.2%
associate-*r*64.5%
distribute-lft-neg-in64.5%
mul-1-neg64.5%
associate-*r*69.5%
distribute-rgt-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
Taylor expanded in b around inf 45.6%
*-commutative45.6%
Simplified45.6%
Final simplification41.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.5e-26) (not (<= b 4.4e-102))) (* b (* t i)) (* 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 ((b <= -1.5e-26) || !(b <= 4.4e-102)) {
tmp = b * (t * i);
} else {
tmp = 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 ((b <= (-1.5d-26)) .or. (.not. (b <= 4.4d-102))) then
tmp = b * (t * i)
else
tmp = 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 ((b <= -1.5e-26) || !(b <= 4.4e-102)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.5e-26) or not (b <= 4.4e-102): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.5e-26) || !(b <= 4.4e-102)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(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 ((b <= -1.5e-26) || ~((b <= 4.4e-102))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.5e-26], N[Not[LessEqual[b, 4.4e-102]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.5 \cdot 10^{-26} \lor \neg \left(b \leq 4.4 \cdot 10^{-102}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -1.50000000000000006e-26 or 4.40000000000000026e-102 < b Initial program 72.7%
Taylor expanded in y around -inf 70.5%
Simplified72.6%
Taylor expanded in c around 0 61.1%
mul-1-neg61.1%
*-commutative61.1%
associate-*r*61.1%
distribute-lft-neg-in61.1%
mul-1-neg61.1%
associate-*r*60.5%
distribute-rgt-in63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
Taylor expanded in b around inf 38.4%
*-commutative38.4%
Simplified38.4%
if -1.50000000000000006e-26 < b < 4.40000000000000026e-102Initial program 72.9%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in j around inf 27.4%
Final simplification33.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.9e-64) (* i (* t b)) (if (<= t 2.25e+56) (* z (* x y)) (* b (* t 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.9e-64) {
tmp = i * (t * b);
} else if (t <= 2.25e+56) {
tmp = z * (x * y);
} else {
tmp = b * (t * 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.9d-64)) then
tmp = i * (t * b)
else if (t <= 2.25d+56) then
tmp = z * (x * y)
else
tmp = b * (t * 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.9e-64) {
tmp = i * (t * b);
} else if (t <= 2.25e+56) {
tmp = z * (x * y);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.9e-64: tmp = i * (t * b) elif t <= 2.25e+56: tmp = z * (x * y) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.9e-64) tmp = Float64(i * Float64(t * b)); elseif (t <= 2.25e+56) tmp = Float64(z * Float64(x * y)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.9e-64) tmp = i * (t * b); elseif (t <= 2.25e+56) tmp = z * (x * y); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.9e-64], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+56], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-64}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+56}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.9000000000000001e-64Initial program 74.0%
Taylor expanded in y around -inf 78.4%
Simplified79.6%
Taylor expanded in i around inf 47.9%
Taylor expanded in y around 0 31.3%
*-commutative31.3%
Simplified31.3%
if -1.9000000000000001e-64 < t < 2.2500000000000002e56Initial program 79.6%
Taylor expanded in z around inf 54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in x around inf 40.9%
*-commutative40.9%
Simplified40.9%
if 2.2500000000000002e56 < t Initial program 56.6%
Taylor expanded in y around -inf 58.6%
Simplified62.1%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
*-commutative59.2%
associate-*r*64.5%
distribute-lft-neg-in64.5%
mul-1-neg64.5%
associate-*r*69.5%
distribute-rgt-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
Taylor expanded in b around inf 45.6%
*-commutative45.6%
Simplified45.6%
Final simplification39.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -2.2e-64) (* i (* t b)) (if (<= t 2.6e+60) (* y (* x z)) (* b (* t 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 <= -2.2e-64) {
tmp = i * (t * b);
} else if (t <= 2.6e+60) {
tmp = y * (x * z);
} else {
tmp = b * (t * 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 <= (-2.2d-64)) then
tmp = i * (t * b)
else if (t <= 2.6d+60) then
tmp = y * (x * z)
else
tmp = b * (t * 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 <= -2.2e-64) {
tmp = i * (t * b);
} else if (t <= 2.6e+60) {
tmp = y * (x * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.2e-64: tmp = i * (t * b) elif t <= 2.6e+60: tmp = y * (x * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.2e-64) tmp = Float64(i * Float64(t * b)); elseif (t <= 2.6e+60) tmp = Float64(y * Float64(x * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.2e-64) tmp = i * (t * b); elseif (t <= 2.6e+60) tmp = y * (x * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.2e-64], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e+60], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{-64}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+60}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -2.2e-64Initial program 74.0%
Taylor expanded in y around -inf 78.4%
Simplified79.6%
Taylor expanded in i around inf 47.9%
Taylor expanded in y around 0 31.3%
*-commutative31.3%
Simplified31.3%
if -2.2e-64 < t < 2.60000000000000008e60Initial program 79.6%
Taylor expanded in z around 0 80.2%
Taylor expanded in b around 0 65.6%
Taylor expanded in z around inf 38.1%
associate-*r*40.9%
*-commutative40.9%
associate-*r*40.1%
Simplified40.1%
if 2.60000000000000008e60 < t Initial program 56.6%
Taylor expanded in y around -inf 58.6%
Simplified62.1%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
*-commutative59.2%
associate-*r*64.5%
distribute-lft-neg-in64.5%
mul-1-neg64.5%
associate-*r*69.5%
distribute-rgt-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
Taylor expanded in b around inf 45.6%
*-commutative45.6%
Simplified45.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -6.6e-66) (* i (* t b)) (if (<= t 3e+74) (* x (* y z)) (* b (* t 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 <= -6.6e-66) {
tmp = i * (t * b);
} else if (t <= 3e+74) {
tmp = x * (y * z);
} else {
tmp = b * (t * 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 <= (-6.6d-66)) then
tmp = i * (t * b)
else if (t <= 3d+74) then
tmp = x * (y * z)
else
tmp = b * (t * 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 <= -6.6e-66) {
tmp = i * (t * b);
} else if (t <= 3e+74) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -6.6e-66: tmp = i * (t * b) elif t <= 3e+74: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -6.6e-66) tmp = Float64(i * Float64(t * b)); elseif (t <= 3e+74) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -6.6e-66) tmp = i * (t * b); elseif (t <= 3e+74) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -6.6e-66], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+74], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{-66}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+74}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -6.5999999999999998e-66Initial program 74.0%
Taylor expanded in y around -inf 78.4%
Simplified79.6%
Taylor expanded in i around inf 47.9%
Taylor expanded in y around 0 31.3%
*-commutative31.3%
Simplified31.3%
if -6.5999999999999998e-66 < t < 3e74Initial program 79.6%
Taylor expanded in z around inf 54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in x around inf 38.1%
*-commutative38.1%
Simplified38.1%
if 3e74 < t Initial program 56.6%
Taylor expanded in y around -inf 58.6%
Simplified62.1%
Taylor expanded in c around 0 59.2%
mul-1-neg59.2%
*-commutative59.2%
associate-*r*64.5%
distribute-lft-neg-in64.5%
mul-1-neg64.5%
associate-*r*69.5%
distribute-rgt-in73.0%
+-commutative73.0%
mul-1-neg73.0%
unsub-neg73.0%
Simplified73.0%
Taylor expanded in b around inf 45.6%
*-commutative45.6%
Simplified45.6%
Final simplification37.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -4.2e-31) (* i (* t b)) (if (<= b 4.4e-102) (* a (* c j)) (* b (* t i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.2e-31) {
tmp = i * (t * b);
} else if (b <= 4.4e-102) {
tmp = a * (c * j);
} else {
tmp = b * (t * 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 (b <= (-4.2d-31)) then
tmp = i * (t * b)
else if (b <= 4.4d-102) then
tmp = a * (c * j)
else
tmp = b * (t * 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 (b <= -4.2e-31) {
tmp = i * (t * b);
} else if (b <= 4.4e-102) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.2e-31: tmp = i * (t * b) elif b <= 4.4e-102: tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.2e-31) tmp = Float64(i * Float64(t * b)); elseif (b <= 4.4e-102) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.2e-31) tmp = i * (t * b); elseif (b <= 4.4e-102) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.2e-31], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-102], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{-31}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-102}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if b < -4.19999999999999982e-31Initial program 70.8%
Taylor expanded in y around -inf 66.5%
Simplified69.5%
Taylor expanded in i around inf 49.1%
Taylor expanded in y around 0 40.6%
*-commutative40.6%
Simplified40.6%
if -4.19999999999999982e-31 < b < 4.40000000000000026e-102Initial program 72.9%
Taylor expanded in a around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in j around inf 27.4%
if 4.40000000000000026e-102 < b Initial program 74.4%
Taylor expanded in y around -inf 73.8%
Simplified75.1%
Taylor expanded in c around 0 63.7%
mul-1-neg63.7%
*-commutative63.7%
associate-*r*65.1%
distribute-lft-neg-in65.1%
mul-1-neg65.1%
associate-*r*63.8%
distribute-rgt-in66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
Simplified66.4%
Taylor expanded in b around inf 36.7%
*-commutative36.7%
Simplified36.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 72.8%
Taylor expanded in a around inf 41.0%
+-commutative41.0%
mul-1-neg41.0%
unsub-neg41.0%
*-commutative41.0%
*-commutative41.0%
Simplified41.0%
Taylor expanded in j around inf 20.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024108
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))