next | previous | forward | backward | up | top | index | toc | Macaulay2 website
FormalGroupLaws :: series(RingElement,ZZ)

series(RingElement,ZZ) -- constructing a formal series

Synopsis

Description

This constructs an object of the class FormalSeries out of an element of a PolynomialRing and an integer representing the precision.

i1 : R=ZZ[x,y]

o1 = R

o1 : PolynomialRing
i2 : s = series(x^2+x+y,2)

                   2
o2 = FormalSeries{x  + x + y, 2}

o2 : FormalSeries

Note that the polynomial is automatically truncated at the precision.

i3 : t = series(x^3+x^2+x+y,2)

                   2
o3 = FormalSeries{x  + x + y, 2}

o3 : FormalSeries