You are on page 1of 1

Name : ___________________________ Exam Seat No.

: ___________

THE MAHARAJASAYAJIRAOUNIVERSITY OF BARODA


Department of Mathematics, Faculty of Science
M.Sc. (Mathematics) Semester- I Mid semester examination 2017
Day : Thursday Date : 24-08-2017 Time :9.00 a.m.- 9.45 a.m.
Subject : Mathematics Course MAT2108 : Computing Techniques in Mathematics using C++ : I

Question Q1 Q2 Q3 Total
No. (5) (6) (4) (15)
_____________________ ______________________
Marks
Signature of the Examiner Signature of the Supervisor
obtained

Q.1 Answer the following :


i Write an equivalent function using reference parameter for the following function: [1]
int Testfu ( int n) Answer :
{
return 2*n+1;
}
ii. √
Write a function for computing the mathematical function 𝑧 = 𝑦 + tan(𝑥 + 𝑦)𝑒 [2]

iii. State the difference between the interpolating polynomial and the least square polynomial. [1]

iv. In the least square fit, the error function considered is _______________________________ [1]

Q.2 Write any ONE :


(a) Write a program using functions to find minimum of each row of the given real matrix and [6]
OR print the matrix and its row minimums against each row.
(b) Write a program using functions to check whether the given square matrix is an Idempotent
or not?
Q.3 Attempt any ONE : [4]
(a) The table below gives the temperatures T ( in oC ) and lengths l ( in mm) of a heated rod. If
l = a +bT , find the best values for a and b
T 20 30 40 50 60 70
l 800.3 800.4 800.6 800.7 800.9 801.0
OR
(b) Derive the normal equations for fitting polynomial function of degree k to the given m data
points using least square regression.

=*=*=*=

You might also like