Home | Trees | Index | Help |
|
---|
Package sage :: Package rings :: Module real_field :: Class RealField_decimal |
|
object
--+ |Ring
--+ |RealField
--+ |object
--+ | | |_uniq_RR_decimal
--+ | RealField_decimal
>>> R = RealField_decimal(); S = RealField_mpf() >>> R(1) + S(1) 2.0 >>> S(1.1) - R(1.2) -0.0999999999999999111822 >>> R.pi() * S.pi() 9.869604401089358618834491000 >>> R(2)*S(2) 4.0 >>> S(2) / R(3) 0.666666666666666666667 >>> R(2) < S(3) True >>> S(2.99) > R(3) False
Method Summary | |
---|---|
__call__(self,
x)
| |
__cmp__(self,
other)
| |
__repr__(self)
| |
Inherited from RealField | |
(Static method) | |
Returns the characteristic of the real field, which is 0. | |
Returns Euler's constant gamma = 0.57721566... | |
Returns True, since the real field is a field. | |
Returns a short string 'R' that describes the real field. | |
Returns pi to at least the given precision. | |
Inherited from Ring | |
| |
| |
True if the elements have atomic string representations, in the sense that they print if they print at s, then -s means the negative of s. | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri May 20 19:41:03 2005 | http://epydoc.sf.net |