Binary Quadratic Forms Over F[T] And Principal Ideal Domains