Hyperbolic equations and classes of infinitely differentiable functions