MA302: Numerical Applications
to Differential Equations
Instructor: Zhilin Li ,
T.A.: Gregory Hicks
Office Hours: M T TH. 11:10am-12:10pm HA316
Office Hours: M W 2:00-3:00pm, WI 300
Tel: 515-3210
Tel:
E-mail: <zhilin@eos.ncsu.edu>
E-mail: <gphicks@eos.ncsu.edu>
Grading:
Course Outline
Class participation and attendance (15%).
Homework (65%).
A final project (20%).
Office Hours
Wed: 12/1: 10:00-11:30am
Mon: 12/6: 11:00am-12:00pm,
Wed. 12/8: 11:00am-12:00pm
Mon. 12/13: 11:00am-12:00pm (Final grade should
be available by the time. )
-
Class 11/30: Class practice and
close statements.
-
Final Project and Report Form
-
MA302 Summaries
-
Class 11/23, Stiffness system II: A movie. Download
mymovie.m and chemistry.m.
-
Class 11/16, Stiffness System and Chemical reactions. Download
chem.m and chem_drive.m.
-
Class 11/2: Class Practice 3, continued.
Download prey_prd and lesson9_10.m;
yprft.m and lesson10.m
-
Steps for solving
y' = f(t,y), y(0) = y0:
1. Write a Matlab function to define f(t,y), see format_f.m
or yprf.m
2 Write a Matlab function to input the data, call ode45 or other
solver, plot the solutions, see lesson9.m
for example. The file looks something like
clear all; close all
global a b c d
a = 1.5; b=0.5; c=0.2; d=3;
k = 3; yt = 1 + 0.532156299*k;
t0 = 0; tfinal=50; y0=[ 1 yt];
[t y ] = ode45('yprf',[t0,tfinal], y0);
y1 = y(:,1); y2=y(:,2); plot(t,y1,t,y2);
figure(2); plot(y1,y1)
% Phase plot
You can save the file in a file, see myhw.m. In Matlab, you
just type
>> myhw
3. Label and analyze the plot(s).
-
Class 10/26: Class Practice 3.
-
Class 10/19: Down-load the Matlab file lesson9.m
and yprf.m.
-
Class discipline will be enforced. Absence, late arrival, and early
departure will affect your grade. You should sit in your fixed seat. If
you need to change the seat, make sure to let the TA know.
http://www4.ncsu.edu/~zhilin/TEACHING/MA302/MATLAB/
HW#7 (Homework and Report Form)
HW#6, Lesson 9, (Homework and Report Form)
HW#5, Lesson 8, (Homework and Report Form)
Class Practice (9/7)
How to start Homework for Lesson 3?
Frequently asked questions and answers.
What should you be able to do after the first class?
<zhilin@pams.ncsu.edu>