--- from: http://rosettacode.org/wiki/Euler's_identity