I have an impulse train given by
It seems obvious to me that, for x=0, the function returns 1. This is because , and we therefore end up with
However indeterminate result at x=0. Usually this means there is a division by 0 somewhere. But I can't see any reason for this function to produce an indeterminate result.