Package sage :: Package rings :: Module rational :: Class Rational
[show private | hide private]
[frames | no frames]

Type Rational

object --+    
         |    
   Element --+
             |
            Rational


Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __abs__(x)
x.__abs__() <==> abs(x)
  __add__(x, y)
x.__add__(y) <==> x+y
  __cmp__(x, y)
x.__cmp__(y) <==> cmp(x,y)
  __div__(x, y)
x.__div__(y) <==> x/y
  __eq__(x, y)
x.__eq__(y) <==> x==y
  __float__(x)
x.__float__() <==> float(x)
  __ge__(x, y)
x.__ge__(y) <==> x>=y
  __gt__(x, y)
x.__gt__(y) <==> x>y
  __hash__(x)
x.__hash__() <==> hash(x)
  __int__(x)
x.__int__() <==> int(x)
  __invert__(x)
x.__invert__() <==> ~x
  __le__(x, y)
x.__le__(y) <==> x<=y
  __long__(x)
x.__long__() <==> long(x)
  __lt__(x, y)
x.__lt__(y) <==> x<y
  __mod__(x, y)
x.__mod__(y) <==> x%y
  __mul__(x, y)
x.__mul__(y) <==> x*y
  __ne__(x, y)
x.__ne__(y) <==> x!=y
  __neg__(x)
x.__neg__() <==> -x
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __nonzero__(x)
x.__nonzero__() <==> x != 0
  __pos__(x)
x.__pos__() <==> +x
  __pow__(x, y, z)
x.__pow__(y[, z]) <==> pow(x, y[, z])
  __radd__(x, y)
x.__radd__(y) <==> y+x
  __rdiv__(x, y)
x.__rdiv__(y) <==> y/x
  __reduce__(...)
  __repr__(x)
x.__repr__() <==> repr(x)
  __rmod__(x, y)
x.__rmod__(y) <==> y%x
  __rmul__(x, y)
x.__rmul__(y) <==> y*x
  __rpow__(y, x, z)
y.__rpow__(x[, z]) <==> pow(x, y[, z])
  __rsub__(x, y)
x.__rsub__(y) <==> y-x
  __sub__(x, y)
x.__sub__(y) <==> x-y
  copy(...)
  denom(...)
  denominator(...)
  factor(...)
  height(...)
The max absolute value of the numerator and denominator of self, as an sage.rings.integer.Integer.
  mod_ui(...)
  numer(...)
  numerator(...)
  order(...)
  parent(...)
  set_si(...)
  set_str(...)
    Inherited from Element
  __rxor__(x, y)
x.__rxor__(y) <==> y^x
  __xor__(x, y)
x.__xor__(y) <==> x^y
  is_zero(...)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
PyCObject __pyx_vtable__ = <PyCObject object at 0xb7d5bec0>

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
sage.rings.element.Element.__init__

__abs__(x)

x.__abs__() <==> abs(x)
Returns:
abs(x)

__add__(x, y)
(Addition operator)

x.__add__(y) <==> x+y
Returns:
x+y

__cmp__(x, y)
(Comparison operator)

x.__cmp__(y) <==> cmp(x,y)
Returns:
cmp(x,y)

__div__(x, y)

x.__div__(y) <==> x/y
Returns:
x/y

__eq__(x, y)
(Equality operator)

x.__eq__(y) <==> x==y
Returns:
x==y

__float__(x)

x.__float__() <==> float(x)
Returns:
float(x)

__ge__(x, y)
(Greater-than-or-equals operator)

x.__ge__(y) <==> x>=y
Returns:
x>=y

__gt__(x, y)
(Greater-than operator)

x.__gt__(y) <==> x>y
Returns:
x>y

__hash__(x)
(Hashing function)

x.__hash__() <==> hash(x)
Returns:
hash(x)
Overrides:
sage.rings.element.Element.__hash__

__int__(x)

x.__int__() <==> int(x)
Returns:
int(x)

__invert__(x)

x.__invert__() <==> ~x
Returns:
~x

__le__(x, y)
(Less-than-or-equals operator)

x.__le__(y) <==> x<=y
Returns:
x<=y

__long__(x)

x.__long__() <==> long(x)
Returns:
long(x)

__lt__(x, y)
(Less-than operator)

x.__lt__(y) <==> x<y
Returns:
x<y

__mod__(x, y)

x.__mod__(y) <==> x%y
Returns:
x%y

__mul__(x, y)

x.__mul__(y) <==> x*y
Returns:
x*y

__ne__(x, y)

x.__ne__(y) <==> x!=y
Returns:
x!=y

__neg__(x)

x.__neg__() <==> -x
Returns:
-x

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
sage.rings.element.Element.__new__

__nonzero__(x)
(Boolean test operator)

x.__nonzero__() <==> x != 0
Returns:
x != 0

__pos__(x)

x.__pos__() <==> +x
Returns:
+x

__pow__(x, y, z=...)

x.__pow__(y[, z]) <==> pow(x, y[, z])
Returns:
pow(x, y[, z])

__radd__(x, y)
(Right-side addition operator)

x.__radd__(y) <==> y+x
Returns:
y+x

__rdiv__(x, y)

x.__rdiv__(y) <==> y/x
Returns:
y/x

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)
Returns:
repr(x)
Overrides:
sage.rings.element.Element.__repr__

__rmod__(x, y)

x.__rmod__(y) <==> y%x
Returns:
y%x

__rmul__(x, y)

x.__rmul__(y) <==> y*x
Returns:
y*x

__rpow__(y, x, z=...)

y.__rpow__(x[, z]) <==> pow(x, y[, z])
Returns:
pow(x, y[, z])

__rsub__(x, y)

x.__rsub__(y) <==> y-x
Returns:
y-x

__sub__(x, y)
(Subtraction operator)

x.__sub__(y) <==> x-y
Returns:
x-y

height(...)

The max absolute value of the numerator and denominator of self, as an sage.rings.integer.Integer.

Class Variable Details

__pyx_vtable__

Type:
PyCObject
Value:
<PyCObject object at 0xb7d5bec0>                                       

Generated by Epydoc 2.1 on Wed May 4 18:06:57 2005 http://epydoc.sf.net