You are on page 1of 2

-------------------The rules on HW --------Leave them as is, Do not delete--------------

HW Format (do not erase):


1. Start each problem on a new A4 page (if possible).
2. Do not use red pen & Leave a left margin (2 cm) and a right margin of 1cm.
3. State the problem statement as is (or print, cut and paste)
4. State the method used
5. Formulate the problem accordingly (derive and present the final equations
used)
6. State the algorithm
7. Carry out the solution by hand calculations for two iterations and the rest as
instructed by problem statement (hand calculations or computer)
8. Present your solution neatly and end with discussion (if more than one method
is used, end your HW with comparison).

1. (a) Using Taylor’ series, derive a formula for the first deriavtive using the
forward difference (i.e, the discrete function values on the right side of x
on x-axis)
(b) Using Taylor’s Series, evaluate the function below at x = 3.1 knowing the
function value at x=3.

f ( x)  3 x 2  2 x  3
(c) Evaluate the first derivaive of the above function at x=3 using the formula
you derived in (a) above. Use x  103

2. Define the following terms:


a. Round-off error: provide an example
b. Truncation error: provide an example
c. “Condition” of a function
d. “Ill-condition”: provide examples of ill functions and ill system of
linear algebraic equations.
e. Absolute error: provide a formula
f. Relative error: provide a formula
g. Loss of significance: provide example

3. Given x=0.2, y=0.33,


(a) Calculate z=x/y to 6 significant digits.
(b) Using 3 significant digits floating point arithmetic, calculate: x+y2+z/3

4. (a) Evaluate the condition of the following function near x  10 4


f(x)= x  1  x
(c) Using 10 significant digits, evalluate the function f(x) at x=10000
(d) Using 10 significant digits, evaluate the function by eliminating the loss of
significant digits as given in the handout. Compare the results in c and d.

5. The current in different parts of an electrical circuit with resistances shown


(see Fig. below) is given by (R1=20 Ohms, R2=0, R3=25, R4=10, R5=30 an d
V1=V2=0 volts and V3=200).
The resulting system is:
 20 i1  55 i2  10 i3  0
 10 i1  10 i2  55i3  200
30 i1  20 i2  10 i3  0
Solve using:
a. Cramer’s rule
b. Gauss elimination
c. Jacobi method (You can use Excel but you need to present one iteration by
calculator and in detail)
d. Gauss-Siedel (You can use Excel but you need to present one iteration by
calculator and in detail)
Comment on the methods

6. What is meant by Relaxation in iterative methods. Explain


 The purpose of relaxtion and
 The types of relaxation and their uses
 Apply to this system

0 1 1  x1  1
1
 0 1  x 2   1
1 1 0  x3  1
 x1  0.5
The solution is  x 2   0.5
 x3  0.5

You might also like