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

## Synopsis

• Function: series
• Usage:
series(s,n)
• Inputs:
• s, , an element of a polynomial ring
• n, an integer,
• Outputs:

## 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