# FormalSeries ^ ZZ -- powers of formal series

## Synopsis

• Operator: ^
• Usage:
s^n
• Inputs:
• Outputs:
• an instance of the type FormalSeries, the n-th power of the formal series s

## Description

 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 i3 : s^4 o3 = FormalSeries{0, 2} o3 : FormalSeries

## Caveat

If n is 0, the formal series returned is 1 with the same precision as s. If n is negative, then s needs to have its constant part equal to either +1 or -1, otherwise an error occurs.