Example calculations:
Example 1 is a calculation from Loewen's paper using the integral method
Example 2 is a calculation from Neviere's paper using the integral method
Example 3 is a calculation from Li's paper using the modal method
Example 4 is a calculation from a Moharam paper using the RCWA method
Example 5 is a step by step procedure for Genetic Algorithm grating design.