def basis(self):
        """
        Returns the number of independent generators of D_n
        """
        n = self.n
        return n*(n-1)/2
dataset/ETHPy150Open sympy/sympy/sympy/liealgebras/type_d.py/TypeD.basis/original