MATLAB GUIDE, 2010, Leslie Foster
Matlab is an easy to use environment for solving problems involving matrices and drawing two and
three dimensional graphs of their solutions. Matlab is interactive with all variables automatically saved.
On line help faci
CS / Math 243
1.
2.
3.
4.
Homework set 4
(a) Using your results in problem 5 of homework set 3 implement a variable step size version of cranknicholson in Matlab. Save your code as cranknic4var.m. To help you in doing this on my web site I
have cranknic4.
Math / CS 243
Homework Set 3
u 2 u
u
2
1. Consider the partial differential equation ! t = ! x + v ! x where v is constant. The last term is a
convection term that can arise due to transport of heat (or other quantity) by movement of material
2u
2
such a
Homework Assignment 1
Math / CS 243
1.
In class we derived the heat equation in 1 space dimension by looking at a uniform rod that had heat flowing only out the ends
of the rod. We assumed that the density , the heat capacity c , the thermal conductivity
Homework Set 2
Math / CS 243
1. Suppose that we are using Gaussian elimination to factor a n by n band matrix A that has m= 2
subdiagonals and 2 super diagonals in addition to the main diagonal. Assume that we have already forced
the elements below the di
HW Set 6
1.
Math / CS 243
Try out several sparse matrix orderings in Matlab on the Wathen matrix. You can get the Wathen via A =
gallery(wathen,n,n). Type help private/wathen for information about the wathen matrix. Note that n is not the
size of the matr
The book of the universe is written in the language of mathematics; without mathematics it is not possible to
understand a word of it. Galileo Galilei
Course:
Math/CS 243A
Days and Times:
Advanced Numerical Analysis
TTh 5:30-6:45 in MH 320
Prerequisite: O
Math-CS
HW Set 5
For problems 1 through 4 assume that we want to solve the scalar hyperbolic equation ut
+ ux = 0 with the initial condition u(x,0) = sin(6 x) and boundary condition u(0,t)= - 6
sin(6 t).
1. Use the method of characteristics to find the ex