fmpq_series – power series over rational numbers

class flint.fmpq_series(val=None, den=None, prec=None)
asin(s)
asinh(s)
atan(s)
atanh(s)
coeffs(self)
cos(s)
cosh(s)
denom(self)
derivative(s)
exp(s)
integral(s)
inv(s)
length(self) → long
log(s)
numer(self)
p

fmpq_series.numer(self)

q

fmpq_series.denom(self)

repr(self, **kwargs)
reversion(s)

Returns the power series reversion (compositional inverse) of s.

>>> x = fmpq_series([0,1]); print((x/2-x**2).reversion())
2*x + 8*x^2 + 64*x^3 + 640*x^4 + 7168*x^5 + 86016*x^6 + 1081344*x^7 + 14057472*x^8 + 187432960*x^9 + O(x^10)
rsqrt(s)
sin(s)
sinh(s)
sqrt(s)
str(self, **kwargs)
tan(s)
tanh(s)
valuation(self)