[math-fun] rationalize exp(%i*x), for floating point x.