cosx in exponentials