"The moral is that emotions influence how we process and pay attention to information, and that different kinds of cognitive tasks benefit from different moods. When we’re editing our prose, or playing chess, or working through a math problem, we probably benefit from a little melancholy, since that makes us more attentive to details and mistakes. In contrast, when we’re trying to come up with an idea for a novel, or have a hit a dead end with our analytical approach to a problem, then maybe we should take a warm shower and relax. The answer is more likely to arrive when we stop thinking about our problem."