Math 210 (Introduction to Mathematical Computing)
- Course Details:
- Section 201, Spring 2013
- Lectures 2-3 MWF in LSK 460.
- Lab quizes 2-3 Tuesdays in LSK 121.
- Instructor:
- Brian Wetton
- wetton@math.ubc.ca
- office: MATX 1107
- office hours:
- Tuesdays 3-4 and Thursdays 2-3 in my office.
- Mondays 1-2 I will be in the lab LSK 121.
- News:
- Final exam information:
- Notes on the format
of the final exam and the material covered since the second midterm. Also
some practice problems on the material since the last midterm.
- Exam review will be held Monday, April 8, 10:30-12:00 and 1:00-2:30
in MATX 1102.
- Exam office hours will be given after the exam Thursday and Friday
11-1 for any questions about lab grades.
- A great deal of useful MATLAB material and tutorials can be found
here on a page maintained by the UBC Mathematics Department.
- Midterm #2 information:
- Midterm #1 information:
- Course Resources:
- Course outline
- There is no required text for the course. Much of the material covered
so far (root finding, Taylor polynomials, autonomous DE, Euler's method)
can be found in any slightly advanced calculus text such as Robert Adams'
"Calculus, a complete course" (later editions with co-author Christopher
Essex).
- Some lecture notes, Maple worksheets and MATLAB programs are provided
below.
- Assignments:
- Computer Labs:
- Computer Labs are held Tuesdays 2-3 in LSK 121.
- LSK 121 is open 7:30-5:00 weekdays, closed weekends and holidays.
A preliminary schedule can be found
here. Any time
there is not a scheduled activity, you can use the lab for your
homework assignments.
- Computer Lab #0 for Tuesday, January 8 can be found
here. It will not be marked,
but introduces students to the computer lab and the slate system for
submitting electronic files.
Subsequent computer labs:
lab #1,
lab #2,
lab #3,
lab #4,
lab #5,
lab #6,
lab #7,
lab #8,
lab #9,
lab #10,
lab #11.
- Solutions to Lab Quiz #1 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #2 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #3 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #4 are give in
pdf and
mw formats.
Note that there is an error in the solution to #3. The plot has u rather
than t on the horizontal axis.
- Solutions to Lab Quiz #5 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #6 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #7 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #8 are give in two MATLAB files:
first.m and
second.m.
- Solutions to Lab Quiz #9 are give in two MATLAB files:
dice.m and
van.m.
- Computer Labs:
- Computer Labs are held Tuesdays 2-3 in LSK 121.
- LSK 121 is open 7:30-5:00 weekdays, closed weekends and holidays.
A preliminary schedule can be found
here. Any time
there is not a scheduled activity, you can use the lab for your
homework assignments.
- Computer Lab #0 for Tuesday, January 8 can be found
here. It will not be marked,
but introduces students to the computer lab and the slate system for
submitting electronic files.
Subsequent computer labs:
lab #1,
lab #2,
lab #3,
lab #4,
lab #5,
lab #6,
lab #7,
lab #8,
lab #9,
lab #10,
lab #11.
- Solutions to Lab Quiz #1 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #2 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #3 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #4 are give in
pdf and
mw formats.
Note that there is an error in the solution to #3. The plot has u rather
than t on the horizontal axis.
- Solutions to Lab Quiz #5 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #6 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #7 are give in
pdf and
mw formats.
- Solutions to Lab Quiz #8 are give in two MATLAB files:
first.m and
second.m.
- Solutions to Lab Quiz #9 are give in two MATLAB files:
dice.m and
van.m.
- Solutions to Lab Quiz #10 are give in three MATLAB files:
lab10q1.m,
lab10q1_rhs.m, and
lab10q2.m.
- Solutions to Lab Quiz #11 are give in two MATLAB files:
lab11q1.m and
lab11q2.m.
- Lecture Notes from 2013.
- Maple lesson #1 in pdf
and worksheet.
- Maple lesson #2 in pdf
and worksheet.
- Written notes, part I
on numerical root finding.
- Maple lesson #3 in pdf
and worksheet.
- Maple lesson #4 in pdf
and worksheet.
- Written notes, part II
with the proof of Taylor's Theorem.
- Maple lesson #5 in pdf
and worksheet.
- Maple lesson #6 in pdf
and worksheet.
- Written notes, part III
with a discussion of autonomous equations and an introductory presentation
of Euler's Method.
- Written notes, part IV
on Euler's Method.
- Maple lesson #7 in pdf
and worksheet.
- Written notes, part V
on scalar iterative maps.
- Written notes, part VI
on vector root finding.
- Maple lesson #8 in pdf
and worksheet.
Correction: there is an error in line (11), which should have the function
g in the last term, not f.
- Written notes, part VII
on vector iterative maps and autonomous DEs.
- Maple lesson #9 in pdf
and worksheet.
- Written notes, part VIII
on Euler's Method for Vector DEs.
- MATLAB lesson #10 lesson10.m
with additional function files
ourfun.m and
derhs.m.
- MATLAB exercise: Snakes and Ladders. We are working our way through
a longer example of the use of MATLAB to identify some statistics of the
game, Snakes and Ladders. Since there are many board variants, we are making
a general code that takes in the board information in a structure. So far,
we have done the following:
- Specified the board information structure. A sample structure
is shown in
board1.m for a small test
board shown in SandL.pdf.
- Wrote a dice rolling function that allows for the game to be played
with different sized dice:
roll.m.
- Wrote a function that does a single move of the game:
slmove.m.
- Wrote a function that playes a single player game and returns
the winning turn:
game.m.
- A script,
simulate1.m,
that simulates the one player game many times.
This gives an estimate of the probability of a single player win
on turn j (Pj).
- A post-processing function,
processing.m,
that plots graphs and prints out various statistical quanties of interest
for one and two player games.
- An alternate way of getting statistical information about a game
using matrix multiplication was done, with the code in
bigPplan.m with a function
makeP.m to construct the matrix.
- Written notes, part IX
on statistical quantities for the Snakes and Ladders game.
- Written notes, part X
on random walks with
solutions
(excerpt from UBC Math 152 notes).
- Written notes, part XI,
on a problem from celestial mechanics.
- Written notes, part XII,
on scaling, with the example of celestial mechanics.
- Calling script for celestial mechanics:
celestial1.m with RHS function
celestial_rhs_mass1.m
for the ode45 call.
- Previous Lecture Notes from Robert Israel.
- Many
examples of how
Maple can be used in other courses.
Some of the course numbers have changed this has been written.
- Lecture notes:
lesson 1,
lesson 2,
lesson 3,
lesson 4,
lesson 5,
lesson 6,
lesson 7,
lesson 8,
lesson 9,
lesson 10,
lesson 11,
lesson 12,
lesson 13,
lesson 14,
lesson 15,
lesson 16,
lesson 17,
lesson 18,
lesson 19,
lesson 20,
lesson 21,
lesson 22,
lesson 23,
lesson 24,
lesson 25,
lesson 26,
lesson 27,
lesson 28,
lesson 29,
lesson 30,
lesson 31,
lesson 32,
lesson 33,
lesson 34.