Math 551
Introduction to Scientic Computing
Fall 2012
SOLUTIONS: Homework Set 1
1. Consider the polynomial f (x) = x2 x 2.
(a) Find P1 (x), P2 (x) and P3 (x) for f (x) about x0 = 0. What is the relation between
P3 (x) and f (x)? Why?
(b) Find P1 (x), P2 (
Math 551
Introduction to Scientic Computing
Fall 2012
SOLUTIONS: Homework Set 3
1. Given the function f (x) = cosh x + cos x , where = 0, 1, 2, 3 is a parameter. For each
value of determine if f (x) has a root (plotting may help here!). If so, further det
Lecture 3
In class Examples
function [p] = bisect_recursive (func,a,b,fa,fb,atol)
%
% function [p] = bisect_recursive (func,a,b,fa,fb,atol)
%
% Assuming fa = func(a), fb = func(b), and fa*fb < 0,
% there is
Lecture Notes: how to use matrix operation
Outline: we will introduce matrix, matrix operations, control statements,
functions or subroutines, and some examples.
options ls=80 nodate;
proc iml;
a = cfw_1 5 8, 5 3 6, 8 6 4
Lecture Notes: Accessing mathlab and Entering matirces
1. Accessing matlab
On most systems after logging in one can enter matlab with the system
command matlab and exit matlab with the matlab command quit or exit.
However your local installation may permi
Lecture Notes: How to use MATLAB
MATLAB is an interactive program for numerical methods, with
graphing capability. These notes describe some useful functions
and syntax. The following sites have more extensive
The command for starting MATLAB depends on yo
Lecture Note: M-
file
An m-
file is a file that contains a sequence of MATLAB commands.
Some m-
files are built into MATLAB. A user can create a new m-
file using an editor. For example, an m-
file called fourier
Math 551
Introduction to Scientic Computing
Homework Set 4
Fall 2012
Due Thursday, 25 October
Newtons method and Fractal Images
Take a look at thefollowing webpages, which discuss Newtons method in general, and also its
basins of attraction for computing
Math 551
Introduction to Scientic Computing
Fall 2012
SOLUTIONS: Homework Set 2
1. The oating point representation of a number is x = (0.a1 a2 . . . an ) e , where a1 = 0,
M e M . Suppose = 2, n = 8, and M = 4.
(a) Find the smallest positive (xmin ) and l