本文整理汇总了Python中sage.rings.all.QQ.zero方法的典型用法代码示例。如果您正苦于以下问题:Python QQ.zero方法的具体用法?Python QQ.zero怎么用?Python QQ.zero使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sage.rings.all.QQ
的用法示例。
在下文中一共展示了QQ.zero方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ConstantFormsSpaceFunctor
# 需要导入模块: from sage.rings.all import QQ [as 别名]
# 或者: from sage.rings.all.QQ import zero [as 别名]
def ConstantFormsSpaceFunctor(group):
r"""
Construction functor for the space of constant forms.
When determining a common parent between a ring
and a forms ring or space this functor is first
applied to the ring.
EXAMPLES::
sage: from sage.modular.modform_hecketriangle.functors import (ConstantFormsSpaceFunctor, FormsSpaceFunctor)
sage: ConstantFormsSpaceFunctor(4) == FormsSpaceFunctor("holo", 4, 0, 1)
True
sage: ConstantFormsSpaceFunctor(4)
ModularFormsFunctor(n=4, k=0, ep=1)
"""
return FormsSpaceFunctor("holo", group, QQ.zero(), ZZ.one())