Writing is so wrapped up in ego, but with math one is just trying to get it right, although you're often wrong. I think math helped me become a good critic of myself, come at writing a little less personally.
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.
Being a writer is like having homework every night for the rest of your life.