hw1 PDF
hw1 PDF
2012 2013 Spring Homework Assignment # 1 Due: 26/03/13 Tuesday, Lecture Hour In the following problems error tolerance is 10-6 unless otherwise specified. Late homework submissions (even on the same day after the lecture hour) will not be accepted
1. Consider the annuity problem described here. The equation related to the problem is: P i n [ 1 r 1 ]= P out [ 1 1 r
Nin N out
Let Pin = $1000, Pout = $4200, Nin = 35 years, and Nout = 15 years. Find the yearly interest rate r up to 4 digit accuracy using (i) Bisection, (ii) Newton's method. For th first part method take 0 and 1 as a and b. For the second part test the performance of the Method for initial conditions x0 = 0 and x0 = 1. Also implement an algorithm by combining the two methods, which will converge faster than either of the two. 2. Find a root of the following nonlinear equation cos x 1 =0 1 e2x
using a) Newtons method and b) fixed-point iteration. Start with x0 = 3. Take error tolerance as 10-6. For fixed point iteration you have to find a converging formula. For each part, plot approximate relative error vs iteration number using logarithmic scale for error axis. 3. Find a root of the following equation x 35x 2 7x 3=0 using a) Newton's method, b) Modified Newton's method. Start with x0 = 3. 4. Consider the sine integral function
x
sint x =
0
sin t dt t
x 0 with sint 0 =1
Evaluate the above function a) by evaluating the integral exactly b) using Taylor polynomials such that the maximum error of the approximation for sint(x) be bounded by 5x10-9 on the interval [-1,1] 5. Evaluate the following limit using Taylor series about a = 0. lim
x 0
1 cos x x2