MATH-CMPS 251 Final Examination: Mathematics Problem Solving, Exams of Numerical Methods in Engineering

A final examination for the Mathematics Department's CMPS 251 course at the American University of Beirut, Fall 2006-2007. The exam covers various mathematical problems, including loss of significant figures, mathematical induction, polynomial approximations, and differential equations. Students are required to use only non-programmable and non-graphic calculators.

Typology: Exams

2019/2020

Uploaded on 12/09/2020

Moussa_Swaidan
Moussa_Swaidan 🇮🇹

12 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
AMERICAN UNIVERSITY OF BEIRUT
Faculty of Arts and Sciences
Mathematics Department
MATH-CMPS 251
FINAL EXAMINATION
FALL 2006-2007
Closed Book, Two hours
(ONLY NON-PROGRAMMABLE AND NON-GRAPHIC
CALCULATORS ARE ALLOWED)
STUDENT NAME
ID NUMBER
Problem Out of Grade
1 10
2 15
3 30
4 15
TOTAL 70
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download MATH-CMPS 251 Final Examination: Mathematics Problem Solving and more Exams Numerical Methods in Engineering in PDF only on Docsity!

AMERICAN UNIVERSITY OF BEIRUT

Faculty of Arts and Sciences Mathematics Department

MATH-CMPS 251 FINAL EXAMINATION FALL 2006- Closed Book, Two hours

(ONLY NON-PROGRAMMABLE AND NON-GRAPHIC

CALCULATORS ARE ALLOWED)

STUDENT NAME

ID NUMBER

Problem Out of Grade 1 10

2 15

3 30

4 15

TOTAL 70

  1. (10 points) Loss of significant figures may result in the computation of the following functions of the variable x for certain values of x. Specify these values then propose alternativefunctions that would remedy the loss of significant figures. (If necessary you may use Taylor’s series).

(a) f (x) = ln(x +

x^2 + 1)

(b) g(x) =

x^4 + 4 − 2

(c) (5 points) Fill in the missing statements in the following MATLAB program that computes using nested multiplications, the polyno- mial:

p(x) = a(1) + a(2)x + a(3)x^2 + .... + a(n + 1)xn

function p=nested(a,x) %Input arguments: % vector a representing the coefficients: a(1),...,a(n+1) % a scalar x %Output argument: % p=p(x) the value of the polynomial at x

m=__________________; %get the number of elements of a p=__________________; %initialize p for i=____:____:____ p=_____________ end

Find the number of arithmetic operations needed to execute such algorithm.

  1. (30 points) In this problem, we consider the following table for the func- tion f (x). All computations shall be carried out with 8 significant figures.

xi yi 1.000 1. 1.125 1. 1.250 1. 1.375 1. 1.500 2. 1.625 2. 1.750 2. 1.875 2. 2.000 2.

(a) (5 points) Write the polynomial of degree 3, p(x), that would best approximate f (1.4). Find p(1.4).

(c) (20 points) Consider the approximation of the integral I =

0 f^ (x)dx. Let: (1) xi = ih, i = 0, 1 , ...n, be a subdivision of the interval [0, 1] into n equi-spaced sub- intervals of size h. i. (4 points) Give the formula for the composite trapezoidal rule T (h) used to approximate I. Give an expression of I − T (h) en terms of powers of h.

ii. (8 points) Prove the following relation:

T (

h 2

T (h) 2

h 2

Σn k=0−^1 f (mk),

where mk = (xk + xk+1)/2 is the middle point of the interval (xk, xk+1) in the partition (1).

(Answer Sheet)

  1. (15 points) Consider a second order differential equation given by:

y′′^ = y − 1 , y(0) = 1, y′(0) = 0. 5

(a) (5 points) Write this differential equation in the form → y

′ (t) =

→ F (

→ y (^) ),

→ y (^) (0) =

→ y (^0).

Specify

→ F and^

→ y

(b) (5 points) Complete the formulae for a second order Runge Kutta method of the form:→ k 1 = τ

→ F (

→ Yi) → k 2 = τ...................................... → Yi+1 =

→ Yi +......................................

(c) (5 points) Find approximations to y(0.125) and y′(0.125) using such Runge Kutta method