In my answer to this question I suddenly felt the need to include formula's. I am sorry for this, it is a bad habit of mine, but I am sure it will happen more often.
Is there any way to format those formula's nicely in a way that I have seen for example on the math.stackexchange site?