Homework Assignments of AM213B
Each assignment is a combination of theoretical problems and
computational problems. You need to submit a report in PDF for each
assignment. For theoretical problems, you may scan your hand-written
report into a PDF. For computational problems, you need to
use a word processor to typeset a report. In part,
this is to prepare you for the first year exam.
Each assignment automatically has a 3-day grace period.
For example, you can turn in assignment #1 by the end of Saturday,
04/11/2020. But I strongly suggest that you start early
on each assignment and use the grace period only as a safety cushion for
possible complications in your schedule.
For each assignment, sumbit your PDF report by email
to hongwang@soe.ucsc.edu
-
Assignment #0,
NOT DUE, self-learning exercises.
Sample Matlab code: Comparing multiple curves
Solution of assignment #0
-
Assignment #1,
due by the end of Wednesday 04/08/2020.
Sample Matlab code:
Newton's method for solving scalar equations
Sample Matlab code:
Newton's method for solving systems
Solution of assignment #1
-
Assignment #2,
due by the end of Wednesday 04/15/2020.
Sample Matlab code:
Implementing RK4 for ODE systems + coefficients of Fehlberg method
Sample Matlab code:
Estimating error in numerical solution of ODE system
Sample Matlab code:
Comparing two functions represented on different grids
Solution of assignment #2
-
Assignment #3,
due by the end of Wednesday 04/22/2020.
Sample Matlab code:
Plot contours of several functions in ONE figure
Sample Matlab code:
Implement DIRK methods to solve scalar ODEs
Solution of assignment #3
-
Assignment #4,
due by the end of Wednesday 04/29/2020.
Sample Matlab code:
Plot the stability region of an LMM
Sample Matlab code:
Implement FDM (finite difference method) to solve two-point BVP
Sample Matlab code:
Implement 2s-DIRK to solve a linear ODE system
Solution of assignment #4
-
Assignment #5,
due by the end of Wednesday 05/06/2020.
Sample Matlab code:
Implement 2s-DIRK to solve a linear ODE system
Solution of assignment #5
-
Assignment #6,
due by the end of Wednesday 05/13/2020.
Sample Matlab code:
Implement FTCS and BTCS to solve the 2D heat equation
Solution of assignment #6
-
Assignment #7,
due by the end of Wednesday 05/20/2020.
Sample Matlab code:
Implement numerical methods to solve u_t + u_x = 0
Solution of assignment #7
-
Assignment #8,
due by the end of Wednesday 05/27/2020.
Sample Matlab code:
Implement numerical methods to solve u_t + u_x = 0
Sample Matlab code:
Implement numerical methods to solve u_t + F(u)_x = 0
Solution of assignment #8
-
Assignment #9,
due by the end of Wednesday 06/03/2020.
Sample Matlab code:
Plot u(x,y) in several ways
Solution of assignment #9