correct spherical coordinate transformation
supporting paper part 3 with coffeescript generator