Self-similar solutions of the cubic wave equation