Click Homework_2_SemiAnalyticalCommented.m link to view the file.