Changeset 7716:fd8a64419db5


Ignore:
Timestamp:
12/15/07 03:46:20 (6 years ago)
Author:
Craig Citro <craigcitro@…>
Branch:
default
Message:

Minor doctest touch-ups for trac #1407.

Location:
sage/rings
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/monomials.py

    r7715 r7716  
    2727def monomials(v, n): 
    2828    """ 
    29     Given a list v of numbers and an integer n, return 
    30     all monomials in the elements of v, where variable 
    31     i (i.e., v[i]) appears in the monomial appears to 
    32     degree strictly less than n[i]. 
     29    Given two lists v and n, of exactly the same length, 
     30    return all monomials in the elements of v, where 
     31    variable i (i.e., v[i]) appears in the monomial 
     32    appears to degree strictly less than n[i]. 
    3333 
    3434    INPUT: 
     
    4545        [1, z, y, y*z, y^2, y^2*z, x, x*z, x*y, x*y*z, x*y^2, x*y^2*z] 
    4646    """ 
     47 
     48    if (len(v) != len(n)): 
     49        raise ValueError, "inputs must be of the same length." 
     50    if len(v) == 0: 
     51        return [] 
    4752    v = Sequence(v) 
    4853    R = v.universe() 
  • sage/rings/number_field/number_field.py

    r7715 r7716  
    38643864                  an order in a smaller number field. 
    38653865 
    3866         The base, check_is_integral, and check_rank inputs must be given as 
     3866        The check_is_integral and check_rank inputs must be given as 
    38673867        explicit keyword arguments.  
    38683868 
Note: See TracChangeset for help on using the changeset viewer.