Changeset 5621:c3cf361df7a9


Ignore:
Timestamp:
08/03/07 05:52:12 (6 years ago)
Author:
'Martin Albrecht <malb@…
Branch:
default
Message:

term ordering bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/polynomial/term_order.py

    r5179 r5621  
    6464\item[Reverse lexicographic (\emph{revlex})], defined as 
    6565 
    66 $x^a < x^b \Leftrightarrow \exists\; 1 \le i \le n : a_n = b_n, \ldots, a_{i+1} = b_{i+1}, a_i > b_i.$ 
     66$x^a < x^b \Leftrightarrow \exists\; 1 \le i \le n : a_n = b_n, \ldots, a_{i+1} = b_{i+1}, a_i < b_i.$ 
    6767 
    6868EXAMPLES: 
    6969    sage: P.<x,y,z> = PolynomialRing(GF(127),3,order='revlex') 
    7070    sage: x > y 
    71     True 
    72     sage: x > y^2 
     71    False 
     72    sage: y > x^2 
    7373    True 
    7474    sage: x > 1 
    75     False 
     75    True 
    7676    sage: x*y > z 
    77     True 
     77    False 
    7878 
    7979\item[Negative lexicographic (\emph{neglex})], defined as 
     
    137137\end{description} 
    138138 
    139 Of these, only $degrevlex$, $deglex$, and $lex$ are global orderings. 
     139Of these, only $degrevlex$, $deglex$, $revlex$ and $lex$ are global orderings. 
    140140 
    141141Additionally all these monomial orderings may be combined to product 
Note: See TracChangeset for help on using the changeset viewer.