Skip to main content Skip to local navigation
Home » Computational Methods (PHYS 2030)

Computational Methods (PHYS 2030)

York University

Fall 2014 - Course Website


Basic Information 

  • Course Description: The symbolic and numeric computing environments provided by Maple and Matlab are used to solve problems in mechanics and electromagnetism. Two lectures (1.5 hours each) and three laboratory hours every week. One term. Three credits. Prerequisites: SC/PHYS 1010 6.00 or a minimum grade of C in SC/PHYS 1410 6.00 or SC/PHYS 1420 6.00; One of LE/CSE 1020 3.00, LE/CSE 1540 3.00; SC/MATH 1014 3.00 or equivalent. Co-requisite: SC/MATH 2015 3.00 or equivalent. 
  • Location & Time: T,Th 10:00-11:30 (ACW 306) AND M 3:30-6:30 (ACW 203) 
  • Course Syllabus (includes course logistics):  here (pdf) 
  • Instructor:  Christopher Bergevin
    Office: Petrie 240 
    Email: cberge [AT] yorku.ca 
    Office Hours: TBD (or by appt.) 
    Phone: 416-736-2100 ext.33730 
  • TAs: Keh-Harng (William) Feng (kehharng@yorku.ca) & Nikita Bezginov (nibezg@gmail.com) Office Hours: TBD (or by appt.) 
  • Marker: Ivan Guevara (ivan.guevara1988@gmail.com) 
  • Text  Data-Driven Modeling and Scientific Computation: Methods for Complex Systems and Big Data by J.N. Kutz (Oxford U.P.) 
    → Via YorkU, you may be able to access the text online here

Updates and useful bits 

  • [12.17.14] Just as a reminder, the final exam will take place on Friday 12/19 from 9-12 in ACW 203. The exam is comprehensive, but will chiefly focus on material since the midterm. While we will be in the computer lab, we will not be using the computers for the exam (i.e., the format will be very similar to the midterm). Keep in mind that you can still bring a single double-sided sheet with anything you like on it to the exam (which you also must turn in).
  • [12.01.14] Student-student assessment forms can be downloaded here. These are due (along with the project written reports) at the start of class on 12/4.
  • [11.19.14] Regarding Fourier analysis, a very useful/interesting reference can be found here and here
  • [11.07.14] A reminder that project proposals are due on Monday 11/10. A few salient items to note:
    • The format of submitting the proposals will be as follows. During the lab session on 11/10, each group will be expected to give a brief and informal ‘presentation’ of their proposed project. You can use the projector if you like (and you are encouraged to do such!), but such is not necessary. The TAs and fellow class members will provide some feedback on your proposal. You will need to think carefully about such, refine, and ultimately submit a formal 1 page proposal by the end of the day (midnight) to Nikita.
    • Here are some tips on creating an effective proposal. Proposals should consist of three pieces: Hypothesis - A reasonable hypothesis is the backbone to your proposal and thus is an essential ingredient in success with the project. Formulating the hypothesis should be given considerable thought. You need to be specific about what you are going to test, as vague hypotheses will lead to headaches. Consider the number of computational aspects to test in order to address your hypothesis: it is crucial to avoid such being too large and thereby take up considerably more time than you have. Instead, refine the hypothesis into a single answerable question. Specifying with detail the predicted outcome will produce a decent hypothesis. Ideally you should have a sense ahead of time whether this hypothesis will be viable by loosely testing it before hand. Background - Also included in your proposal should be the background which explains your reasoning behind the hypothesis. Blindly conducting simulations without a good reason can create an excessive amount of work for you as you try to explain the results without understanding the underlying mechanisms. This is also troublesome for your eventual audience as they try to understand what the reasoning behind the simulations was. Procedure - The procedure is designed to explain how you might go about testing the hypothesis in a rigorous way. Keeping with the theme of the proposal, the procedure should be very specific about how the ‘data’ (i.e., some sort of computational result) will be obtained. For this, a quantitative description is desirable: what will be the computational ‘measurements’ you perform be? Enough information should be given that someone else could test the hypothesis independently of you.
    • Some folks may be in groups with as few as two people. If that is the case, please let the course instructor know before the lab session on Monday 11/10. We will try to merge groups as need be on a case-by-case basis. Ideally, each group should consist of three or more people. Keeping in mind that all members are expected to contribute significantly.
    • For those looking for a bit more of a challenge, one suggestion is to take a look at this book (accessible via Springer Link, as provided by the York U libraries). It contains some meaty ‘projects’ that might be appropriate to develop into your group project. You’d need to identify a tangible problem and frame some sort of reasonable hypothesis stemming from such.
  • [10.28.14] Details for the course project are now available here. Also, students have been randomly placed into groups of approximately four. Groups are listed here (the associated code for determining the groups can be found here for those interested). It’s likely a good idea to get in touch with your fellow group members ASAP just to get connected initially and start formulating ideas.
  • [10.23.14] The final exam will take place on Friday Dec.19, 9 AM until 12 PM in ACW 203. 
  • [10.16.14] The class midterm will take place in class one week from today (10/23). It will be a written exam, chiefly focusing on conceptual aspects to all the topics covered in class so far. Any material incorporated into lectures 1-12 is fair game. This includes all material in the course slides themselves, as well as topics as discussed in class. The ‘suggested’ reading from Kutz’s book supplements the lecture topics and is recommended to be look at closely. You may be asked to write Matlab syntax-specific sections of code. One suggested means to prepare to work thorough the ‘Post class exercises’ suggested for each lecture. Also, as per the course syllabus: "Students will be allowed to bring a single page (double-sided) of notes with them for each exam. Note, as specified in the lateness policy below, there are no makeups". 
  • [10.09.14] As per the course syllabus, class attendance is part of the final grade. Attendance was taken today and will sporadically be done again in the future. Coming to class is essential in order to do well in this course! 
  • [09.25.14] Unfortunately, there will not a be a class lecture on Thursday Oct.2. So you do not need to come to class that day. The lecture slides relevant for that day (dealing with regression) will be posted here as soon as available, and we will discuss that material on during the first part of the lab session on Monday Oct.6. 
  • [09.25.14] The tentative date for the class midterm exam will be Thursday Oct.23. 
  • [09.23.14] Note that for all assignments, you should write (and hand in a copy of) your own code. It is okay to look at and utilize the example codes provided here (or from fellow students), but you must write your own version of code (as indicated in the course syllabus). Also in order to receive full credit, you must provide sufficient (but concise) explanation as to how you arrived at your answer. 
  • Here are some links to resources that might be useful: 
    • Cody
    • Lecture notes from a NYU Polytechnic course
    • Coursera class on scientific computing
    • Lecture notes from YorkU CSE 1541 (W14, courtesy of Prof. Burton Ma)
  • Guide to get Matlab running remotely (via York's internal server). Guide to help get you started with plotting in Matlab. Lastly, here is link to archived materials from EECS 1541 W2014 (thanks to Prof. Burton Ma). 

Class Notes 

  • 12.04.14 - Course summary 
    • Reminder: The final exam will take place on Friday Dec.19, 9 AM until 12 PM in ACW 203.
    • Pre-Problem
    • Pre-Problem (bonus!)
    • Slides
    • Remember me
    • Example codes: Autocorrelation and noisy (periodic) signals (EXautocorr4.m), ‘Object’ position identification (EXfindDots, zipped folder)
  • 12.02.14 - Study day (no class)
  • 12.01.14 - Group presentations (during lab period)
  • 11.27.14 - DAQ II 
  • 11.25.14 - DAQ I 
  • 11.20.14 - Monte carlo II 
  • 11.18.14 - Monte carlo I 
    • Book reading: Kutz ch. 12.2 (12.1 is good to read too for general background)
    • Pre-Problem
    • Slides
    • Example codes: EXestimatePI.m (demonstrates how to estimate pi using a random # generator), EXrandomNum1.m and EXrandomNum2.m (two simple/clunky/underachieving random # generator algorithms), EXintegrateMC1.m (demonstrates integration using two different Monte carlo approaches), and EXgaussian1 (demonstrates how to build up a Gaussian distribution from a uniform distribution; also allows for a nonlinear regression to fit the appropriate function, but also requires this and this)
  • 11.13.14 - Convolutions & Filtering 
  • 11.11.14 - Principal component Analysis (PCA) (Prof. Hugh Wilson)
  • 11.06.14 - Fourier III - Practicalities 
    • Book reading: Kutz ch. 10.1, 13.4
    • Pre-Problem
    • Slides
    • Link to a webpage describing one means to make ‘photo mosaics’
    • Example codes: EXquantizeF.m (demonstrates windowing and the effects of ‘quantizing’ frequency)
  • 11.04.14 - Fourier II - Mathematical background 
    • Pre-Problem
    • Slides
    • Example of Tuvan throat singing (mp3 of Huun Huur Tu)
    • Example codes: EXbuildImpulse (zipped folder containing relevant pieces to build up an impulse from the Fourier components) and EXspecREP3 (zipped folder containing relevant pieces to to fiddle with a variety of 1-D discrete Fourier transform properties)
  • 10.30.14 - No class (Co-curricular days)
  • 10.28.14 - Fourier I - Introduction 
    • Book reading: Kutz ch. 13.1
    • Pre-Problem
    • Slides
    • Example codes: EXspectrogram.m (makes a spectrogram of a .wav file; the two .wav files used in the slides can be downloaded here and here) and 2D_Fourier (zipped folder containing relevant pieces for 2-D Fourier demonstration) 
    • A very useful/interesting reference can be found here and here
  • 10.23.14 - Midterm 
  • 10.21.14 - Nonlinear systems II - Chaos, Period doubling 
  • 10.16.14 - Nonlinear systems I - Fractals 
  • 10.14.14 - Regression III - Splines, Non-parametric methods 
  • 10.09.14 - Regression II - Polynomials, Nonlinear functions
  • 10.07.14 - Regression I - Linear least squares
  • 10.02.14 - Linear systems II - Eigenvalues and Eigenvectors, Linearizing nonlinear systems, Eigenfaces
    • Note: There is no in-class lecture today (we will discuss this material during the lab on 10/6)
    • Book reading: Kutz ch. 2.5
    • Pre-Problem
    • Slides
  • 09.30.14 - Linear systems I - Introduction and Motivations
  • 09.25.14 - Differential equations III - Built-in solvers, Higher order systems
  • 09.23.14 - Differential equations II - Euler’s method, Runge-Kutta
  • 09.18.14 - Differential equations I - Introduction
  • 09.16.14 - Numerical integration 
  • 09.11.14 - Harmonic oscillator, Numerical differentiation 
  • 09.09.14 - Introduction and review 
    • Book reading: Kutz ch.1 
    • Slides

HW Assignments 

Homework should be handed in as a hard copy on Thursday mornings before the start of class. 

  • HW9: Due 11/27/14 (last HW assignment; also this code might be useful) 
  • HW8: Due 11/20/14 
  • HW7: Due 11/13/14
  • HW6: Due 11/06/14
  • HW5: Due 10/16/14
  • HW4: Due 10/07/14
  • HW3: Due 9/30/14
  • HW2: Due 9/23/14 
  • HW1: Due 9/18/14 (despite 9/16 on assignment)