Exemplo n.º 1
0
 def __call__(self, *args, **kwds):
     r"""
     Call method. This exists *purely* to override the old-fashioned
     behaviour of the parent AbelianGroup class and ensure that
     :meth:`element_constructor` gets called.
     
     EXAMPLE::
     
         sage: K.<b> = NumberField(x^2 + 389)
         sage: C = K.class_group()
         sage: C(K.ideal(b)) 
         Trivial principal fractional ideal class
     """
     return Group.__call__(self, *args, **kwds)
Exemplo n.º 2
0
 def __call__(self, *args, **kwds):
     r"""
     Call method. This exists *purely* to override the old-fashioned
     behaviour of the parent AbelianGroup class and ensure that
     :meth:`element_constructor` gets called.
     
     EXAMPLE::
     
         sage: K.<b> = NumberField(x^2 + 389)
         sage: C = K.class_group()
         sage: C(K.ideal(b)) 
         Trivial principal fractional ideal class
     """
     return Group.__call__(self, *args, **kwds)
Exemplo n.º 3
0
 def __call__(self, *args, **kwds):
     r"""
     Call method.
     
     EXAMPLES::
     
         sage: K.<a> = QuadraticField(-14)
         sage: I = K.ideal(2,a)                  
         sage: S = (I,)
         sage: CS = K.S_class_group(S)
         sage: J = K.ideal(7,a)
         sage: G = K.ideal(3,a+1)
         sage: CS(I)
         Trivial S-ideal class
         sage: CS(J)
         Trivial S-ideal class
         sage: CS(G)
         Fractional S-ideal class (3, a + 1)
     """
     return Group.__call__(self, *args, **kwds)
Exemplo n.º 4
0
 def __call__(self, *args, **kwds):
     r"""
     Call method.
     
     EXAMPLES::
     
         sage: K.<a> = QuadraticField(-14)
         sage: I = K.ideal(2,a)                  
         sage: S = (I,)
         sage: CS = K.S_class_group(S)
         sage: J = K.ideal(7,a)
         sage: G = K.ideal(3,a+1)
         sage: CS(I)
         Trivial S-ideal class
         sage: CS(J)
         Trivial S-ideal class
         sage: CS(G)
         Fractional S-ideal class (3, a + 1)
     """
     return Group.__call__(self, *args, **kwds)