
(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 23 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 (* x (- (* y z) (* t a)))) (t_2 (- (* a c) (* y i))))
(if (<= (+ (+ t_1 (* b (- (* t i) (* z c)))) (* j t_2)) INFINITY)
(fma j t_2 (- t_1 (* b (fma z c (* i (- t))))))
(* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (a * c) - (y * i);
double tmp;
if (((t_1 + (b * ((t * i) - (z * c)))) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, (t_1 - (b * fma(z, c, (i * -t)))));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, Float64(t_1 - Float64(b * fma(z, c, Float64(i * Float64(-t)))))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(t$95$1 - N[(b * N[(z * c + N[(i * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;\left(t_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot t_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1 - b \cdot \mathsf{fma}\left(z, c, i \cdot \left(-t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.2%
+-commutative92.2%
fma-def92.2%
*-commutative92.2%
cancel-sign-sub-inv92.2%
cancel-sign-sub92.2%
remove-double-neg92.2%
*-commutative92.2%
fma-neg92.2%
distribute-rgt-neg-out92.2%
Simplified92.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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
*-commutative54.9%
Simplified54.9%
Final simplification85.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.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%
associate-+l-0.0%
*-commutative0.0%
sub-neg0.0%
sub-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in t around inf 54.9%
distribute-lft-out--54.9%
*-commutative54.9%
Simplified54.9%
Final simplification85.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -9.5e+97)
t_2
(if (<= b -3e-15)
(* z (- (* x y) (* b c)))
(if (<= b -2.15e-16)
(* b (* t i))
(if (<= b -9.5e-75)
(* a (- (* c j) (* x t)))
(if (<= b -1.4e-150)
(* i (- (* t b) (* y j)))
(if (<= b 6.3e-258)
(+ (* x (* y z)) t_1)
(if (<= b 2.4e-62)
(* x (- (* y z) (* t a)))
(if (<= b 580000000.0)
t_1
(if (<= b 3e+88)
(- (* i (* t b)) (* b (* z c)))
(if (<= b 2.2e+113)
(* y (- (* x z) (* i j)))
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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.5e+97) {
tmp = t_2;
} else if (b <= -3e-15) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.15e-16) {
tmp = b * (t * i);
} else if (b <= -9.5e-75) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -1.4e-150) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 6.3e-258) {
tmp = (x * (y * z)) + t_1;
} else if (b <= 2.4e-62) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 580000000.0) {
tmp = t_1;
} else if (b <= 3e+88) {
tmp = (i * (t * b)) - (b * (z * c));
} else if (b <= 2.2e+113) {
tmp = y * ((x * z) - (i * j));
} 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 * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-9.5d+97)) then
tmp = t_2
else if (b <= (-3d-15)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.15d-16)) then
tmp = b * (t * i)
else if (b <= (-9.5d-75)) then
tmp = a * ((c * j) - (x * t))
else if (b <= (-1.4d-150)) then
tmp = i * ((t * b) - (y * j))
else if (b <= 6.3d-258) then
tmp = (x * (y * z)) + t_1
else if (b <= 2.4d-62) then
tmp = x * ((y * z) - (t * a))
else if (b <= 580000000.0d0) then
tmp = t_1
else if (b <= 3d+88) then
tmp = (i * (t * b)) - (b * (z * c))
else if (b <= 2.2d+113) then
tmp = y * ((x * z) - (i * j))
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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -9.5e+97) {
tmp = t_2;
} else if (b <= -3e-15) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.15e-16) {
tmp = b * (t * i);
} else if (b <= -9.5e-75) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -1.4e-150) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 6.3e-258) {
tmp = (x * (y * z)) + t_1;
} else if (b <= 2.4e-62) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 580000000.0) {
tmp = t_1;
} else if (b <= 3e+88) {
tmp = (i * (t * b)) - (b * (z * c));
} else if (b <= 2.2e+113) {
tmp = y * ((x * z) - (i * j));
} 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 = b * ((t * i) - (z * c)) tmp = 0 if b <= -9.5e+97: tmp = t_2 elif b <= -3e-15: tmp = z * ((x * y) - (b * c)) elif b <= -2.15e-16: tmp = b * (t * i) elif b <= -9.5e-75: tmp = a * ((c * j) - (x * t)) elif b <= -1.4e-150: tmp = i * ((t * b) - (y * j)) elif b <= 6.3e-258: tmp = (x * (y * z)) + t_1 elif b <= 2.4e-62: tmp = x * ((y * z) - (t * a)) elif b <= 580000000.0: tmp = t_1 elif b <= 3e+88: tmp = (i * (t * b)) - (b * (z * c)) elif b <= 2.2e+113: tmp = y * ((x * z) - (i * j)) 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(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.5e+97) tmp = t_2; elseif (b <= -3e-15) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.15e-16) tmp = Float64(b * Float64(t * i)); elseif (b <= -9.5e-75) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= -1.4e-150) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 6.3e-258) tmp = Float64(Float64(x * Float64(y * z)) + t_1); elseif (b <= 2.4e-62) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 580000000.0) tmp = t_1; elseif (b <= 3e+88) tmp = Float64(Float64(i * Float64(t * b)) - Float64(b * Float64(z * c))); elseif (b <= 2.2e+113) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); 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 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -9.5e+97) tmp = t_2; elseif (b <= -3e-15) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.15e-16) tmp = b * (t * i); elseif (b <= -9.5e-75) tmp = a * ((c * j) - (x * t)); elseif (b <= -1.4e-150) tmp = i * ((t * b) - (y * j)); elseif (b <= 6.3e-258) tmp = (x * (y * z)) + t_1; elseif (b <= 2.4e-62) tmp = x * ((y * z) - (t * a)); elseif (b <= 580000000.0) tmp = t_1; elseif (b <= 3e+88) tmp = (i * (t * b)) - (b * (z * c)); elseif (b <= 2.2e+113) tmp = y * ((x * z) - (i * j)); 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.5e+97], t$95$2, If[LessEqual[b, -3e-15], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.15e-16], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-75], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.4e-150], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.3e-258], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 2.4e-62], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 580000000.0], t$95$1, If[LessEqual[b, 3e+88], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+113], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.5 \cdot 10^{+97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-15}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.15 \cdot 10^{-16}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-75}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-150}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 6.3 \cdot 10^{-258}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + t_1\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-62}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 580000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+88}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+113}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -9.49999999999999975e97 or 2.2000000000000001e113 < b Initial program 84.1%
associate-+l-84.1%
*-commutative84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in b around inf 77.4%
if -9.49999999999999975e97 < b < -3e-15Initial program 58.3%
associate-+l-58.3%
*-commutative58.3%
sub-neg58.3%
sub-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in z around inf 63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
if -3e-15 < b < -2.1499999999999999e-16Initial program 100.0%
associate-+l-100.0%
*-commutative100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 100.0%
distribute-lft-out--100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around 0 100.0%
neg-mul-1100.0%
distribute-lft-neg-in100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
if -2.1499999999999999e-16 < b < -9.4999999999999991e-75Initial program 77.7%
associate-+l-77.7%
*-commutative77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in a around inf 69.8%
+-commutative69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
Simplified69.8%
if -9.4999999999999991e-75 < b < -1.39999999999999998e-150Initial program 62.2%
associate-+l-62.2%
*-commutative62.2%
sub-neg62.2%
sub-neg62.2%
*-commutative62.2%
Simplified62.2%
add-cube-cbrt62.2%
pow362.2%
Applied egg-rr62.2%
Taylor expanded in y around 0 78.2%
pow-base-178.2%
associate-*r*78.2%
*-lft-identity78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in i around inf 69.8%
associate-*r*69.8%
neg-mul-169.8%
cancel-sign-sub69.8%
+-commutative69.8%
mul-1-neg69.8%
sub-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
if -1.39999999999999998e-150 < b < 6.29999999999999975e-258Initial program 71.1%
associate-+l-71.1%
*-commutative71.1%
sub-neg71.1%
sub-neg71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in b around 0 76.7%
Taylor expanded in t around 0 67.2%
if 6.29999999999999975e-258 < b < 2.39999999999999984e-62Initial program 75.2%
associate-+l-75.2%
*-commutative75.2%
sub-neg75.2%
sub-neg75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in x around inf 72.5%
if 2.39999999999999984e-62 < b < 5.8e8Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in j around inf 70.3%
if 5.8e8 < b < 3.00000000000000005e88Initial program 72.9%
associate-+l-72.9%
*-commutative72.9%
sub-neg72.9%
sub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in t around -inf 82.7%
Taylor expanded in b around inf 53.2%
*-commutative53.2%
associate-*r*54.1%
Simplified54.1%
if 3.00000000000000005e88 < b < 2.2000000000000001e113Initial program 81.4%
associate-+l-81.4%
*-commutative81.4%
sub-neg81.4%
sub-neg81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around inf 99.7%
+-commutative99.7%
mul-1-neg99.7%
unsub-neg99.7%
*-commutative99.7%
*-commutative99.7%
Simplified99.7%
Final simplification70.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1.45e-13)
(+ (* y (- (* x z) (* i j))) t_1)
(if (<= b -8e-63)
(+ (- (* a (* c j)) (* a (* x t))) t_1)
(if (<= b -1.4e-89)
(- (* a (- (* c j) (* x t))) (* y (* i j)))
(if (<= b 5.7e-5)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(+ (- (* x (* y z)) (* i (* 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.45e-13) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (b <= -8e-63) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (b <= -1.4e-89) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (b <= 5.7e-5) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = ((x * (y * z)) - (i * (y * j))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-1.45d-13)) then
tmp = (y * ((x * z) - (i * j))) + t_1
else if (b <= (-8d-63)) then
tmp = ((a * (c * j)) - (a * (x * t))) + t_1
else if (b <= (-1.4d-89)) then
tmp = (a * ((c * j) - (x * t))) - (y * (i * j))
else if (b <= 5.7d-5) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else
tmp = ((x * (y * z)) - (i * (y * j))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.45e-13) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (b <= -8e-63) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (b <= -1.4e-89) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (b <= 5.7e-5) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = ((x * (y * z)) - (i * (y * j))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1.45e-13: tmp = (y * ((x * z) - (i * j))) + t_1 elif b <= -8e-63: tmp = ((a * (c * j)) - (a * (x * t))) + t_1 elif b <= -1.4e-89: tmp = (a * ((c * j) - (x * t))) - (y * (i * j)) elif b <= 5.7e-5: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) else: tmp = ((x * (y * z)) - (i * (y * j))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.45e-13) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); elseif (b <= -8e-63) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t))) + t_1); elseif (b <= -1.4e-89) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(y * Float64(i * j))); elseif (b <= 5.7e-5) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(Float64(Float64(x * Float64(y * z)) - Float64(i * Float64(y * j))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1.45e-13) tmp = (y * ((x * z) - (i * j))) + t_1; elseif (b <= -8e-63) tmp = ((a * (c * j)) - (a * (x * t))) + t_1; elseif (b <= -1.4e-89) tmp = (a * ((c * j) - (x * t))) - (y * (i * j)); elseif (b <= 5.7e-5) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); else tmp = ((x * (y * z)) - (i * (y * j))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.45e-13], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -8e-63], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -1.4e-89], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.7e-5], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.45 \cdot 10^{-13}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-63}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t_1\\
\mathbf{elif}\;b \leq -1.4 \cdot 10^{-89}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - i \cdot \left(y \cdot j\right)\right) + t_1\\
\end{array}
\end{array}
if b < -1.4499999999999999e-13Initial program 75.8%
associate-+l-75.8%
*-commutative75.8%
sub-neg75.8%
sub-neg75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in a around 0 78.0%
sub-neg78.0%
+-commutative78.0%
mul-1-neg78.0%
cancel-sign-sub-inv78.0%
associate-*r*79.5%
associate-*r*79.5%
*-commutative79.5%
associate-*r*81.4%
distribute-rgt-in83.1%
+-commutative83.1%
mul-1-neg83.1%
unsub-neg83.1%
*-commutative83.1%
*-commutative83.1%
mul-1-neg83.1%
Simplified83.1%
if -1.4499999999999999e-13 < b < -8.00000000000000053e-63Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in y around 0 76.6%
if -8.00000000000000053e-63 < b < -1.3999999999999999e-89Initial program 72.1%
associate-+l-72.1%
*-commutative72.1%
sub-neg72.1%
sub-neg72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in b around 0 72.1%
Taylor expanded in z around 0 73.8%
+-commutative73.8%
sub-neg73.8%
+-commutative73.8%
distribute-rgt-in73.8%
associate-*r*73.8%
associate-+l+73.8%
distribute-lft-neg-out73.8%
associate-*r*87.3%
neg-mul-187.3%
*-commutative87.3%
associate-*r*87.3%
mul-1-neg87.3%
distribute-rgt-neg-in87.3%
distribute-lft-in87.3%
+-commutative87.3%
mul-1-neg87.3%
Simplified87.3%
if -1.3999999999999999e-89 < b < 5.7000000000000003e-5Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in b around 0 74.5%
if 5.7000000000000003e-5 < b Initial program 80.7%
associate-+l-80.7%
*-commutative80.7%
sub-neg80.7%
sub-neg80.7%
*-commutative80.7%
Simplified80.7%
Taylor expanded in a around 0 78.5%
Final simplification78.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -0.00088)
(+ (* y (- (* x z) (* i j))) t_1)
(if (<= b 3.8e+31)
(+
(* x (- (* y z) (* t a)))
(+ (* j (- (* a c) (* y i))) (* t (* b i))))
(+ (- (* x (* y z)) (* i (* 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -0.00088) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (b <= 3.8e+31) {
tmp = (x * ((y * z) - (t * a))) + ((j * ((a * c) - (y * i))) + (t * (b * i)));
} else {
tmp = ((x * (y * z)) - (i * (y * j))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-0.00088d0)) then
tmp = (y * ((x * z) - (i * j))) + t_1
else if (b <= 3.8d+31) then
tmp = (x * ((y * z) - (t * a))) + ((j * ((a * c) - (y * i))) + (t * (b * i)))
else
tmp = ((x * (y * z)) - (i * (y * j))) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -0.00088) {
tmp = (y * ((x * z) - (i * j))) + t_1;
} else if (b <= 3.8e+31) {
tmp = (x * ((y * z) - (t * a))) + ((j * ((a * c) - (y * i))) + (t * (b * i)));
} else {
tmp = ((x * (y * z)) - (i * (y * j))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -0.00088: tmp = (y * ((x * z) - (i * j))) + t_1 elif b <= 3.8e+31: tmp = (x * ((y * z) - (t * a))) + ((j * ((a * c) - (y * i))) + (t * (b * i))) else: tmp = ((x * (y * z)) - (i * (y * j))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -0.00088) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1); elseif (b <= 3.8e+31) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i)))); else tmp = Float64(Float64(Float64(x * Float64(y * z)) - Float64(i * Float64(y * j))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -0.00088) tmp = (y * ((x * z) - (i * j))) + t_1; elseif (b <= 3.8e+31) tmp = (x * ((y * z) - (t * a))) + ((j * ((a * c) - (y * i))) + (t * (b * i))); else tmp = ((x * (y * z)) - (i * (y * j))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -0.00088], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 3.8e+31], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -0.00088:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t_1\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + \left(j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) - i \cdot \left(y \cdot j\right)\right) + t_1\\
\end{array}
\end{array}
if b < -8.80000000000000031e-4Initial program 76.2%
associate-+l-76.2%
*-commutative76.2%
sub-neg76.2%
sub-neg76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in a around 0 78.5%
sub-neg78.5%
+-commutative78.5%
mul-1-neg78.5%
cancel-sign-sub-inv78.5%
associate-*r*80.2%
associate-*r*80.2%
*-commutative80.2%
associate-*r*82.1%
distribute-rgt-in83.9%
+-commutative83.9%
mul-1-neg83.9%
unsub-neg83.9%
*-commutative83.9%
*-commutative83.9%
mul-1-neg83.9%
Simplified83.9%
if -8.80000000000000031e-4 < b < 3.8000000000000001e31Initial program 72.8%
associate-+l-72.8%
*-commutative72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in z around 0 74.1%
mul-1-neg74.1%
associate-*r*75.6%
distribute-lft-neg-in75.6%
*-commutative75.6%
distribute-rgt-neg-in75.6%
Simplified75.6%
if 3.8000000000000001e31 < b Initial program 80.9%
associate-+l-80.9%
*-commutative80.9%
sub-neg80.9%
sub-neg80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in a around 0 80.9%
Final simplification78.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* t i) (* z c)))))
(t_2 (* a (- (* c j) (* x t)))))
(if (<= b -7.2e-20)
t_1
(if (<= b -8e-78)
t_2
(if (<= b -3.8e-129)
(* i (- (* t b) (* y j)))
(if (<= b -2.7e-246)
t_2
(if (<= b 1.05e-61)
(* x (- (* y z) (* t a)))
(if (<= b 3.7e+26) (* j (- (* a c) (* y i))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (b <= -7.2e-20) {
tmp = t_1;
} else if (b <= -8e-78) {
tmp = t_2;
} else if (b <= -3.8e-129) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.7e-246) {
tmp = t_2;
} else if (b <= 1.05e-61) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 3.7e+26) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)))
t_2 = a * ((c * j) - (x * t))
if (b <= (-7.2d-20)) then
tmp = t_1
else if (b <= (-8d-78)) then
tmp = t_2
else if (b <= (-3.8d-129)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-2.7d-246)) then
tmp = t_2
else if (b <= 1.05d-61) then
tmp = x * ((y * z) - (t * a))
else if (b <= 3.7d+26) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (b <= -7.2e-20) {
tmp = t_1;
} else if (b <= -8e-78) {
tmp = t_2;
} else if (b <= -3.8e-129) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -2.7e-246) {
tmp = t_2;
} else if (b <= 1.05e-61) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 3.7e+26) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))) t_2 = a * ((c * j) - (x * t)) tmp = 0 if b <= -7.2e-20: tmp = t_1 elif b <= -8e-78: tmp = t_2 elif b <= -3.8e-129: tmp = i * ((t * b) - (y * j)) elif b <= -2.7e-246: tmp = t_2 elif b <= 1.05e-61: tmp = x * ((y * z) - (t * a)) elif b <= 3.7e+26: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (b <= -7.2e-20) tmp = t_1; elseif (b <= -8e-78) tmp = t_2; elseif (b <= -3.8e-129) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -2.7e-246) tmp = t_2; elseif (b <= 1.05e-61) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 3.7e+26) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (b <= -7.2e-20) tmp = t_1; elseif (b <= -8e-78) tmp = t_2; elseif (b <= -3.8e-129) tmp = i * ((t * b) - (y * j)); elseif (b <= -2.7e-246) tmp = t_2; elseif (b <= 1.05e-61) tmp = x * ((y * z) - (t * a)); elseif (b <= 3.7e+26) tmp = j * ((a * c) - (y * i)); 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e-20], t$95$1, If[LessEqual[b, -8e-78], t$95$2, If[LessEqual[b, -3.8e-129], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-246], t$95$2, If[LessEqual[b, 1.05e-61], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e+26], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{-20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-129}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-246}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-61}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{+26}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -7.19999999999999948e-20 or 3.69999999999999988e26 < b Initial program 78.6%
associate-+l-78.6%
*-commutative78.6%
sub-neg78.6%
sub-neg78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in a around 0 78.9%
sub-neg78.9%
+-commutative78.9%
mul-1-neg78.9%
cancel-sign-sub-inv78.9%
associate-*r*78.8%
associate-*r*78.8%
*-commutative78.8%
associate-*r*78.8%
distribute-rgt-in79.6%
+-commutative79.6%
mul-1-neg79.6%
unsub-neg79.6%
*-commutative79.6%
*-commutative79.6%
mul-1-neg79.6%
Simplified79.6%
Taylor expanded in z around inf 75.1%
*-commutative75.1%
Simplified75.1%
if -7.19999999999999948e-20 < b < -7.99999999999999999e-78 or -3.79999999999999985e-129 < b < -2.6999999999999999e-246Initial program 74.9%
associate-+l-74.9%
*-commutative74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in a around inf 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
Simplified72.4%
if -7.99999999999999999e-78 < b < -3.79999999999999985e-129Initial program 64.5%
associate-+l-64.5%
*-commutative64.5%
sub-neg64.5%
sub-neg64.5%
*-commutative64.5%
Simplified64.5%
add-cube-cbrt64.5%
pow364.5%
Applied egg-rr64.5%
Taylor expanded in y around 0 74.2%
pow-base-174.2%
associate-*r*74.2%
*-lft-identity74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in i around inf 73.3%
associate-*r*73.3%
neg-mul-173.3%
cancel-sign-sub73.3%
+-commutative73.3%
mul-1-neg73.3%
sub-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
if -2.6999999999999999e-246 < b < 1.05e-61Initial program 71.8%
associate-+l-71.8%
*-commutative71.8%
sub-neg71.8%
sub-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 65.4%
if 1.05e-61 < b < 3.69999999999999988e26Initial program 74.8%
associate-+l-74.8%
*-commutative74.8%
sub-neg74.8%
sub-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in j around inf 62.7%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* y (- (* x z) (* i j))) t_1)))
(if (<= b -2.2e-14)
t_2
(if (<= b -8.2e-63)
(+ (- (* a (* c j)) (* a (* x t))) t_1)
(if (<= b -7.2e-89)
(- (* a (- (* c j) (* x t))) (* y (* i j)))
(if (<= b 0.0001)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
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 = (y * ((x * z) - (i * j))) + t_1;
double tmp;
if (b <= -2.2e-14) {
tmp = t_2;
} else if (b <= -8.2e-63) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (b <= -7.2e-89) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (b <= 0.0001) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} 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 = (y * ((x * z) - (i * j))) + t_1
if (b <= (-2.2d-14)) then
tmp = t_2
else if (b <= (-8.2d-63)) then
tmp = ((a * (c * j)) - (a * (x * t))) + t_1
else if (b <= (-7.2d-89)) then
tmp = (a * ((c * j) - (x * t))) - (y * (i * j))
else if (b <= 0.0001d0) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
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 = (y * ((x * z) - (i * j))) + t_1;
double tmp;
if (b <= -2.2e-14) {
tmp = t_2;
} else if (b <= -8.2e-63) {
tmp = ((a * (c * j)) - (a * (x * t))) + t_1;
} else if (b <= -7.2e-89) {
tmp = (a * ((c * j) - (x * t))) - (y * (i * j));
} else if (b <= 0.0001) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} 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 = (y * ((x * z) - (i * j))) + t_1 tmp = 0 if b <= -2.2e-14: tmp = t_2 elif b <= -8.2e-63: tmp = ((a * (c * j)) - (a * (x * t))) + t_1 elif b <= -7.2e-89: tmp = (a * ((c * j) - (x * t))) - (y * (i * j)) elif b <= 0.0001: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) 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(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1) tmp = 0.0 if (b <= -2.2e-14) tmp = t_2; elseif (b <= -8.2e-63) tmp = Float64(Float64(Float64(a * Float64(c * j)) - Float64(a * Float64(x * t))) + t_1); elseif (b <= -7.2e-89) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(y * Float64(i * j))); elseif (b <= 0.0001) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); 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 = (y * ((x * z) - (i * j))) + t_1; tmp = 0.0; if (b <= -2.2e-14) tmp = t_2; elseif (b <= -8.2e-63) tmp = ((a * (c * j)) - (a * (x * t))) + t_1; elseif (b <= -7.2e-89) tmp = (a * ((c * j) - (x * t))) - (y * (i * j)); elseif (b <= 0.0001) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); 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[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[b, -2.2e-14], t$95$2, If[LessEqual[b, -8.2e-63], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -7.2e-89], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.0001], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + t_1\\
\mathbf{if}\;b \leq -2.2 \cdot 10^{-14}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-63}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t_1\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-89}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;b \leq 0.0001:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.2000000000000001e-14 or 1.00000000000000005e-4 < b Initial program 78.7%
associate-+l-78.7%
*-commutative78.7%
sub-neg78.7%
sub-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around 0 78.3%
sub-neg78.3%
+-commutative78.3%
mul-1-neg78.3%
cancel-sign-sub-inv78.3%
associate-*r*79.4%
associate-*r*79.4%
*-commutative79.4%
associate-*r*78.7%
distribute-rgt-in79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
*-commutative79.4%
mul-1-neg79.4%
Simplified79.4%
if -2.2000000000000001e-14 < b < -8.1999999999999995e-63Initial program 70.0%
associate-+l-70.0%
*-commutative70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in y around 0 76.6%
if -8.1999999999999995e-63 < b < -7.20000000000000014e-89Initial program 72.1%
associate-+l-72.1%
*-commutative72.1%
sub-neg72.1%
sub-neg72.1%
*-commutative72.1%
Simplified72.1%
Taylor expanded in b around 0 72.1%
Taylor expanded in z around 0 73.8%
+-commutative73.8%
sub-neg73.8%
+-commutative73.8%
distribute-rgt-in73.8%
associate-*r*73.8%
associate-+l+73.8%
distribute-lft-neg-out73.8%
associate-*r*87.3%
neg-mul-187.3%
*-commutative87.3%
associate-*r*87.3%
mul-1-neg87.3%
distribute-rgt-neg-in87.3%
distribute-lft-in87.3%
+-commutative87.3%
mul-1-neg87.3%
Simplified87.3%
if -7.20000000000000014e-89 < b < 1.00000000000000005e-4Initial program 72.2%
associate-+l-72.2%
*-commutative72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in b around 0 74.5%
Final simplification77.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -1e+99)
t_2
(if (<= b -1.2e-15)
(* z (- (* x y) (* b c)))
(if (<= b -5e-16)
(* b (* t i))
(if (<= b -2.5e-75)
t_1
(if (<= b -5.6e-129)
(* i (- (* t b) (* y j)))
(if (<= b -3e-248)
t_1
(if (<= b 1.35e-58)
(* x (- (* y z) (* t a)))
(if (<= b 1400000000000.0)
(* j (- (* a c) (* y i)))
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) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1e+99) {
tmp = t_2;
} else if (b <= -1.2e-15) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -5e-16) {
tmp = b * (t * i);
} else if (b <= -2.5e-75) {
tmp = t_1;
} else if (b <= -5.6e-129) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -3e-248) {
tmp = t_1;
} else if (b <= 1.35e-58) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1400000000000.0) {
tmp = j * ((a * c) - (y * i));
} 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) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-1d+99)) then
tmp = t_2
else if (b <= (-1.2d-15)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-5d-16)) then
tmp = b * (t * i)
else if (b <= (-2.5d-75)) then
tmp = t_1
else if (b <= (-5.6d-129)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-3d-248)) then
tmp = t_1
else if (b <= 1.35d-58) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1400000000000.0d0) then
tmp = j * ((a * c) - (y * i))
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) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1e+99) {
tmp = t_2;
} else if (b <= -1.2e-15) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -5e-16) {
tmp = b * (t * i);
} else if (b <= -2.5e-75) {
tmp = t_1;
} else if (b <= -5.6e-129) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -3e-248) {
tmp = t_1;
} else if (b <= 1.35e-58) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1400000000000.0) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1e+99: tmp = t_2 elif b <= -1.2e-15: tmp = z * ((x * y) - (b * c)) elif b <= -5e-16: tmp = b * (t * i) elif b <= -2.5e-75: tmp = t_1 elif b <= -5.6e-129: tmp = i * ((t * b) - (y * j)) elif b <= -3e-248: tmp = t_1 elif b <= 1.35e-58: tmp = x * ((y * z) - (t * a)) elif b <= 1400000000000.0: tmp = j * ((a * c) - (y * i)) else: tmp = t_2 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(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1e+99) tmp = t_2; elseif (b <= -1.2e-15) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -5e-16) tmp = Float64(b * Float64(t * i)); elseif (b <= -2.5e-75) tmp = t_1; elseif (b <= -5.6e-129) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -3e-248) tmp = t_1; elseif (b <= 1.35e-58) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1400000000000.0) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); 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) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1e+99) tmp = t_2; elseif (b <= -1.2e-15) tmp = z * ((x * y) - (b * c)); elseif (b <= -5e-16) tmp = b * (t * i); elseif (b <= -2.5e-75) tmp = t_1; elseif (b <= -5.6e-129) tmp = i * ((t * b) - (y * j)); elseif (b <= -3e-248) tmp = t_1; elseif (b <= 1.35e-58) tmp = x * ((y * z) - (t * a)); elseif (b <= 1400000000000.0) tmp = j * ((a * c) - (y * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e+99], t$95$2, If[LessEqual[b, -1.2e-15], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5e-16], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-75], t$95$1, If[LessEqual[b, -5.6e-129], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3e-248], t$95$1, If[LessEqual[b, 1.35e-58], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1400000000000.0], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+99}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-15}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -5 \cdot 10^{-16}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-129}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-248}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-58}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1400000000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -9.9999999999999997e98 or 1.4e12 < b Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in b around inf 69.1%
if -9.9999999999999997e98 < b < -1.19999999999999997e-15Initial program 58.3%
associate-+l-58.3%
*-commutative58.3%
sub-neg58.3%
sub-neg58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in z around inf 63.2%
*-commutative63.2%
*-commutative63.2%
Simplified63.2%
if -1.19999999999999997e-15 < b < -5.0000000000000004e-16Initial program 100.0%
associate-+l-100.0%
*-commutative100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around inf 100.0%
distribute-lft-out--100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in a around 0 100.0%
neg-mul-1100.0%
distribute-lft-neg-in100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in t around 0 100.0%
if -5.0000000000000004e-16 < b < -2.49999999999999989e-75 or -5.5999999999999998e-129 < b < -3.00000000000000014e-248Initial program 74.9%
associate-+l-74.9%
*-commutative74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in a around inf 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
*-commutative72.4%
Simplified72.4%
if -2.49999999999999989e-75 < b < -5.5999999999999998e-129Initial program 64.5%
associate-+l-64.5%
*-commutative64.5%
sub-neg64.5%
sub-neg64.5%
*-commutative64.5%
Simplified64.5%
add-cube-cbrt64.5%
pow364.5%
Applied egg-rr64.5%
Taylor expanded in y around 0 74.2%
pow-base-174.2%
associate-*r*74.2%
*-lft-identity74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in i around inf 73.3%
associate-*r*73.3%
neg-mul-173.3%
cancel-sign-sub73.3%
+-commutative73.3%
mul-1-neg73.3%
sub-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
if -3.00000000000000014e-248 < b < 1.3499999999999999e-58Initial program 71.8%
associate-+l-71.8%
*-commutative71.8%
sub-neg71.8%
sub-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 65.4%
if 1.3499999999999999e-58 < b < 1.4e12Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in j around inf 70.3%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (* x z)) (* b (- (* t i) (* z c)))))
(t_2 (- (* a (- (* c j) (* x t))) (* y (* i j)))))
(if (<= b -1e-17)
t_1
(if (<= b -1.5e-247)
t_2
(if (<= b 1.5e-107)
(* x (- (* y z) (* t a)))
(if (<= b 5.4e+18) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = (a * ((c * j) - (x * t))) - (y * (i * j));
double tmp;
if (b <= -1e-17) {
tmp = t_1;
} else if (b <= -1.5e-247) {
tmp = t_2;
} else if (b <= 1.5e-107) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 5.4e+18) {
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 = (y * (x * z)) + (b * ((t * i) - (z * c)))
t_2 = (a * ((c * j) - (x * t))) - (y * (i * j))
if (b <= (-1d-17)) then
tmp = t_1
else if (b <= (-1.5d-247)) then
tmp = t_2
else if (b <= 1.5d-107) then
tmp = x * ((y * z) - (t * a))
else if (b <= 5.4d+18) 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 = (y * (x * z)) + (b * ((t * i) - (z * c)));
double t_2 = (a * ((c * j) - (x * t))) - (y * (i * j));
double tmp;
if (b <= -1e-17) {
tmp = t_1;
} else if (b <= -1.5e-247) {
tmp = t_2;
} else if (b <= 1.5e-107) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 5.4e+18) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * (x * z)) + (b * ((t * i) - (z * c))) t_2 = (a * ((c * j) - (x * t))) - (y * (i * j)) tmp = 0 if b <= -1e-17: tmp = t_1 elif b <= -1.5e-247: tmp = t_2 elif b <= 1.5e-107: tmp = x * ((y * z) - (t * a)) elif b <= 5.4e+18: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(y * Float64(i * j))) tmp = 0.0 if (b <= -1e-17) tmp = t_1; elseif (b <= -1.5e-247) tmp = t_2; elseif (b <= 1.5e-107) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 5.4e+18) 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 = (y * (x * z)) + (b * ((t * i) - (z * c))); t_2 = (a * ((c * j) - (x * t))) - (y * (i * j)); tmp = 0.0; if (b <= -1e-17) tmp = t_1; elseif (b <= -1.5e-247) tmp = t_2; elseif (b <= 1.5e-107) tmp = x * ((y * z) - (t * a)); elseif (b <= 5.4e+18) 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[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e-17], t$95$1, If[LessEqual[b, -1.5e-247], t$95$2, If[LessEqual[b, 1.5e-107], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.4e+18], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-247}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-107}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+18}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.00000000000000007e-17 or 5.4e18 < b Initial program 78.4%
associate-+l-78.4%
*-commutative78.4%
sub-neg78.4%
sub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in a around 0 78.1%
sub-neg78.1%
+-commutative78.1%
mul-1-neg78.1%
cancel-sign-sub-inv78.1%
associate-*r*78.5%
associate-*r*78.5%
*-commutative78.5%
associate-*r*78.5%
distribute-rgt-in79.2%
+-commutative79.2%
mul-1-neg79.2%
unsub-neg79.2%
*-commutative79.2%
*-commutative79.2%
mul-1-neg79.2%
Simplified79.2%
Taylor expanded in z around inf 74.3%
*-commutative74.3%
Simplified74.3%
if -1.00000000000000007e-17 < b < -1.4999999999999999e-247 or 1.4999999999999999e-107 < b < 5.4e18Initial program 71.6%
associate-+l-71.6%
*-commutative71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in b around 0 68.7%
Taylor expanded in z around 0 69.3%
+-commutative69.3%
sub-neg69.3%
+-commutative69.3%
distribute-rgt-in68.0%
associate-*r*67.9%
associate-+l+67.9%
distribute-lft-neg-out67.9%
associate-*r*69.5%
neg-mul-169.5%
*-commutative69.5%
associate-*r*69.5%
mul-1-neg69.5%
distribute-rgt-neg-in69.5%
distribute-lft-in75.0%
+-commutative75.0%
mul-1-neg75.0%
Simplified73.3%
if -1.4999999999999999e-247 < b < 1.4999999999999999e-107Initial program 73.9%
associate-+l-73.9%
*-commutative73.9%
sub-neg73.9%
sub-neg73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in x around inf 64.5%
Final simplification72.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -850.0) (not (<= b 1.6e+26))) (+ (* y (* x z)) (* b (- (* t i) (* z c)))) (+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y 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 <= -850.0) || !(b <= 1.6e+26)) {
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * 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 <= (-850.0d0)) .or. (.not. (b <= 1.6d+26))) then
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * 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 <= -850.0) || !(b <= 1.6e+26)) {
tmp = (y * (x * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -850.0) or not (b <= 1.6e+26): tmp = (y * (x * z)) + (b * ((t * i) - (z * c))) else: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -850.0) || !(b <= 1.6e+26)) tmp = Float64(Float64(y * Float64(x * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -850.0) || ~((b <= 1.6e+26))) tmp = (y * (x * z)) + (b * ((t * i) - (z * c))); else tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -850.0], N[Not[LessEqual[b, 1.6e+26]], $MachinePrecision]], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -850 \lor \neg \left(b \leq 1.6 \cdot 10^{+26}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -850 or 1.60000000000000014e26 < b Initial program 79.7%
associate-+l-79.7%
*-commutative79.7%
sub-neg79.7%
sub-neg79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in a around 0 80.0%
sub-neg80.0%
+-commutative80.0%
mul-1-neg80.0%
cancel-sign-sub-inv80.0%
associate-*r*80.0%
associate-*r*80.0%
*-commutative80.0%
associate-*r*80.7%
distribute-rgt-in80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
*-commutative80.7%
mul-1-neg80.7%
Simplified80.7%
Taylor expanded in z around inf 76.8%
*-commutative76.8%
Simplified76.8%
if -850 < b < 1.60000000000000014e26Initial program 71.8%
associate-+l-71.8%
*-commutative71.8%
sub-neg71.8%
sub-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in b around 0 69.9%
Final simplification73.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -8e-5) (not (<= b 4.1e-5))) (+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c)))) (+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y 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 <= -8e-5) || !(b <= 4.1e-5)) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * 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 <= (-8d-5)) .or. (.not. (b <= 4.1d-5))) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * 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 <= -8e-5) || !(b <= 4.1e-5)) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -8e-5) or not (b <= 4.1e-5): tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) else: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -8e-5) || !(b <= 4.1e-5)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -8e-5) || ~((b <= 4.1e-5))) tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); else tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8e-5], N[Not[LessEqual[b, 4.1e-5]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{-5} \lor \neg \left(b \leq 4.1 \cdot 10^{-5}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -8.00000000000000065e-5 or 4.10000000000000005e-5 < b Initial program 78.9%
associate-+l-78.9%
*-commutative78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in a around 0 78.5%
sub-neg78.5%
+-commutative78.5%
mul-1-neg78.5%
cancel-sign-sub-inv78.5%
associate-*r*79.6%
associate-*r*79.6%
*-commutative79.6%
associate-*r*78.9%
distribute-rgt-in79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
*-commutative79.7%
*-commutative79.7%
mul-1-neg79.7%
Simplified79.7%
if -8.00000000000000065e-5 < b < 4.10000000000000005e-5Initial program 71.9%
associate-+l-71.9%
*-commutative71.9%
sub-neg71.9%
sub-neg71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around 0 71.4%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* a (* x (- t)))))
(if (<= i -1.25e+273)
t_1
(if (<= i -3.4e+172)
(* b (* t i))
(if (<= i -4.5e+59)
t_1
(if (<= i -1.96e-44)
t_2
(if (<= i -9e-151)
(* t (* b i))
(if (<= i 7.3e-152)
t_2
(if (<= i 4.5e-81)
(* x (* y z))
(if (<= i 1.95e+139) (* x (* t (- 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 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (i <= -1.25e+273) {
tmp = t_1;
} else if (i <= -3.4e+172) {
tmp = b * (t * i);
} else if (i <= -4.5e+59) {
tmp = t_1;
} else if (i <= -1.96e-44) {
tmp = t_2;
} else if (i <= -9e-151) {
tmp = t * (b * i);
} else if (i <= 7.3e-152) {
tmp = t_2;
} else if (i <= 4.5e-81) {
tmp = x * (y * z);
} else if (i <= 1.95e+139) {
tmp = x * (t * -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) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = a * (x * -t)
if (i <= (-1.25d+273)) then
tmp = t_1
else if (i <= (-3.4d+172)) then
tmp = b * (t * i)
else if (i <= (-4.5d+59)) then
tmp = t_1
else if (i <= (-1.96d-44)) then
tmp = t_2
else if (i <= (-9d-151)) then
tmp = t * (b * i)
else if (i <= 7.3d-152) then
tmp = t_2
else if (i <= 4.5d-81) then
tmp = x * (y * z)
else if (i <= 1.95d+139) then
tmp = x * (t * -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 = i * (y * -j);
double t_2 = a * (x * -t);
double tmp;
if (i <= -1.25e+273) {
tmp = t_1;
} else if (i <= -3.4e+172) {
tmp = b * (t * i);
} else if (i <= -4.5e+59) {
tmp = t_1;
} else if (i <= -1.96e-44) {
tmp = t_2;
} else if (i <= -9e-151) {
tmp = t * (b * i);
} else if (i <= 7.3e-152) {
tmp = t_2;
} else if (i <= 4.5e-81) {
tmp = x * (y * z);
} else if (i <= 1.95e+139) {
tmp = x * (t * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = a * (x * -t) tmp = 0 if i <= -1.25e+273: tmp = t_1 elif i <= -3.4e+172: tmp = b * (t * i) elif i <= -4.5e+59: tmp = t_1 elif i <= -1.96e-44: tmp = t_2 elif i <= -9e-151: tmp = t * (b * i) elif i <= 7.3e-152: tmp = t_2 elif i <= 4.5e-81: tmp = x * (y * z) elif i <= 1.95e+139: tmp = x * (t * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(a * Float64(x * Float64(-t))) tmp = 0.0 if (i <= -1.25e+273) tmp = t_1; elseif (i <= -3.4e+172) tmp = Float64(b * Float64(t * i)); elseif (i <= -4.5e+59) tmp = t_1; elseif (i <= -1.96e-44) tmp = t_2; elseif (i <= -9e-151) tmp = Float64(t * Float64(b * i)); elseif (i <= 7.3e-152) tmp = t_2; elseif (i <= 4.5e-81) tmp = Float64(x * Float64(y * z)); elseif (i <= 1.95e+139) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = a * (x * -t); tmp = 0.0; if (i <= -1.25e+273) tmp = t_1; elseif (i <= -3.4e+172) tmp = b * (t * i); elseif (i <= -4.5e+59) tmp = t_1; elseif (i <= -1.96e-44) tmp = t_2; elseif (i <= -9e-151) tmp = t * (b * i); elseif (i <= 7.3e-152) tmp = t_2; elseif (i <= 4.5e-81) tmp = x * (y * z); elseif (i <= 1.95e+139) tmp = x * (t * -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[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.25e+273], t$95$1, If[LessEqual[i, -3.4e+172], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.5e+59], t$95$1, If[LessEqual[i, -1.96e-44], t$95$2, If[LessEqual[i, -9e-151], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.3e-152], t$95$2, If[LessEqual[i, 4.5e-81], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.95e+139], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;i \leq -1.25 \cdot 10^{+273}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -3.4 \cdot 10^{+172}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{+59}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.96 \cdot 10^{-44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-151}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 7.3 \cdot 10^{-152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 4.5 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 1.95 \cdot 10^{+139}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.2499999999999999e273 or -3.3999999999999998e172 < i < -4.49999999999999959e59 or 1.95000000000000003e139 < i Initial program 57.5%
associate-+l-57.5%
*-commutative57.5%
sub-neg57.5%
sub-neg57.5%
*-commutative57.5%
Simplified57.5%
add-cube-cbrt57.4%
pow357.4%
Applied egg-rr57.4%
Taylor expanded in i around inf 53.1%
mul-1-neg53.1%
distribute-rgt-neg-in53.1%
*-commutative53.1%
distribute-rgt-neg-in53.1%
Simplified53.1%
if -1.2499999999999999e273 < i < -3.3999999999999998e172Initial program 79.1%
associate-+l-79.1%
*-commutative79.1%
sub-neg79.1%
sub-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in t around inf 64.4%
distribute-lft-out--64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in a around 0 54.0%
neg-mul-154.0%
distribute-lft-neg-in54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in t around 0 58.8%
if -4.49999999999999959e59 < i < -1.9599999999999999e-44 or -9.0000000000000005e-151 < i < 7.29999999999999982e-152Initial program 84.8%
associate-+l-84.8%
*-commutative84.8%
sub-neg84.8%
sub-neg84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in a around inf 45.8%
+-commutative45.8%
mul-1-neg45.8%
unsub-neg45.8%
*-commutative45.8%
Simplified45.8%
Taylor expanded in j around 0 37.1%
associate-*r*37.1%
neg-mul-137.1%
*-commutative37.1%
Simplified37.1%
if -1.9599999999999999e-44 < i < -9.0000000000000005e-151Initial program 88.3%
associate-+l-88.3%
*-commutative88.3%
sub-neg88.3%
sub-neg88.3%
*-commutative88.3%
Simplified88.3%
Taylor expanded in i around inf 38.5%
distribute-lft-out--38.5%
Simplified38.5%
Taylor expanded in i around 0 38.5%
mul-1-neg38.5%
distribute-rgt-neg-in38.5%
Simplified38.5%
Taylor expanded in j around 0 31.0%
associate-*r*32.0%
*-commutative32.0%
Simplified32.0%
if 7.29999999999999982e-152 < i < 4.5e-81Initial program 94.5%
associate-+l-94.5%
*-commutative94.5%
sub-neg94.5%
sub-neg94.5%
*-commutative94.5%
Simplified94.5%
Taylor expanded in x around inf 62.2%
Taylor expanded in y around inf 57.1%
if 4.5e-81 < i < 1.95000000000000003e139Initial program 64.7%
associate-+l-64.7%
*-commutative64.7%
sub-neg64.7%
sub-neg64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in x around inf 44.8%
Taylor expanded in y around 0 37.0%
neg-mul-137.0%
distribute-rgt-neg-in37.0%
Simplified37.0%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (* z (- c)))))
(if (<= b -4.3e+49)
t_2
(if (<= b -5.5e-78)
t_1
(if (<= b -5.6e-129)
(* i (* y (- j)))
(if (<= b -5.6e-236)
t_1
(if (<= b 5.5e-299)
(* x (* y z))
(if (<= b 3.5e+37)
t_1
(if (<= b 4.1e+226)
t_2
(if (<= b 3.6e+293) (* i (* t b)) (* x (* t (- a)))))))))))))
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 = b * (z * -c);
double tmp;
if (b <= -4.3e+49) {
tmp = t_2;
} else if (b <= -5.5e-78) {
tmp = t_1;
} else if (b <= -5.6e-129) {
tmp = i * (y * -j);
} else if (b <= -5.6e-236) {
tmp = t_1;
} else if (b <= 5.5e-299) {
tmp = x * (y * z);
} else if (b <= 3.5e+37) {
tmp = t_1;
} else if (b <= 4.1e+226) {
tmp = t_2;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = x * (t * -a);
}
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 = b * (z * -c)
if (b <= (-4.3d+49)) then
tmp = t_2
else if (b <= (-5.5d-78)) then
tmp = t_1
else if (b <= (-5.6d-129)) then
tmp = i * (y * -j)
else if (b <= (-5.6d-236)) then
tmp = t_1
else if (b <= 5.5d-299) then
tmp = x * (y * z)
else if (b <= 3.5d+37) then
tmp = t_1
else if (b <= 4.1d+226) then
tmp = t_2
else if (b <= 3.6d+293) then
tmp = i * (t * b)
else
tmp = x * (t * -a)
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 = b * (z * -c);
double tmp;
if (b <= -4.3e+49) {
tmp = t_2;
} else if (b <= -5.5e-78) {
tmp = t_1;
} else if (b <= -5.6e-129) {
tmp = i * (y * -j);
} else if (b <= -5.6e-236) {
tmp = t_1;
} else if (b <= 5.5e-299) {
tmp = x * (y * z);
} else if (b <= 3.5e+37) {
tmp = t_1;
} else if (b <= 4.1e+226) {
tmp = t_2;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = b * (z * -c) tmp = 0 if b <= -4.3e+49: tmp = t_2 elif b <= -5.5e-78: tmp = t_1 elif b <= -5.6e-129: tmp = i * (y * -j) elif b <= -5.6e-236: tmp = t_1 elif b <= 5.5e-299: tmp = x * (y * z) elif b <= 3.5e+37: tmp = t_1 elif b <= 4.1e+226: tmp = t_2 elif b <= 3.6e+293: tmp = i * (t * b) else: tmp = x * (t * -a) 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(b * Float64(z * Float64(-c))) tmp = 0.0 if (b <= -4.3e+49) tmp = t_2; elseif (b <= -5.5e-78) tmp = t_1; elseif (b <= -5.6e-129) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= -5.6e-236) tmp = t_1; elseif (b <= 5.5e-299) tmp = Float64(x * Float64(y * z)); elseif (b <= 3.5e+37) tmp = t_1; elseif (b <= 4.1e+226) tmp = t_2; elseif (b <= 3.6e+293) tmp = Float64(i * Float64(t * b)); else tmp = Float64(x * Float64(t * Float64(-a))); 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 = b * (z * -c); tmp = 0.0; if (b <= -4.3e+49) tmp = t_2; elseif (b <= -5.5e-78) tmp = t_1; elseif (b <= -5.6e-129) tmp = i * (y * -j); elseif (b <= -5.6e-236) tmp = t_1; elseif (b <= 5.5e-299) tmp = x * (y * z); elseif (b <= 3.5e+37) tmp = t_1; elseif (b <= 4.1e+226) tmp = t_2; elseif (b <= 3.6e+293) tmp = i * (t * b); else tmp = x * (t * -a); 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[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.3e+49], t$95$2, If[LessEqual[b, -5.5e-78], t$95$1, If[LessEqual[b, -5.6e-129], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.6e-236], t$95$1, If[LessEqual[b, 5.5e-299], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e+37], t$95$1, If[LessEqual[b, 4.1e+226], t$95$2, If[LessEqual[b, 3.6e+293], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -4.3 \cdot 10^{+49}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-129}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-299}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{+37}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{+226}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+293}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if b < -4.2999999999999999e49 or 3.5e37 < b < 4.09999999999999985e226Initial program 81.8%
associate-+l-81.8%
*-commutative81.8%
sub-neg81.8%
sub-neg81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in a around 0 79.9%
Taylor expanded in c around inf 49.5%
associate-*r*49.5%
neg-mul-149.5%
Simplified49.5%
if -4.2999999999999999e49 < b < -5.50000000000000017e-78 or -5.5999999999999998e-129 < b < -5.59999999999999973e-236 or 5.5e-299 < b < 3.5e37Initial program 74.2%
associate-+l-74.2%
*-commutative74.2%
sub-neg74.2%
sub-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in a around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
if -5.50000000000000017e-78 < b < -5.5999999999999998e-129Initial program 64.5%
associate-+l-64.5%
*-commutative64.5%
sub-neg64.5%
sub-neg64.5%
*-commutative64.5%
Simplified64.5%
add-cube-cbrt64.5%
pow364.5%
Applied egg-rr64.5%
Taylor expanded in i around inf 72.9%
mul-1-neg72.9%
distribute-rgt-neg-in72.9%
*-commutative72.9%
distribute-rgt-neg-in72.9%
Simplified72.9%
if -5.59999999999999973e-236 < b < 5.5e-299Initial program 62.4%
associate-+l-62.4%
*-commutative62.4%
sub-neg62.4%
sub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in x around inf 67.6%
Taylor expanded in y around inf 62.8%
if 4.09999999999999985e226 < b < 3.59999999999999987e293Initial program 82.4%
associate-+l-82.4%
*-commutative82.4%
sub-neg82.4%
sub-neg82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in i around inf 70.8%
distribute-lft-out--70.8%
Simplified70.8%
Taylor expanded in i around 0 70.8%
mul-1-neg70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
Taylor expanded in j around 0 54.2%
*-commutative54.2%
associate-*l*70.8%
Simplified70.8%
if 3.59999999999999987e293 < b Initial program 33.3%
associate-+l-33.3%
*-commutative33.3%
sub-neg33.3%
sub-neg33.3%
*-commutative33.3%
Simplified33.3%
Taylor expanded in x around inf 68.0%
Taylor expanded in y around 0 67.5%
neg-mul-167.5%
distribute-rgt-neg-in67.5%
Simplified67.5%
Final simplification54.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))) (t_2 (* b (* z (- c)))))
(if (<= b -5.5e+21)
t_2
(if (<= b -1.9e-151)
(* i (* y (- j)))
(if (<= b -2.9e-228)
(* a (* c j))
(if (<= b 8.8e-181)
(* x (* y z))
(if (<= b 780000000000.0)
t_1
(if (<= b 6.5e+225)
t_2
(if (<= b 3.6e+293) (* i (* t b)) t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double t_2 = b * (z * -c);
double tmp;
if (b <= -5.5e+21) {
tmp = t_2;
} else if (b <= -1.9e-151) {
tmp = i * (y * -j);
} else if (b <= -2.9e-228) {
tmp = a * (c * j);
} else if (b <= 8.8e-181) {
tmp = x * (y * z);
} else if (b <= 780000000000.0) {
tmp = t_1;
} else if (b <= 6.5e+225) {
tmp = t_2;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (t * -a)
t_2 = b * (z * -c)
if (b <= (-5.5d+21)) then
tmp = t_2
else if (b <= (-1.9d-151)) then
tmp = i * (y * -j)
else if (b <= (-2.9d-228)) then
tmp = a * (c * j)
else if (b <= 8.8d-181) then
tmp = x * (y * z)
else if (b <= 780000000000.0d0) then
tmp = t_1
else if (b <= 6.5d+225) then
tmp = t_2
else if (b <= 3.6d+293) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double t_2 = b * (z * -c);
double tmp;
if (b <= -5.5e+21) {
tmp = t_2;
} else if (b <= -1.9e-151) {
tmp = i * (y * -j);
} else if (b <= -2.9e-228) {
tmp = a * (c * j);
} else if (b <= 8.8e-181) {
tmp = x * (y * z);
} else if (b <= 780000000000.0) {
tmp = t_1;
} else if (b <= 6.5e+225) {
tmp = t_2;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) t_2 = b * (z * -c) tmp = 0 if b <= -5.5e+21: tmp = t_2 elif b <= -1.9e-151: tmp = i * (y * -j) elif b <= -2.9e-228: tmp = a * (c * j) elif b <= 8.8e-181: tmp = x * (y * z) elif b <= 780000000000.0: tmp = t_1 elif b <= 6.5e+225: tmp = t_2 elif b <= 3.6e+293: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) t_2 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (b <= -5.5e+21) tmp = t_2; elseif (b <= -1.9e-151) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= -2.9e-228) tmp = Float64(a * Float64(c * j)); elseif (b <= 8.8e-181) tmp = Float64(x * Float64(y * z)); elseif (b <= 780000000000.0) tmp = t_1; elseif (b <= 6.5e+225) tmp = t_2; elseif (b <= 3.6e+293) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (t * -a); t_2 = b * (z * -c); tmp = 0.0; if (b <= -5.5e+21) tmp = t_2; elseif (b <= -1.9e-151) tmp = i * (y * -j); elseif (b <= -2.9e-228) tmp = a * (c * j); elseif (b <= 8.8e-181) tmp = x * (y * z); elseif (b <= 780000000000.0) tmp = t_1; elseif (b <= 6.5e+225) tmp = t_2; elseif (b <= 3.6e+293) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e+21], t$95$2, If[LessEqual[b, -1.9e-151], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e-228], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.8e-181], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 780000000000.0], t$95$1, If[LessEqual[b, 6.5e+225], t$95$2, If[LessEqual[b, 3.6e+293], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
t_2 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -5.5 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-151}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-181}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 780000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{+225}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+293}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5.5e21 or 7.8e11 < b < 6.5000000000000006e225Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in a around 0 77.8%
Taylor expanded in c around inf 46.5%
associate-*r*46.5%
neg-mul-146.5%
Simplified46.5%
if -5.5e21 < b < -1.89999999999999985e-151Initial program 65.6%
associate-+l-65.6%
*-commutative65.6%
sub-neg65.6%
sub-neg65.6%
*-commutative65.6%
Simplified65.6%
add-cube-cbrt65.4%
pow365.4%
Applied egg-rr65.4%
Taylor expanded in i around inf 36.9%
mul-1-neg36.9%
distribute-rgt-neg-in36.9%
*-commutative36.9%
distribute-rgt-neg-in36.9%
Simplified36.9%
if -1.89999999999999985e-151 < b < -2.9000000000000001e-228Initial program 74.1%
associate-+l-74.1%
*-commutative74.1%
sub-neg74.1%
sub-neg74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 61.1%
*-commutative61.1%
Simplified61.1%
if -2.9000000000000001e-228 < b < 8.79999999999999988e-181Initial program 72.7%
associate-+l-72.7%
*-commutative72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in x around inf 59.5%
Taylor expanded in y around inf 43.8%
if 8.79999999999999988e-181 < b < 7.8e11 or 3.59999999999999987e293 < b Initial program 70.9%
associate-+l-70.9%
*-commutative70.9%
sub-neg70.9%
sub-neg70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in x around inf 57.7%
Taylor expanded in y around 0 46.1%
neg-mul-146.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if 6.5000000000000006e225 < b < 3.59999999999999987e293Initial program 82.4%
associate-+l-82.4%
*-commutative82.4%
sub-neg82.4%
sub-neg82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in i around inf 70.8%
distribute-lft-out--70.8%
Simplified70.8%
Taylor expanded in i around 0 70.8%
mul-1-neg70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
Taylor expanded in j around 0 54.2%
*-commutative54.2%
associate-*l*70.8%
Simplified70.8%
Final simplification47.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= b -7.2e+18)
t_1
(if (<= b -4.2e-152)
(* i (* y (- j)))
(if (<= b -1.55e-227)
(* a (* c j))
(if (<= b 2.3e-296)
(* x (* y z))
(if (<= b 270000000000.0)
(* t (* a (- x)))
(if (<= b 2.45e+225)
t_1
(if (<= b 3.6e+293) (* i (* t b)) (* x (* t (- a))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (b <= -7.2e+18) {
tmp = t_1;
} else if (b <= -4.2e-152) {
tmp = i * (y * -j);
} else if (b <= -1.55e-227) {
tmp = a * (c * j);
} else if (b <= 2.3e-296) {
tmp = x * (y * z);
} else if (b <= 270000000000.0) {
tmp = t * (a * -x);
} else if (b <= 2.45e+225) {
tmp = t_1;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = x * (t * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (z * -c)
if (b <= (-7.2d+18)) then
tmp = t_1
else if (b <= (-4.2d-152)) then
tmp = i * (y * -j)
else if (b <= (-1.55d-227)) then
tmp = a * (c * j)
else if (b <= 2.3d-296) then
tmp = x * (y * z)
else if (b <= 270000000000.0d0) then
tmp = t * (a * -x)
else if (b <= 2.45d+225) then
tmp = t_1
else if (b <= 3.6d+293) then
tmp = i * (t * b)
else
tmp = x * (t * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (b <= -7.2e+18) {
tmp = t_1;
} else if (b <= -4.2e-152) {
tmp = i * (y * -j);
} else if (b <= -1.55e-227) {
tmp = a * (c * j);
} else if (b <= 2.3e-296) {
tmp = x * (y * z);
} else if (b <= 270000000000.0) {
tmp = t * (a * -x);
} else if (b <= 2.45e+225) {
tmp = t_1;
} else if (b <= 3.6e+293) {
tmp = i * (t * b);
} else {
tmp = x * (t * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if b <= -7.2e+18: tmp = t_1 elif b <= -4.2e-152: tmp = i * (y * -j) elif b <= -1.55e-227: tmp = a * (c * j) elif b <= 2.3e-296: tmp = x * (y * z) elif b <= 270000000000.0: tmp = t * (a * -x) elif b <= 2.45e+225: tmp = t_1 elif b <= 3.6e+293: tmp = i * (t * b) else: tmp = x * (t * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (b <= -7.2e+18) tmp = t_1; elseif (b <= -4.2e-152) tmp = Float64(i * Float64(y * Float64(-j))); elseif (b <= -1.55e-227) tmp = Float64(a * Float64(c * j)); elseif (b <= 2.3e-296) tmp = Float64(x * Float64(y * z)); elseif (b <= 270000000000.0) tmp = Float64(t * Float64(a * Float64(-x))); elseif (b <= 2.45e+225) tmp = t_1; elseif (b <= 3.6e+293) tmp = Float64(i * Float64(t * b)); else tmp = Float64(x * Float64(t * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); tmp = 0.0; if (b <= -7.2e+18) tmp = t_1; elseif (b <= -4.2e-152) tmp = i * (y * -j); elseif (b <= -1.55e-227) tmp = a * (c * j); elseif (b <= 2.3e-296) tmp = x * (y * z); elseif (b <= 270000000000.0) tmp = t * (a * -x); elseif (b <= 2.45e+225) tmp = t_1; elseif (b <= 3.6e+293) tmp = i * (t * b); else tmp = x * (t * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+18], t$95$1, If[LessEqual[b, -4.2e-152], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.55e-227], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-296], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 270000000000.0], N[(t * N[(a * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.45e+225], t$95$1, If[LessEqual[b, 3.6e+293], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-152}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-227}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-296}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 270000000000:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 2.45 \cdot 10^{+225}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.6 \cdot 10^{+293}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if b < -7.2e18 or 2.7e11 < b < 2.45000000000000016e225Initial program 81.2%
associate-+l-81.2%
*-commutative81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in a around 0 77.8%
Taylor expanded in c around inf 46.5%
associate-*r*46.5%
neg-mul-146.5%
Simplified46.5%
if -7.2e18 < b < -4.19999999999999998e-152Initial program 65.6%
associate-+l-65.6%
*-commutative65.6%
sub-neg65.6%
sub-neg65.6%
*-commutative65.6%
Simplified65.6%
add-cube-cbrt65.4%
pow365.4%
Applied egg-rr65.4%
Taylor expanded in i around inf 36.9%
mul-1-neg36.9%
distribute-rgt-neg-in36.9%
*-commutative36.9%
distribute-rgt-neg-in36.9%
Simplified36.9%
if -4.19999999999999998e-152 < b < -1.5499999999999999e-227Initial program 74.1%
associate-+l-74.1%
*-commutative74.1%
sub-neg74.1%
sub-neg74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 61.1%
*-commutative61.1%
Simplified61.1%
if -1.5499999999999999e-227 < b < 2.30000000000000004e-296Initial program 65.7%
associate-+l-65.7%
*-commutative65.7%
sub-neg65.7%
sub-neg65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in x around inf 70.5%
Taylor expanded in y around inf 58.3%
if 2.30000000000000004e-296 < b < 2.7e11Initial program 76.5%
associate-+l-76.5%
*-commutative76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in t around inf 48.1%
distribute-lft-out--48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in a around inf 42.4%
if 2.45000000000000016e225 < b < 3.59999999999999987e293Initial program 82.4%
associate-+l-82.4%
*-commutative82.4%
sub-neg82.4%
sub-neg82.4%
*-commutative82.4%
Simplified82.4%
Taylor expanded in i around inf 70.8%
distribute-lft-out--70.8%
Simplified70.8%
Taylor expanded in i around 0 70.8%
mul-1-neg70.8%
distribute-rgt-neg-in70.8%
Simplified70.8%
Taylor expanded in j around 0 54.2%
*-commutative54.2%
associate-*l*70.8%
Simplified70.8%
if 3.59999999999999987e293 < b Initial program 33.3%
associate-+l-33.3%
*-commutative33.3%
sub-neg33.3%
sub-neg33.3%
*-commutative33.3%
Simplified33.3%
Taylor expanded in x around inf 68.0%
Taylor expanded in y around 0 67.5%
neg-mul-167.5%
distribute-rgt-neg-in67.5%
Simplified67.5%
Final simplification48.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -4.2e-17)
t_2
(if (<= b -5.8e-236)
t_1
(if (<= b 5.5e-299) (* x (* y z)) (if (<= b 5200000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.2e-17) {
tmp = t_2;
} else if (b <= -5.8e-236) {
tmp = t_1;
} else if (b <= 5.5e-299) {
tmp = x * (y * z);
} else if (b <= 5200000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = b * ((t * i) - (z * c))
if (b <= (-4.2d-17)) then
tmp = t_2
else if (b <= (-5.8d-236)) then
tmp = t_1
else if (b <= 5.5d-299) then
tmp = x * (y * z)
else if (b <= 5200000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.2e-17) {
tmp = t_2;
} else if (b <= -5.8e-236) {
tmp = t_1;
} else if (b <= 5.5e-299) {
tmp = x * (y * z);
} else if (b <= 5200000000.0) {
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) - (x * t)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.2e-17: tmp = t_2 elif b <= -5.8e-236: tmp = t_1 elif b <= 5.5e-299: tmp = x * (y * z) elif b <= 5200000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.2e-17) tmp = t_2; elseif (b <= -5.8e-236) tmp = t_1; elseif (b <= 5.5e-299) tmp = Float64(x * Float64(y * z)); elseif (b <= 5200000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.2e-17) tmp = t_2; elseif (b <= -5.8e-236) tmp = t_1; elseif (b <= 5.5e-299) tmp = x * (y * z); elseif (b <= 5200000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.2e-17], t$95$2, If[LessEqual[b, -5.8e-236], t$95$1, If[LessEqual[b, 5.5e-299], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5200000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.2 \cdot 10^{-17}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-299}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 5200000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.19999999999999984e-17 or 5.2e9 < b Initial program 78.2%
associate-+l-78.2%
*-commutative78.2%
sub-neg78.2%
sub-neg78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in b around inf 65.1%
if -4.19999999999999984e-17 < b < -5.8e-236 or 5.5e-299 < b < 5.2e9Initial program 74.9%
associate-+l-74.9%
*-commutative74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in a around inf 54.0%
+-commutative54.0%
mul-1-neg54.0%
unsub-neg54.0%
*-commutative54.0%
Simplified54.0%
if -5.8e-236 < b < 5.5e-299Initial program 62.4%
associate-+l-62.4%
*-commutative62.4%
sub-neg62.4%
sub-neg62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in x around inf 67.6%
Taylor expanded in y around inf 62.8%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1.82e-16)
t_1
(if (<= b -9.6e-247)
(* a (- (* c j) (* x t)))
(if (<= b 8.5e-60)
(* x (- (* y z) (* t a)))
(if (<= b 23000000000.0) (* j (- (* a c) (* y i))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.82e-16) {
tmp = t_1;
} else if (b <= -9.6e-247) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 8.5e-60) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 23000000000.0) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-1.82d-16)) then
tmp = t_1
else if (b <= (-9.6d-247)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 8.5d-60) then
tmp = x * ((y * z) - (t * a))
else if (b <= 23000000000.0d0) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1.82e-16) {
tmp = t_1;
} else if (b <= -9.6e-247) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 8.5e-60) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 23000000000.0) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1.82e-16: tmp = t_1 elif b <= -9.6e-247: tmp = a * ((c * j) - (x * t)) elif b <= 8.5e-60: tmp = x * ((y * z) - (t * a)) elif b <= 23000000000.0: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.82e-16) tmp = t_1; elseif (b <= -9.6e-247) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 8.5e-60) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 23000000000.0) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1.82e-16) tmp = t_1; elseif (b <= -9.6e-247) tmp = a * ((c * j) - (x * t)); elseif (b <= 8.5e-60) tmp = x * ((y * z) - (t * a)); elseif (b <= 23000000000.0) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.82e-16], t$95$1, If[LessEqual[b, -9.6e-247], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e-60], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 23000000000.0], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.82 \cdot 10^{-16}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -9.6 \cdot 10^{-247}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{-60}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 23000000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -1.82e-16 or 2.3e10 < b Initial program 78.2%
associate-+l-78.2%
*-commutative78.2%
sub-neg78.2%
sub-neg78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in b around inf 65.1%
if -1.82e-16 < b < -9.60000000000000044e-247Initial program 72.4%
associate-+l-72.4%
*-commutative72.4%
sub-neg72.4%
sub-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in a around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
*-commutative60.1%
Simplified60.1%
if -9.60000000000000044e-247 < b < 8.50000000000000044e-60Initial program 71.8%
associate-+l-71.8%
*-commutative71.8%
sub-neg71.8%
sub-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in x around inf 65.4%
if 8.50000000000000044e-60 < b < 2.3e10Initial program 76.3%
associate-+l-76.3%
*-commutative76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in j around inf 70.3%
Final simplification64.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))))
(if (<= t -4.4e+24)
t_1
(if (<= t 3.8e-287)
(* x (* y z))
(if (<= t 1.1e+49)
(* i (* y (- j)))
(if (or (<= t 1.3e+111) (not (<= t 6.2e+212))) t_1 (* i (* t b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (t <= -4.4e+24) {
tmp = t_1;
} else if (t <= 3.8e-287) {
tmp = x * (y * z);
} else if (t <= 1.1e+49) {
tmp = i * (y * -j);
} else if ((t <= 1.3e+111) || !(t <= 6.2e+212)) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (t * -a)
if (t <= (-4.4d+24)) then
tmp = t_1
else if (t <= 3.8d-287) then
tmp = x * (y * z)
else if (t <= 1.1d+49) then
tmp = i * (y * -j)
else if ((t <= 1.3d+111) .or. (.not. (t <= 6.2d+212))) then
tmp = t_1
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (t * -a);
double tmp;
if (t <= -4.4e+24) {
tmp = t_1;
} else if (t <= 3.8e-287) {
tmp = x * (y * z);
} else if (t <= 1.1e+49) {
tmp = i * (y * -j);
} else if ((t <= 1.3e+111) || !(t <= 6.2e+212)) {
tmp = t_1;
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) tmp = 0 if t <= -4.4e+24: tmp = t_1 elif t <= 3.8e-287: tmp = x * (y * z) elif t <= 1.1e+49: tmp = i * (y * -j) elif (t <= 1.3e+111) or not (t <= 6.2e+212): tmp = t_1 else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) tmp = 0.0 if (t <= -4.4e+24) tmp = t_1; elseif (t <= 3.8e-287) tmp = Float64(x * Float64(y * z)); elseif (t <= 1.1e+49) tmp = Float64(i * Float64(y * Float64(-j))); elseif ((t <= 1.3e+111) || !(t <= 6.2e+212)) tmp = t_1; else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (t * -a); tmp = 0.0; if (t <= -4.4e+24) tmp = t_1; elseif (t <= 3.8e-287) tmp = x * (y * z); elseif (t <= 1.1e+49) tmp = i * (y * -j); elseif ((t <= 1.3e+111) || ~((t <= 6.2e+212))) tmp = t_1; else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.4e+24], t$95$1, If[LessEqual[t, 3.8e-287], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e+49], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 1.3e+111], N[Not[LessEqual[t, 6.2e+212]], $MachinePrecision]], t$95$1, N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{if}\;t \leq -4.4 \cdot 10^{+24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-287}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+49}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{+111} \lor \neg \left(t \leq 6.2 \cdot 10^{+212}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if t < -4.40000000000000003e24 or 1.1e49 < t < 1.2999999999999999e111 or 6.19999999999999996e212 < t Initial program 67.7%
associate-+l-67.7%
*-commutative67.7%
sub-neg67.7%
sub-neg67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in x around inf 54.4%
Taylor expanded in y around 0 48.8%
neg-mul-148.8%
distribute-rgt-neg-in48.8%
Simplified48.8%
if -4.40000000000000003e24 < t < 3.79999999999999982e-287Initial program 78.7%
associate-+l-78.7%
*-commutative78.7%
sub-neg78.7%
sub-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in x around inf 42.7%
Taylor expanded in y around inf 34.2%
if 3.79999999999999982e-287 < t < 1.1e49Initial program 80.0%
associate-+l-80.0%
*-commutative80.0%
sub-neg80.0%
sub-neg80.0%
*-commutative80.0%
Simplified80.0%
add-cube-cbrt79.7%
pow379.7%
Applied egg-rr79.7%
Taylor expanded in i around inf 33.0%
mul-1-neg33.0%
distribute-rgt-neg-in33.0%
*-commutative33.0%
distribute-rgt-neg-in33.0%
Simplified33.0%
if 1.2999999999999999e111 < t < 6.19999999999999996e212Initial program 80.8%
associate-+l-80.8%
*-commutative80.8%
sub-neg80.8%
sub-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in i around inf 47.2%
distribute-lft-out--47.2%
Simplified47.2%
Taylor expanded in i around 0 47.2%
mul-1-neg47.2%
distribute-rgt-neg-in47.2%
Simplified47.2%
Taylor expanded in j around 0 32.5%
*-commutative32.5%
associate-*l*32.6%
Simplified32.6%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* i (* t b))))
(if (<= b -2.3e-69)
t_2
(if (<= b -2.35e-154)
t_1
(if (<= b -5.8e-228)
(* a (* c j))
(if (<= b 4.5e-124) (* x (* y z)) (if (<= b 1.5e+17) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = i * (t * b);
double tmp;
if (b <= -2.3e-69) {
tmp = t_2;
} else if (b <= -2.35e-154) {
tmp = t_1;
} else if (b <= -5.8e-228) {
tmp = a * (c * j);
} else if (b <= 4.5e-124) {
tmp = x * (y * z);
} else if (b <= 1.5e+17) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = i * (t * b)
if (b <= (-2.3d-69)) then
tmp = t_2
else if (b <= (-2.35d-154)) then
tmp = t_1
else if (b <= (-5.8d-228)) then
tmp = a * (c * j)
else if (b <= 4.5d-124) then
tmp = x * (y * z)
else if (b <= 1.5d+17) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = i * (t * b);
double tmp;
if (b <= -2.3e-69) {
tmp = t_2;
} else if (b <= -2.35e-154) {
tmp = t_1;
} else if (b <= -5.8e-228) {
tmp = a * (c * j);
} else if (b <= 4.5e-124) {
tmp = x * (y * z);
} else if (b <= 1.5e+17) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = i * (t * b) tmp = 0 if b <= -2.3e-69: tmp = t_2 elif b <= -2.35e-154: tmp = t_1 elif b <= -5.8e-228: tmp = a * (c * j) elif b <= 4.5e-124: tmp = x * (y * z) elif b <= 1.5e+17: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(i * Float64(t * b)) tmp = 0.0 if (b <= -2.3e-69) tmp = t_2; elseif (b <= -2.35e-154) tmp = t_1; elseif (b <= -5.8e-228) tmp = Float64(a * Float64(c * j)); elseif (b <= 4.5e-124) tmp = Float64(x * Float64(y * z)); elseif (b <= 1.5e+17) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = i * (t * b); tmp = 0.0; if (b <= -2.3e-69) tmp = t_2; elseif (b <= -2.35e-154) tmp = t_1; elseif (b <= -5.8e-228) tmp = a * (c * j); elseif (b <= 4.5e-124) tmp = x * (y * z); elseif (b <= 1.5e+17) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.3e-69], t$95$2, If[LessEqual[b, -2.35e-154], t$95$1, If[LessEqual[b, -5.8e-228], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e-124], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+17], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-124}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.3000000000000001e-69 or 1.5e17 < b Initial program 78.4%
associate-+l-78.4%
*-commutative78.4%
sub-neg78.4%
sub-neg78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in i around inf 39.7%
distribute-lft-out--39.7%
Simplified39.7%
Taylor expanded in i around 0 39.7%
mul-1-neg39.7%
distribute-rgt-neg-in39.7%
Simplified39.7%
Taylor expanded in j around 0 29.1%
*-commutative29.1%
associate-*l*30.5%
Simplified30.5%
if -2.3000000000000001e-69 < b < -2.3500000000000001e-154 or 4.4999999999999996e-124 < b < 1.5e17Initial program 66.8%
associate-+l-66.8%
*-commutative66.8%
sub-neg66.8%
sub-neg66.8%
*-commutative66.8%
Simplified66.8%
add-cube-cbrt66.8%
pow366.8%
Applied egg-rr66.8%
Taylor expanded in i around inf 46.5%
mul-1-neg46.5%
distribute-rgt-neg-in46.5%
*-commutative46.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
if -2.3500000000000001e-154 < b < -5.8000000000000002e-228Initial program 74.1%
associate-+l-74.1%
*-commutative74.1%
sub-neg74.1%
sub-neg74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in a around inf 74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in j around inf 61.1%
*-commutative61.1%
Simplified61.1%
if -5.8000000000000002e-228 < b < 4.4999999999999996e-124Initial program 75.4%
associate-+l-75.4%
*-commutative75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in x around inf 66.5%
Taylor expanded in y around inf 42.3%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.06e-13) (not (<= t 3.8e+148))) (* 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 ((t <= -1.06e-13) || !(t <= 3.8e+148)) {
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 ((t <= (-1.06d-13)) .or. (.not. (t <= 3.8d+148))) 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 ((t <= -1.06e-13) || !(t <= 3.8e+148)) {
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 (t <= -1.06e-13) or not (t <= 3.8e+148): 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 ((t <= -1.06e-13) || !(t <= 3.8e+148)) 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 ((t <= -1.06e-13) || ~((t <= 3.8e+148))) 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[t, -1.06e-13], N[Not[LessEqual[t, 3.8e+148]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.06 \cdot 10^{-13} \lor \neg \left(t \leq 3.8 \cdot 10^{+148}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.06e-13 or 3.7999999999999998e148 < t Initial program 68.0%
associate-+l-68.0%
*-commutative68.0%
sub-neg68.0%
sub-neg68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in t around inf 65.8%
distribute-lft-out--65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in a around 0 34.0%
neg-mul-134.0%
distribute-lft-neg-in34.0%
*-commutative34.0%
Simplified34.0%
Taylor expanded in t around 0 36.9%
if -1.06e-13 < t < 3.7999999999999998e148Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in a around inf 36.6%
+-commutative36.6%
mul-1-neg36.6%
unsub-neg36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in j around inf 24.5%
*-commutative24.5%
Simplified24.5%
Final simplification29.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -1.58e-102) (not (<= y 1.06e+110))) (* x (* y z)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.58e-102) || !(y <= 1.06e+110)) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-1.58d-102)) .or. (.not. (y <= 1.06d+110))) then
tmp = x * (y * z)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -1.58e-102) || !(y <= 1.06e+110)) {
tmp = x * (y * z);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -1.58e-102) or not (y <= 1.06e+110): tmp = x * (y * z) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -1.58e-102) || !(y <= 1.06e+110)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -1.58e-102) || ~((y <= 1.06e+110))) tmp = x * (y * z); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.58e-102], N[Not[LessEqual[y, 1.06e+110]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.58 \cdot 10^{-102} \lor \neg \left(y \leq 1.06 \cdot 10^{+110}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if y < -1.57999999999999991e-102 or 1.06000000000000005e110 < y Initial program 69.1%
associate-+l-69.1%
*-commutative69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
Simplified69.1%
Taylor expanded in x around inf 53.0%
Taylor expanded in y around inf 38.3%
if -1.57999999999999991e-102 < y < 1.06000000000000005e110Initial program 81.3%
associate-+l-81.3%
*-commutative81.3%
sub-neg81.3%
sub-neg81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in i around inf 36.1%
distribute-lft-out--36.1%
Simplified36.1%
Taylor expanded in i around 0 36.1%
mul-1-neg36.1%
distribute-rgt-neg-in36.1%
Simplified36.1%
Taylor expanded in j around 0 25.5%
*-commutative25.5%
associate-*l*26.3%
Simplified26.3%
Final simplification31.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -4.2e-14) (* i (* t b)) (if (<= t 4.8e+152) (* 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 (t <= -4.2e-14) {
tmp = i * (t * b);
} else if (t <= 4.8e+152) {
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 (t <= (-4.2d-14)) then
tmp = i * (t * b)
else if (t <= 4.8d+152) 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 (t <= -4.2e-14) {
tmp = i * (t * b);
} else if (t <= 4.8e+152) {
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 t <= -4.2e-14: tmp = i * (t * b) elif t <= 4.8e+152: 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 (t <= -4.2e-14) tmp = Float64(i * Float64(t * b)); elseif (t <= 4.8e+152) 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 (t <= -4.2e-14) tmp = i * (t * b); elseif (t <= 4.8e+152) 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[t, -4.2e-14], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+152], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.2 \cdot 10^{-14}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+152}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -4.1999999999999998e-14Initial program 66.9%
associate-+l-66.9%
*-commutative66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in i around inf 45.2%
distribute-lft-out--45.2%
Simplified45.2%
Taylor expanded in i around 0 45.2%
mul-1-neg45.2%
distribute-rgt-neg-in45.2%
Simplified45.2%
Taylor expanded in j around 0 34.8%
*-commutative34.8%
associate-*l*35.0%
Simplified35.0%
if -4.1999999999999998e-14 < t < 4.7999999999999998e152Initial program 80.2%
associate-+l-80.2%
*-commutative80.2%
sub-neg80.2%
sub-neg80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in a around inf 36.6%
+-commutative36.6%
mul-1-neg36.6%
unsub-neg36.6%
*-commutative36.6%
Simplified36.6%
Taylor expanded in j around inf 24.5%
*-commutative24.5%
Simplified24.5%
if 4.7999999999999998e152 < t Initial program 70.4%
associate-+l-70.4%
*-commutative70.4%
sub-neg70.4%
sub-neg70.4%
*-commutative70.4%
Simplified70.4%
Taylor expanded in t around inf 73.8%
distribute-lft-out--73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in a around 0 35.1%
neg-mul-135.1%
distribute-lft-neg-in35.1%
*-commutative35.1%
Simplified35.1%
Taylor expanded in t around 0 41.6%
Final simplification29.2%
(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 75.6%
associate-+l-75.6%
*-commutative75.6%
sub-neg75.6%
sub-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in a around inf 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in j around inf 18.2%
*-commutative18.2%
Simplified18.2%
Final simplification18.2%
(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 2023275
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(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)))))