Second order weakly hyperbolic operators with coefficients sum of powers of functions