Академический Документы
Профессиональный Документы
Культура Документы
MECHANICAL
SUBJECT - NUMERICAL ANALYSIS AND COMP. PROGRAMMING
UNIT 1
SN.
1
2
CAT QUESTIONS
1B1
1C1
1C2
1B2
1C3
1B3
TIME
Findtherootoftheequation
Xex=cos(x)usingtheRegula-Falsimethodcorrecttofourdecimalplaces.
Solvetheequations
10x1-2x2-x3-x4=3
-2x1+10x2-x3-x4=15
-x1-x2+10x3-2x4=27
-x1-x2-2x3+10x4=-9byGaussSeidaliterationmethod.
SolvebyGauss-Jordanmethod:
10x-7y+3z+5u=6
-6x+8y-z-4u=5
3x+y+4z+11u=2
5x-9y-2z+4u=7
DerivetheNewton-Raphsonformulafortheequationf(x)=0.Discussitsgeometrical
interpretation.
ApplyGaussEliminationmethodtosolvetheequations:
x+4y-z=-5
x+y-6z=-12
3x-y-z=4
Findtherealrootoftheequation(UsingNewtonRaphsonMethod)
xlog10x-1.2=0correcttofiveplacesofdecimal.
15
15
15
15
10
Explain the types of errors in brief. The hypotenuse and side of a right angletriangle are found by
measurement to be 75 and 32 respectively. If the possible error in the hypotenuse is 0.2 and that
1A1 inthesideis0.1.Findthepossibleerrorsinthecomputedangle.
10
Explain the difference between open and bracketing methods of root determination. Determine
the root of the equation, x sin x + x cos x =0, near x = p using Newton-Raphsons method correct
1B4 tothreedecimalplaces.
15
15
15
10
10
15
9
10
11
12
13
14
Explain, how round off errors can effect the results, determined using elimination method and how the
1A2 results can be improved using pivoting.
1C4 Solve the following equation by Gauss-Jordan method.
2x - 3y + z = -1
x + 4y + 5z = 25
3x - 4y + z = 2
x
1B5 Findarealrootof2x10g10 =7correcttofourdecimalplacesusing
iterationmethod.
2 3 4
Ifu=4x y /z anderrorsinx,y,zbe.001,computetherelativemaximum
errorinuwhenx=y=z=1.
1B7 Findthedoublerootoftheequation:
3
2
x x x+1=0
1C5 SolvethefollowingequationsbyGaussEliminationmethod
1B6
15
1B8
16
1B9
17
1A3
18
1B10
19
1B11
20
1B12
21
1B13
22
1C6
23
1C7
1B14
24
25
1C8
26
1B15
27
AB16
28
1A4
29
1C9
30
31
1C10
32
1A5
15
15
10
10
15
15
15
15
15
10
15
10
15
10
15
33
1A6
34
1B17
35
1B18
36
1B19
37
1B20
38
1B21
39
1C11
40
1C12
41
1C13
42
1C14
43
1B22
44
1B23
45
1C15
46
1C16
47
1B24
48
1C17
49
1B25
UNIT 2
SN. CAT QUESTIONS
1
2A1 Useleastsquaresregressiontofitastraightlinetothefollowingdata:
10
10
10
10
15
15
15
15
15
15
15
15
TIME
15
2B1
2B2
2B3
2A2
2B4
2B5
2B6
15
15
15
15
15
15
15
20
26
2A3
10
2A4
11
2A5
12
2A6
13
2B7
14
2B8
15
2B9
16
2B10
17
2B11
18
2B12
19
2B13
20
21
2B14
2A7
22
2B15
23
2A8
24
2A9
25
2B16
Agex
45
50
55
60
65
Premiu
114.84
96.16
83.32
74.48
68.48
m y
Whatistheobjectiveofcurvefitting.
Namethevariousmethodsofcurvefitting.
Reduce the following equation as linear equation :- (a) y=mxn + c (b) y=axn ( c) y=axn+blogx (d)
bx
y=ae (e)xy=ax+by
Differentiatebetweenmethodof"GroupAverage"andlesssquareforcurvefitting.
Differentiatebetweenforward,backward¢raldifferencetable.
Whatisshiftoperator.
WhatisAvg.operator.
Establish the relationship between the operator :- (a) D = E -1 (b) =1-E-1 c) = E1/2 (d)=1/2(E1/2+E-1/2)
WritethegeneralformulaforNewton'sforwardinterpolation.
WritethegeneralformulaforNewton'sbackwardinterpolation.
Whatarethecriteriafortherightchoiceofinterpolationformula.
EnlisttheuseofInterpolationmethods
Determinef(x)asapolynomialinxforthefollowingdata:
-4
-1
0
2
5
x
1245
33
5
9
1335
f(x)
Fromtheaheadtable,estimatethenumberofstudentwhoobtained
Marksbetween40and45:
Marks
30-40
40-50
50-60
60-70 70-80
No.ofStudents
31
42
51
35
31
Bythemethodofleastsquares,findthestraightlinethatbestfitsthefollowing
data:
x
1
2
3
4
5
y
14
27
40
55
68
Usingmethodofleastsquares,fitarelationoftheformy=abxtothefollowingdata
x
2
3
4
5
6
y
144
172.8
207.4
248
298.5
UsingNewtonsforwardformula,findthevalueoff(1.6),if:
x
1
1.4
1.8
2.2
y
3.49
4.82
5.96
6.5
10
10
10
15
E
M
T
N
5
7
10
15
15
15
15
15
-1/2
26
2B17
27
2B18
28
2B19
29
2A10
UNIT 3
SN. CAT QUESTIONS
rd
1
3A1 DerivetheexpressionforSimpsons1/3 rule
15
15
10
15
TIME
15
giventhat
x:4.04.24.44.64.85.05.2
logx:1.38631.43511.48161.52611.56861.60941.6487
Solvethedifferentialequationdy/dx=-xy withinitial,conditiony=2atx=0,bymodified
3C1 Eulersmethodandobtainyatx=0.2intwosteps,correctupto4decimalplace
15
15
15
15
th
3
4
5
Using Runge-Kuttas 4 order method determine y for x=0.1,0.2 and 0.3 for the given differential
2
3B1 equationdy/dx=xy+y ,y(0)=1.
2
3B2 Givendy/dx=1+y ,wherey=0whenx=0,findy(0.2),y(0.4)andy(0.6),bytaking
h=0.2usingRunge-Kuttamethodof4thorder.
3C2 UsingmodifiedEulersmethod,findanapproximatevalueofywhenx=0.3,given
thatdy/dx=x+yandy=1whenx=0.
8
9
3A2
(i)Trapezoidalrule(ii)Simpson's1/3rule
(iii)Simpson's3/8ruleandcomparetheresultwithitsactualvalue
3C3 UsingModifiedEuler'smethod,obtainasolutionoftheequation
dy/dx=x+|y|withinitialconditionsy=1atx=0fortherange0x0.6instepsof0.2.
Apply Runge-Kutta method of 4th order to find an approximate value of y for x=0.2 in steps of 0.1
2
3B3 ifdy/dx=x+y ,giventhaty=1atx=0
Using Runge-Kutta method of fourth order, solve : dy/dx = y -x /y + x ; with y(0) =1at x=0.2,
3B4
0.4.
11
Using modified Euler's method,find an approximate value of y when x=0.3, given that dy/dx=x+y
3C4 andy=1whenx=0.
Find y(0.8) correct to 4 decimal places if y'=y-x2, y(0.6) = 1.7379 by using Runge-Kutta method
3B5 offourthorder.
12
3B6
10
13
Givendy/dx=y-x/y+xwithinitialconditiony=1atx=0;findyforx=0.1byEuler'smethod.
Solve the following by Euler modified method : dy/dx=log(x+y),y(0)=2 at x=1.2 and 1.4 with
3B7 h=0.2.
14
3B8
15
3A3
16
3A4
17
3A5
18
3A6
19
3A7
20
3B9
21
3B10
22
3B11
23
3A8
24
3A9
UsingRunge-kuttamethodforfourthorder,solve:dy/dx=y -x /y +x withy(0)=1atx=0.2,0.4.
WritethegeneralformulaforNumericalintegration.
DeveloptheNumericalintegrationformulaforTrapezoidalrule.
DeveloptheNumericalintegrationformulaforSimpson's1/3rule.
DeveloptheNumericalintegrationformulafor3/8rule.
DifferentiateSimpson's1/3&3/8rule.
DifferentiatebetweenEuler's&modifiedEuler'smethod.
WritethegeneralformulaforsolvingordinarydifferentialequationusingRungemethod..
WritethegeneralformulaforsolvingordinarydifferentialequationusingRunge-Kuttamethod..
CalculatethevalueofsinxdxbySimpsons1/3ruleusing11-ordinates
xrangesfrom0-180degree
ThevelocityV(km/min)ofamopedwhichstartsfromrest,isgivenatfixed
Intervaloftimet(min)asfollows:
t
2
4
6
8
10
12
14
16
18
V
10
18
25
29
32
20
11
5
2
15
15
15
15
15
15
15
15
15
10
10
10
15
15
Estimateapproximatelydistancecoveredin20minutes.
25 3A10 Evaluatedx/1+xtaking7ordinatesbyapplyingSimpsons3/8rule.Deduce
2
thevalueofloge .Where'x'rangesfrom0-1.
26
3B12
27
3C5
28
3A11
29
3A12
30
3B13
31
3B14
32
3A13
33
3B15
2
3
Findthevalueoflog3fromx /1+x dx(thevalueofxrangesfrom0to1)usingSimpson's1/3
2
UseRunge'smethodtoapproximateywhenx=1.1giveny=1.2atx=1anddy/dx=3x+y
UNIT 4
SN. CAT QUESTIONS
1
4A1 Derivethe5pointstandardfinitedifferenceschemeforlaplaceequation
15
15
15
15
15
15
15
15
TIME
5
u=0
ui,j=[ui+1,j+ui-1,j+ui,j+1+ui,j-1]
2
4B1 SolvethePoissonsequation u=8x2y2forthesquaremeshgivenbelowwithu(x,y)=0
u7
u4
u1
u8
u5
u2
u9
u6
u3
4C1
15
15
4B2
4B3
4C2
10
4F1
11
4C3
12
4B4
13
4E1
14
4F2
15
15
15
15
15
15
15
15
15
15
15
1000
15
500
0
0
2
2
Find the values of u(x,t) satisfying the parabolic equation u/t = 4 u/x and the boundary
conditions u(0,t)=0=4(8,t) and u(x,0)=4x-1/2x2 at the points x=i : 1,2,.7 and t=1/8 j : j =
4C4 0,1,..5
Evaluate the pivotal values of the equation uu=16Uxx, taking Dx=1 upto t=1.25. The boundary
16
17
conditionsareu(0,t)=u(5,t)=0,ut(x,0)=0andu(x,0)=x2(5-x)
4C6 Solvetheparabolicequation:
4C5
18
19
20
21
22
23
24
25
26
27
28
4B5
4B6
4A2
4A3
4B7
4B8
4C7
4E2
4E3
4A4
4D1
UNIT 5
SN. CAT QUESTIONS
1
5A1 Statewhatiswronginthestatement
2
5A2
5A3
5A4
5A5
Printf(%f,%d,%S,price,count,city);
Statewhatiswronginthestatement:
Printf(%-S,%C\n,city,code);
Showtheexactoutputofthefollowingstatement
Printf(%2d\n%f,count,price);
Showtheexactoutputofthefollowingstatement
Printf(%-10d%-15S,count,city);
Find the errors if any in following looping segments. Assume that all the variables have been
declaredandassignedvalues
(i)while(count!=10);
{count=1;
sum=sum+x;
count=count+1;
}
(ii)for(p=10;p>0;
p=p-1;
printf(%f,p);
5A6
Findtheerrorsifanyinthefollowingprogramstatements:
(i)for(i=1,i<=5;i++)
for(j=1,j<=4,j++)
10
TIME
2
5D1
5A7
5B1
5B2
5B3
5C1
10
11
12
5B4
5C2
5C3
14
15
5B5
5B6
Determinewhatwillbeoutputofthefollowingprogramsegment
(i)for(i=0;string[i]=\0;i++;
printf(%d\nstring[i];
(ii)for(i=0;i<=strelen[string];;)
{string[i++]=i;
printf(%S\n,string[i];
Statewhetherthefollowingfunctionheadersarevalidorinvalidandwhyinvalid?
(i)average(x,y,z);
(ii)power(a,n-1)
(iii)product(m,10);
(iv)doubleminimum(floata;floatb;)
ExplainthevariouslogicaloperatorsusedinCprogrammingwithexample.
StatethevarioustypesoflogicalstatementsthatareusedinCprogrammingwith
theirsyntaxandexample.
Writenotesonthefollowing:
(i)Array
(ii)Breakstatement
(iii)Loops
(iv)Declarationstatement
(v)Pointers
WriteaCprogramforsolutionofordinarydifferentialequationbyEulersmethod.
Withanexampleexplaintheconditionaloperatorsavailablein'C'Language.
Writeaprogramtostore10numbersinanarrayandarrangetheminascendingorder.
Writeaprogramtogeneratethepattern
*
**
***
****
*****
DiscussaboutCconstants,CvariablesandrulesfornamingCvariables.
Discussaboutvariousshorthandassignmentoperatorsandrelationaloperatorsavailable
10
15
15
10
10
10
16
5B7
17
18
19
20
5C4
5B8
5B9
21 5B10
22
5B11
23
5B12
24
5B13
25
5C5
26
5C6
27
5C7
15
15
15
10
10
10
10
10
15
15
15