def modular_symbols(self): """ Return the space of modular symbols used for computing this set of modular eigenforms. EXAMPLES:: sage: n = numerical_eigenforms(61) ; n.modular_symbols() Modular Symbols space of dimension 5 for Gamma_0(61) of weight 2 with sign 1 over Rational Field """ M = ModularSymbols(self._group, self._weight, sign=1) if M.base_ring() != QQ: raise ValueError("modular forms space must be defined over QQ") return M
def modular_symbols(self): """ Return the space of modular symbols used for computing this set of modular eigenforms. EXAMPLES:: sage: n = numerical_eigenforms(61) ; n.modular_symbols() Modular Symbols space of dimension 5 for Gamma_0(61) of weight 2 with sign 1 over Rational Field """ try: return self.__modular_symbols except AttributeError: M = ModularSymbols(self._group, self._weight, sign=1) if M.base_ring() != QQ: raise ValueError("modular forms space must be defined over QQ") self.__modular_symbols = M return M