I was recently experimenting in wolfram alpha to "make" smooth Bump functions, and I found some interesting attempts which have all the real line as domain, but I believe are compact supported since its values are non-zero only for a tight interval:
- $f(x) = e^{-2 \cdot x^{2n} \cdot e^{x^2}}$ for integer $n \geq 1$ are non-zero between (-1; 1), have max value 1, and increasing n gives them a flat-top making them, I think, non-analytical. I believe they could be nice transitions/window functions.
As example: https://www.wolframalpha.com/input/?i=e%5E%28-2*x%5E8*e%5E%28x%5E2%29%29+for+x%3D-1.2+to+1.2
- $f(x) = e^{-(2x)^{2n} \cdot e^{(2x)^2}}$ for integer $n \geq 1$ are non-zero between (-1/2; 1/2), have max value 1, and increasing n gives them a flat-top making them, I think, non-analytical. Also increasing n make them really squared so I believe they could be in the limit a representation of the standard rectangular function (wolfram-alpha calculate the area only up n=200 and it was almost 1).
- $f(x) = e^{-(n+1)! \cdot x^{2n} \cdot e^{x^2}}$ for integer $n$ between [1; 4] are non-zero between (-1; 1), have max value 1, increasing n gives them a flat-top making them, I think, non-analytical, and their area under the curve integrates approximately 1, so I believe they could be interesting mollifiers for numerical calculations.
I don't have enough mathematical background to probe if they are Bump functions, so I will be happy to receive your opinions about them, hoping they will be useful for anybody else.
Also $f(x) = 1/2 \rightarrow x^=\pm 1/2 \cdot (\frac{\log(2)}{1+\log(2)})^{\frac{1}{2n}}$ so $\lim_{n \rightarrow \infty} x^ = \pm 1/2$, so, Could be $\lim_{n \rightarrow \infty} f(x) = $ rectangular function $\Pi(x)$??
– Joako Oct 01 '21 at 19:11