Download User's Guide to Pari/GP

Transcript
3.7.5 intformal(x, {v}): formal integration of x with respect to the main variable if v is omitted,
with respect to the variable v otherwise. Since PARI does not know about “abstract” logarithms
(they are immediately evaluated, if only to a power series), logarithmic terms in the result will
yield an error. x can be of any type. When x is a rational function, it is assumed that the base
ring is an integral domain of characteristic zero.
The library syntax is integ(x, v), where v is a long and an omitted v is coded as −1.
3.7.6 padicappr(pol , a): vector of p-adic roots of the polynomial pol congruent to the p-adic
number a modulo p, and with the same p-adic precision as a. The number a can be an ordinary padic number (type t_PADIC, i.e. an element of Zp ) or can be an integral element of a finite extension
of Qp , given as a t_POLMOD at least one of whose coefficients is a t_PADIC. In this case, the result
is the vector of roots belonging to the same extension of Qp as a.
The library syntax is padicappr(pol , a).
3.7.7 polcoeff(x, s, {v}): coefficient of degree s of the polynomial x, with respect to the main
variable if v is omitted, with respect to v otherwise. Also applies to power series, scalars (polynomial
of degree 0), and to rational functions provided the denominator is a monomial.
The library syntax is polcoef f 0(x, s, v), where v is a long and an omitted v is coded as −1.
Also available is truecoef f (x, v).
3.7.8 poldegree(x, {v}): degree of the polynomial x in the main variable if v is omitted, in the
variable v otherwise.
The degree of 0 is a fixed negative number, whose exact value should not be used. The degree
of a non-zero scalar is 0. Finally, when x is a non-zero polynomial or rational function, returns the
ordinary degree of x. Raise an error otherwise.
The library syntax is poldegree(x, v), where v and the result are longs (and an omitted v is
coded as −1). Also available is degree(x), which is equivalent to poldegree(x,-1).
3.7.9 polcyclo(n, {v = x}): n-th cyclotomic polynomial, in variable v (x by default). The integer
n must be positive.
The library syntax is cyclo(n, v), where n and v are long integers (v is a variable number,
usually obtained through varn).
3.7.10 poldisc(pol , {v}): discriminant of the polynomial pol in the main variable is v is omitted,
in v otherwise. The algorithm used is the subresultant algorithm.
The library syntax is poldisc0(x, v). Also available is discsr(x), equivalent to poldisc0(x,1).
3.7.11 poldiscreduced(f ): reduced discriminant vector of the (integral, monic) polynomial f .
This is the vector of elementary divisors of Z[α]/f 0 (α)Z[α], where α is a root of the polynomial f .
The components of the result are all positive, and their product is equal to the absolute value of
the discriminant of f .
The library syntax is reduceddiscsmith(x).
164