Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 2 Review Solutions
Math 3316, Fall 2013
1.
Consider the following 4 data points:
x
f
1
1
0
4
1
3
3
13
Interpolate the data with a polynomial, using a method of your choosing (tell me which method
you use). Write the interpolating function (do no
Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 1 Review Solutions
Math 3316, Fall 2013
1.
Consider a linux directory with the following structure:
09:35:31 [dreynolds@stella Math3316]$
drwxrxrx 6 dreynolds dreynolds 4.0K
drwxrxrx 3 dreynolds dreynolds 4.0K
drwxrxrx 3 dreynolds dreynolds 4.0
Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 3 Review
Math 3316, Fall 2013
1.
You have the points (1, 2), (1, 0) and (4, 4). Write the rst degree spline S(x) that
interpolates these points. Simplify your answer.
2.
Consider the function dened by
x3 + 3x2 + 3x,
x [1, 0),
2 + 3x,
S(x) = 3x
x [0,
Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 3 Review Solutions
Math 3316, Fall 2013
1.
You have the points (1, 2), (1, 0) and (4, 4). Write the rst degree spline S(x) that
interpolates these points. Simplify your answer.
Solution: First, we must put the points in order of increasing x value: (
Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 2 Review
Math 3316, Fall 2013
1.
Consider the following 4 data points:
x
f
1
1
0
4
1
3
3
13
Interpolate the data with a polynomial, using a method of your choosing (tell me which method
you use). Write the interpolating function (do not simplify
Introduction to High Performance Scientific Computing
MATH 3316

Fall 2013
Exam 1 Review
Math 3316, Fall 2013
1.
Consider a linux directory with the following structure:
09:35:31 [dreynolds@stella Math3316]$
drwxrxrx 6 dreynolds dreynolds 4.0K
drwxrxrx 3 dreynolds dreynolds 4.0K
drwxrxrx 3 dreynolds dreynolds 4.0K
drwxrwxr
Introduction to High Performance Scientific Computing
MATH 3316

Spring 2015
MATH 3315/ CSE 3365 Exam 1 (100 points)
(toga/m,
( ) '
Question 1 (Matlab basics) 10 pts, 2 pts each
Let X: [1 2 4] in Matlab. Write down the outputs from the following Matlab
statements: (1) x+1 (2) x (3) x."2 (4) x*x and (5) X*x.
(ll 2 3: 5' [4) 2
2