ENGRD 3200
PS01 HW Solution
Spring 2016
1. Total Numerical Error
Consider the function f(x)=sin(x) defined over the interval [0,2] with its maximum slope
occurring at x=0
a) To reach a relative error of 10-6 the step size must be reduced to h=2*10-6. This
ENGRD 3200
Engineering Computation
Spring 2011
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200: Engineering Computation
Solution to Prelim 1
Problem 1
(a)
(5 points)
p
x + x2 1
x2 (x2 1)
1
2
=
=
= g(x).
f (x) = (x x 1)
2
2
x+ x 1
x+ x 1
x + x2 1
(b)
(25 points)
Calculations with full precision:
f (2.014) = g (2.014) = 0.265802071,
f (201
ENGRD 3200
Engineering Computation
Spring 2011
Prelim Exam #1
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2009
Prelim Exam #2
Solution
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write
ENGRD 3200
Engineering Computation
Spring 2011
Prelim Exam #1
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2009
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
Previously, this
material was tested in
Prelim-1. Now you will
have LU factorization
in prelim-2.
Basically, know how to set-up a
piecewise linear interpolant.
ENGRD 3200
Engineering Computation
Spring 2014
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2010
Prelim Exam #1
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
Solution: ENGRD 3200 SP16
HW1
Question 1: PROBLEM (4.5) from the textbook.
Solution: minvalue = 4.9407e-324
% Find the smallest positive value that can be represented
% i.e. smallest number x, that when x+0>0
%Initialization
x=1;
%iterative calculation
wh
Q1 BISECTION METHOD
function [root,fx,ea,iter,iterations]=bisect(func,xl,xu,es,maxit,varargin)
'isect: root location zeroies
%
[root,fx,ea,iter]=bisect(func,xl,xu,es,maxit,p1,p2,.)
%
uses bisection method to find the root of func
%input:
%
func=name of fu
PS03
Consider the following system of two linear equations:
Row 1:
0.0003! + 1.566! = 1.569
Row 2:
0.3454! 2.436! = 1.018
a) Solve this system by hand using the nave Gauss elimination procedure with
fo
ENGRD 3200
Engineering Computation
Spring 2009
Final Exam
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your solu
ENGRD 3200: Engineering Computation
Solution to the Final Exam
Problem 1
a. (8 points)
f (z0 ) = f (0) = 0,
f (z1 ) = f (6) = 45.347,
f (z2 ) = f (12) = 26.776,
f (z3 ) = f (18) = 13.798,
f (z4 ) = f (24) = 6.8279,
F = (24 0)
0 + 4(45.347 + 13.798) + 2(26
ENGRD 3200
Engineering Computation
Spring 2014
Prelim Exam #1
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator
and pen or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2010
Prelim Exam #1 Solution
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write
ENGRD 3200
Engineering Computation
Spring 2009
Prelim Exam #1
SOLUTION
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write
ENGRD 3200
Engineering Computation
Spring 2009
Prelim Exam #1
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2011
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2010
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your
ENGRD 3200
Engineering Computation
Spring 2014
Final Exam
(Name:
)
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out
ENGRD 3200
Engineering Computation
Spring 2014
Prelim Exam #2
Guidelines: Exams are CLOSED BOOK. You may use your lecture notes, graded
problem sets and posted homework answers. Make sure to also have a calculator and pen
or pencil. Please write out your