A Theoretical Demonstration of Properties of Grating Anomalies (S-polarization)