If C is a linear code with Hamming weight enumerator polynomial AC and if AC(x,y) =AC(x,y) , in other words AC(x,y) = |C|-1 AC(x+y,(q-1)x-y), then C is called a formally self-dual code.