本文整理汇总了Python中sage.rings.all.IntegerModRing.multiplicative_subgroups方法的典型用法代码示例。如果您正苦于以下问题:Python IntegerModRing.multiplicative_subgroups方法的具体用法?Python IntegerModRing.multiplicative_subgroups怎么用?Python IntegerModRing.multiplicative_subgroups使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sage.rings.all.IntegerModRing
的用法示例。
在下文中一共展示了IntegerModRing.multiplicative_subgroups方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: gamma_h_subgroups
# 需要导入模块: from sage.rings.all import IntegerModRing [as 别名]
# 或者: from sage.rings.all.IntegerModRing import multiplicative_subgroups [as 别名]
def gamma_h_subgroups(self):
r"""
Return the subgroups of the form `\Gamma_H(N)` contained
in self, where `N` is the level of self.
EXAMPLES::
sage: G = Gamma0(11)
sage: G.gamma_h_subgroups()
[Congruence Subgroup Gamma0(11), Congruence Subgroup Gamma_H(11) with H generated by [4], Congruence Subgroup Gamma_H(11) with H generated by [10], Congruence Subgroup Gamma1(11)]
sage: G = Gamma0(12)
sage: G.gamma_h_subgroups()
[Congruence Subgroup Gamma0(12), Congruence Subgroup Gamma_H(12) with H generated by [7], Congruence Subgroup Gamma_H(12) with H generated by [11], Congruence Subgroup Gamma_H(12) with H generated by [5], Congruence Subgroup Gamma1(12)]
"""
from all import GammaH
N = self.level()
R = IntegerModRing(N)
return [GammaH(N, H) for H in R.multiplicative_subgroups()]