I am trying to design a digital notch filter that stops the power line frequency of 50 Hz. My approach to design the filter was first to realize the circuit using passive components inductor and capacitor (the output is taken from the L and C component which has resonant frequency of 50Hz). Then, I determined the transfer function of the system in 's' domain and converted it to equivalent transfer function in 'z' domain. Then, I determined the equivalent difference equation from the transfer function in 'z' domain. But, when I implemented that difference equation in coded form, I was unable to get the desired response. I am new to digital filter implementation, so I wanted to ask whether I missed on some crucial consideration ? And, I also want to know more about the implementation technique of digital filter.