I'm working with super-gaussian profiles of the form:
$$ f(x) = A\exp\bigg({-\big(\frac{(x-x_0)^2}{2\sigma^2}\big)}^n\bigg) $$
I need to integrate this function for various $n$ values (probably between 4-30), and was wondering if there's a more modular way to do this that applies to all $n$, rather than having to derive an integral for every value of $n$ that I choose?
Edit: The limits of integration are finite (between -0.3 and 0.3 for all $n$)
Using centered-reduced coordinates, the integration limits are arbitrary and
$$\int_a^b e^{-u^{2n}}du=\frac1{2n}\int_a^b t^{-1+1/2n}e^{-t}dt$$
which is an incomplete Gamma integral.