DEPARTMENT OF COMPUTER SCIENCE
FACULTY OF INFORMATION TECHNOLOGY AND APPLIED SCIENCES
LEAD CITY UNIVERSITY, IBADAN
FIRST SEMESTER, 2013/2014 ACADEMIC SESSION
LECTURER-IN-CHARGE: PROF. B. A. OLUWADE
CSC 403: NUMERICAL COMPUTATION II (with MATLAB)
What do you understand by the Euler method ?
y/ = 3y + 1
y(0) = 2
be an initial value problem. Using Euler method, present an approximation of y(5) using a step size of 1.
State Simpson’s rule.
Write MATLAB code for finding the numerical approximation of a definite integral using (a) above.
Write the meaning of the following MATLAB commands and illustrate with at least one example each:
rem (x, y)
xlabel ( )
With the aid of examples, explain the meaning and order of evaluation of arithmetic operators and expressions in MATLAB.
Write a MATLAB code for evaluating sin(x)2 + cos(x)2
Write a MATLAB code for drawing the following :
y(x) = sin(3x)
for -5 ≤ x ≤ 15
Write a MATLAB code for finding the approximate solution of an initial value problem using the Euler method.
The midpoint rule, otherwise referred to as the rectangle method, is an algorithm for computing an approximation to a definite integral by finding the area of a collection of rectangles whose heights are determined by the values of functions within the integral . This rule is given by
≈ (b – a) f a + b
where a and b are the endpoints and f(x) is a function. Write a MATLAB code for approximating a definite integral using the rule.
Present a geometrical interpretation of Simpson’s rule.
Find the numerical approximation of
using Simpson’s rule.
The trapezoidal rule is one of the algorithms for finding the approximate solution of a definite integral. It is given by:
= (b – a)(f(a) + f(b))
(a) Write a MATLAB code for evaluating a definite integral using the rule. (b) Use the rule to find the numerical approximation of
What do you understand by MATLAB ?
Explain the practical procedure involved in using MATLAB.
What does the term ‘curve fitting’ mean?
Sketch and comment on each of the following :
y = ai + b, where a, b are real numbers, and i = √1
y = sin αx, where α is a constant
y = cos αx, where α is a constant
Write a MATLAB code for drawing any one of the functions in (b) above.
What is the basic principle involved in the use of composite Simpson’s rule as against Simpson’s rule ?
Write a MATLAB code for numerical approximation of definite integrals using composite Simpson’s rule.
Using real life applications, discuss explicit and implicit methods of numerical computation.
Explain the role of linear algebra in numerical computation.
Using example(s), explain any numerical algorithm which is based on the use of matrices.
Discuss the importance of a course on numerical computation in the curriculum of the Department of Computer Science, Lead City University.
Evaluate each of the following directly i.e. without using a numerical
If y = 19x2 - 5x + 3, find dy/dx
If y = 8x3, find ∫ y dx
Evaluate the above using any numerical algorithm, and compare and contrast the results obtained.
Explain the finite difference method of numerical solution.
Let X =
and Y =
be two 3 x 3 matrices.
Write MATLAB codes to evaluate each of the following:
X3 + Y2
X-2 – Y-5
5X – 7XY-1 + 2
[min (Y4)][max (X7)]
Please join StudyMode to read the full document