acos,
acosh,
agm,
asin,
asinh,
atan,
atanh,
ceil,
copy,
cos,
cosh,
cube_root,
erf,
exp,
exp10,
exp2,
floor,
frac,
gamma,
integer_part,
log,
log10,
log2,
parent,
prec,
real,
round,
sign,
sin,
sincos,
sinh,
sqrt,
str,
tan,
tanh,
trunc,
zeta
Further documentation:
) |
Return the arithmetic-geometric mean of self and other. The
arithmetic-geometric mean is the common limit of the sequences
and
, where
is self,
is other,
is the arithmetic mean of
and
, and
is the geometric mean of u_n and v_n. If any operand
is negative, the return value is codeNaN.
) |
Return the cubic root (defined over the real numbers) of self.
) |
Returns the value of the error function on self.
sage: R = RealField() sage: R(6).erf() 1.0000000000000000
) |
frac returns a real number > -1 and < 1. it satisfies the relation: x = x.trunc() + x.frac()
) |
The Euler gamma function. Return gamma of self.
sage: R = RealField() sage: R(6).gamma() 120.00000000000000 sage: R(1.5).gamma() 0.88622692545275805
) |
If in decimal this number is written n.defg, returns n.
) |
sage: R = RealField() sage: R(2).log() 0.69314718055994529
) |
sage: R = RealField() sage: a = R('1.2456') sage: a.parent() Real Field with 53 bits of precision
) |
Return the real part of self.
(Since self is a real number, this simply returns self.)
) |
sage: R = RealField(100) sage: R(2).sin() 0.90929742682568169539601986591150
) |
Returns a pair consisting of the sine and cosine.
sage: R = RealField() sage: t = R.pi()/6 sage: t.sincos() (0.49999999999999994, 0.86602540378443871)
) |
Return the square root of self.
) |
The Riemann zeta function. Return zeta of self.
sage: R = RealField() sage: R(2).zeta() 1.6449340668482264 sage: R(-2).zeta() 0.00000000000000000 sage: R(1).zeta() +infinity
Instances of class RealNumber also have the following special methods:
__abs__,
__cmp__,
__complex__,
__div,
__div__,
__eq__,
__float__,
__ge__,
__gt__,
__invert__,
__le__,
__lt__,
__ne__,
__neg__,
__pos__,
__pow,
__pow__,
__rdiv__,
__repr__,
__rpow__,
_add,
_mul,
_sub
Further documentation:
) |
Add two real numbers with the same parent.
sage: R = RealField() sage: R(-1.5) + R(2.5) 1.0000000000000000
) |
Multiply two real numbers with the same parent.
sage: R = RealField() sage: R(-1.5) * R(2.5) -3.7500000000000000
) |
Subtract two real numbers with the same parent.
sage: R = RealField() sage: R(-1.5) - R(2.5) -4.0000000000000000
See About this document... for information on suggesting changes.