We determine the center of a meta-nilpotent quotient of a mapping-torus group. As a corollary, we introduce two invariants, which are quadratic forms, of knots and of mapping classes.