Changeset 7716:fd8a64419db5
- Timestamp:
- 12/15/07 03:46:20 (6 years ago)
- Branch:
- default
- Location:
- sage/rings
- Files:
-
- 2 edited
-
monomials.py (modified) (2 diffs)
-
number_field/number_field.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/rings/monomials.py
r7715 r7716 27 27 def monomials(v, n): 28 28 """ 29 Given a list v of numbers and an integer n, return30 all monomials in the elements of v, where variable31 i (i.e., v[i]) appears in the monomial appears to32 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]. 33 33 34 34 INPUT: … … 45 45 [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] 46 46 """ 47 48 if (len(v) != len(n)): 49 raise ValueError, "inputs must be of the same length." 50 if len(v) == 0: 51 return [] 47 52 v = Sequence(v) 48 53 R = v.universe() -
sage/rings/number_field/number_field.py
r7715 r7716 3864 3864 an order in a smaller number field. 3865 3865 3866 The base, check_is_integral,and check_rank inputs must be given as3866 The check_is_integral and check_rank inputs must be given as 3867 3867 explicit keyword arguments. 3868 3868
Note: See TracChangeset
for help on using the changeset viewer.
