I was wondering whether the similarity between the functions $\exp(-x^2-x^4-x^6)$ and $\cos(0.5\pi x)$ was due to some more fundamental limiting relation between the two functions (or similar functions with polynomial exponents of $e$) or just a mere "coincidence".
Sorry if this seems like a bizarre question. To give it some context I was thinking about the limiting solutions to a quantum particle in a box (potential=$x^\infty$) and the quantum harmonic oscillator (potential=$x^2$).
The Taylor expansion (computed with PARI/GP) of $\ln\cos\frac{\pi x}2$ starts $$-1.2337005501361698273543113749845188919 x^2 - 0.50733901580209602727312673275367245443 x^4 - 0.33381569221364737396882619571264579822 x^6 - 0.25003879475632402982574681232393201039 x^8 - 0.20000340827260896509763678045996608484 x^{10} - 0.16666698097476385326265147306337459117 x^{12} - 0.14285717274864560164287233838289474202 x^{14} - 0.12500000290464467239458845915306524769 x^{16}+ O(x^{18})$$ where the weird numbers are caused by including $\pi$ (it is remarkable though that the coefficient of $x^{16}$ is so close to $-\frac18$). It looks like $\exp(-\frac54x²-\frac12 x^4-\frac13 x^6)$ would be a better (but not perfect) approximation, but there is a difference between approximating "near zero" (what Taylor does) and approximating "in $-1,1]$" as you likely want.
The numbers look friendlier without $\pi$, i.e. the expansion of $\ln\cos x$ is $$-\frac{1}{2} x^2 - \frac{1}{12} x^4 - \frac{1}{45} x^6 - \frac{17}{2520} x^8 - \frac{31}{14175} x^{10} - \frac{691}{935550} x^{12} - \frac{10922}{42567525} x^{14} - \frac{929569}{10216206000} x^{16}+ O(x^{18}) $$