I just want a simple formula like Dirac delta function, but using programming functions including trigonometric, floor, ceiling, min, max etc. The formula should output 1 at x=0 and should be 0 for all other values of x.
Someone at stack exchange provided opposite of this as: $$\left[ \frac{x^2}{x^2+1}\right]$$
PS: Yes, I am programming but I cannot use 'If' statement