Ignore:
Timestamp:
09/17/07 10:15:51 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Children:
6382:275c7ef34025, 6386:053a5230b972
Message:

Fix all doctests in the number field package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/number_field/number_field_element.pyx

    r6378 r6381  
    15941594            sage: k.<j> = NumberField([y^3 - 2, y^2 - 7]) 
    15951595            sage: pari(j) 
    1596             Mod(x, x^6 - 21*x^4 + 4*x^3 + 147*x^2 + 84*x - 339) 
     1596            Mod(42/5515*x^5 - 9/11030*x^4 - 196/1103*x^3 + 273/5515*x^2 + 10281/5515*x + 4459/11030, x^6 - 21*x^4 + 4*x^3 + 147*x^2 + 84*x - 339) 
     1597            sage: j^2 
     1598            7 
     1599            sage: pari(j)^2 
     1600            Mod(7, x^6 - 21*x^4 + 4*x^3 + 147*x^2 + 84*x - 339) 
    15971601        """ 
    15981602        try: 
     
    16541658            sage: L.<b> = NumberField(X^3 + 17); L 
    16551659            Number Field in b with defining polynomial X^3 + 17 over its base field 
     1660            sage: b.charpoly () 
     1661            x^9 + 51*x^6 + 867*x^3 + 4913 
     1662            sage: b.charpoly()(b) 
     1663            0 
    16561664            sage: a = L.0; a 
    16571665            b 
    16581666            sage: a.charpoly('x') 
    1659             x^9 + 57*x^6 + 165*x^3 + 6859 
     1667            x^9 + 51*x^6 + 867*x^3 + 4913 
    16601668            sage: a.charpoly('y') 
    1661             y^9 + 57*y^6 + 165*y^3 + 6859 
     1669            y^9 + 51*y^6 + 867*y^3 + 4913 
    16621670        """ 
    16631671        R = self.parent().base_ring()[var] 
Note: See TracChangeset for help on using the changeset viewer.