def delta(x): """Simple approximation of the Dirac delta function.""" epsilon = 1e-10 # A small threshold value to simulate 'zero' if abs(x) epsilon: return 1.0 else: return 0.0# Example usage:x_values = [-1, -0.1, 0, 0.1, 1]for x in x_values: print(f"delta({x}) = {delta(x)}")