本文整理汇总了Python中sage.categories.morphism.Morphism.__repr__方法的典型用法代码示例。如果您正苦于以下问题:Python Morphism.__repr__方法的具体用法?Python Morphism.__repr__怎么用?Python Morphism.__repr__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sage.categories.morphism.Morphism
的用法示例。
在下文中一共展示了Morphism.__repr__方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __repr__
# 需要导入模块: from sage.categories.morphism import Morphism [as 别名]
# 或者: from sage.categories.morphism.Morphism import __repr__ [as 别名]
def __repr__(self):
r"""
Return the string representation of this WeierstrassIsomorphism.
OUTPUT:
(string) The underlying morphism, together with an extra line
showing the `(u,r,s,t)` parameters.
EXAMPLES::
sage: E1 = EllipticCurve('5077')
sage: E2 = E1.change_weierstrass_model([2,3,4,5])
sage: E1.isomorphism_to(E2)
Generic morphism:
From: Abelian group of points on Elliptic Curve defined by y^2 + y = x^3 - 7*x + 6 over Rational Field
To: Abelian group of points on Elliptic Curve defined by y^2 + 4*x*y + 11/8*y = x^3 - 7/4*x^2 - 3/2*x - 9/32 over Rational Field
Via: (u,r,s,t) = (2, 3, 4, 5)
"""
return Morphism.__repr__(self) + "\n Via: (u,r,s,t) = " + baseWI.__repr__(self)