This set of HW comes from diverse aspects in calculus and math analyses.
It is intended to serve as a review and to bring you up to speed in
mathematical analysis. Series expansion in various forms and acc
EGM6341 Spring 2009
pp. 323-329 #1 Write a program to evaluate I =
f ( x )dx using the trapezoidal rule with n
subdivisions, calling the result In. Use the program to calculate the following integrals with n=2,4,8,16,.,512 1
From the textbook by Atkinson: pp.43-50:
For the following numbers xA and xT, how many significant digits are there in xA
with respect to xT?
xA = 451.023,
xT = 451.01
xA = -0.045113,
xT = -0.04518
xA = 23.4213,
HW#6 Due: 3/17/09
From textbook by Atkinson pp185-194 1. 2. 3. #28a, #35 (read p. 171 of the textbook, as well as notes, for "not-a-knot" condition;) (Least square fit) In many applications, one wishes to correlate a dependent
Problem #1. Write a program to evaluate I
f ( x )dx using the trapezoidal rule
with n subdivisions, calling the result In. Use the program to calculate the following
integrals with n=2,4,8,16,512
I exp( x 2
Solution to Homework #1- EGM6341
1. (a) Assume (x) is continuous on a x b, and consider the average 1 n S = f (x j ) n j =1 with all points xj in the interval [a, b]. Show that S = f ( ) for some in [a, b]. Soln: Because (x) is continuous in the
Solution to Homework #2 21.
For the following numbers xA and xT, how many significant digits are there in xA with respect to xT? a) xA = 451.023, xT = 451.01 b) xA =-0.045113, xT = -0.04518 c) xA = 23.4213, xT = 23.4604 Soln. a) | xA - xT
HW#1 Note: i) ii) iii)
This set of HW comes from diverse aspects in calculus and math analyses. It is intended to serve as a review and to bring you up to speed in mathematical analysis. Series expansion in various forms a
Solution to HW#6 EGM6341 Spring 2009 1. #28a. Find a polynomial p(x) of degree 2 that satisfies p(x0)= y0, p (x0)=y 0, p (x1)=y1 Given a formula in the form of p(x) = y0l0(x) + y0 l1(x) + y1 l2(x). Solution: For the suggested p(x), it is seen that p
HW#2 EGM6341 Spring 2009 Due 1/27/09 From the textbook by Atkinson: pp.43-50 : 21. For the following numbers xA and xT, how many significant digits are there in xA with respect to xT? a) xA = 451.023, xT = 451.01 b) xA = -0.045113, xT = -0.04518 c) x
Solution to HW#11
Write a computer program to solve y= f(x,y), y(x0)=y0, using Eulers method. Write it to be
used with an arbitrary f, stepsize h, and interval [x0,b]. Using the program, solve y=x2 y,
y(0) = 1, for 0x4, with stepsizes of h = 0.
EGM6341 Numerical Method
1. Solve the following BVP using finite difference method
y" - (1 x/4) y = x
y(0) = 1, y(2) = 5.
i) Set up the matrix for yi using x=0.5.
ii) Solve yi for i=2 to 4.
bi = 0,
ci = -(1- xi /4), di = xi
Choose h=0.5 (w
Solution to HW#9
Find linear and quadratic least-squares approximations to f ( x) e x on [-1,1]
using monomial basis, i.e., 1, x, x2 ,., xn . Find the error (relative to the exact
function value) of these two approximations for x=0.5.
CHAPTER VIII ODE'SBOUNDARY VALUE PROBLEMS
Objectives: develop methods for solving general 2nd order ODE's:
y"+ f(x, y, y') = 0, axb
c0y + k0 y' = q0 at x = a
c1y + k1 y' = q1 at x = b
8.1 Shooting Method:
A linear ODE example
Hao Peng 59321290
See Matlab Code, section 1.
Write the iteration as "#$ = " + " , subtract each side with
"#$ = " + " "#$ = " + "
The Taylor Expansion of () is:
= + " 3 +
Ignore items with order higher than
The following problems are from the Text book.
Write a program implementing the algorithm Bisect given in Section 2.1. Use the
program to calculate the real roots of the following equations. Use an error
EGM6341 Homework 6
Hao Peng, 59321290
We know g ( x ) =2 x 2 +2 y 2 and u ( x , y )=x 2 y2
(a) For a 5x5 grid, given:
g ( x , y )=2 x 2+2 y 2
u ( x , y )=x 2 y2 for ( x , y ) onthe boundary .
1.1 Why Numerical Methods?
Steady state heat conduction
How do we determine the heat flow
from wall AB to wall AD?
CHAPTER VII ODE'SINITIAL VALUE PROBLEMS
Objectives: Develop various accurate & efficient methods for solving
ODEs such as
y' = f(x, y)
Taylor series expansion for ODE
Consider the first order ODE:
y' = -2x - y
(= f(x, y) )
with y(0) = -
Review Questions/Topics for the Mid-Term Exam
How do you determine the number of significant digits in an approximated (rounded or
chopped) value of a variable compared to its exact value?
What is Taylor series expansion in 1-D and 2-D?
+ c = 2 + D 3