The Gaussian laser pulse $$ E(t) = E_0 e^{\frac{-2\ln 2}{\tau^2} t^2} \cos{\omega t} $$ (where $\tau$ is the intensity FWHM) is often troublesome in numerical simulations due to the infinite temporal length of it's envelope, which can introduce artifacts unless a very wide temporal window is used. A widespread solution is to use a $\cos^2$ temporal profile, $$ E(t) = \begin{cases} E_0 \cos^\boldsymbol{2}\left(\pi \frac{t}{T_p}\right) \cos{\omega t} & \mathrm{if}\ -\frac{T_p}{2} < t < \frac{T_p}{2} \\ 0 & \mathrm{othervise} \end{cases} $$ with $T_p \approx 2.741 \tau$ being the full zero-to-zero length of the pulse. This envelope smoothly goes to zero at $t=\pm T_p/2$ and stays zero outside these bounds, making it suitable for such simulations.
What puzzles me is it's popularity over a $\cos^4$ shaped envelope,
$$ E(t) = \begin{cases} E_0 \cos^\boldsymbol{4}\left(\pi \frac{t}{T_p}\right) \cos{\omega t} & \mathrm{if}\ -\frac{T_p}{2} < t < \frac{T_p}{2} \\ 0 & \mathrm{othervise} \end{cases} $$
which has a shape much closer to a Gaussian envelope. In fact, it is so close it's barely distinguishable:
dashed: envelope, continous: field
However, publications seem to almost exclusively use $\cos^2$ for any simulational work involving ultrashort laser pulses. In fact, I found only 1-2 works that considered both $\cos^4$ and $\cos^2$, and I'm yet to encounter a work that exclusively chose $\cos^4$ over $\cos^2$. This is very uintuitive for me - I'd assume that the closer you are to the Gaussian profile, the better.
What is the reason? Why does $\cos^2$ have an almost exlcusive preference in simulational works, despite it's shape much farther from a Gaussian shape than that of $\cos^4$?
a=cos(x); return a*a;
vsa=cos(x); b=a*a; return b*b;
); while by definition slower, I don't know that the "much" qualifier applies $\endgroup$