1. 10

  2. 5

    Aw, I was hoping it would link to my super-old math.stackoverflow question :). The top-rated answer is a super concise version of the above, helpful if you know some of the background and just need to stare at symbols a while until it clicks. Still, a nice article @aperun!