NATIONAL INSTITUTE OF TECHNOLOGY CALICUT
Department oI Mechanical Engineering
PROGRAMMING ASSIGNEMENT
[Link]. - Mechanical / Production Engineering (S5 & S7)
ME3027 - COMPUTATIONAL METHODS IN ENGINEERING (ELECTIVE)
1. uevelop a general computer program ln MA1LA8 C8 C to llnd the roots ol the equatlon uslng the
nLW1Cn 8ASCn ML1PCu and solve the problem 2 uslng the developed program.
2. A Spherlcal water tank ol dlameter 3000 mm used ln shopplng complex. 1he volume ln L and water
level ln mm ls related by equatlon v =
( )
uslng and newton rapson method, llnd the helght
ol water column when 1000 L ol water ls poured lnto empty water tank. 1abulate Cuess value,
calculated value and dlllerence.
3. uevelop a general computer program ln MA1LA8 C8 C to llnd the roots ol the equatlon uslng the
MCulllLu nLW1Cn 8ASCn ML1PCu and solve the problem 4 and problem 3, problem 6 uslng the
developed program
4. A uetermlne roots ol equatlon ol the lollowlng transcendental equatlonf
(
x
)
= ln x + sinx, uslng
MCulllLu n8 method. Assume lnltlal guess ol 1.3 1abulate Cuess value, calculated value and
dlllerence.
3. uetermlne root ol f
(
x
)
= (x -Sx + 9x - 7x + 2) wlth lnltlal guess ol 0.3 uslng newton- 8apson
method and Modllled newton 8apson method 1abulate Cuess value, calculated value and
dlllerence.
6. llnd root ol f
(
x
)
= (x -cos x ) uslng newton-8aphson method upto accuracy ol 0.02. Lxplaln
convergence crlterla lor thls method.
7. uevelop a general computer program ln MA1LA8 C8 C to llnd value ol lntergratlon uslng the
trapezoldal rule and solve problem 8 uslng the developed program
8 . uetermlne the value ol
]
sin uslng trapezoldal rule wlth strlp wldth = , number ol strlps =8.
Compare the answers wlth analytlcal answer and determlne the errors
[Link] a general computer program in MATLAB OR C to Iind value oI integration using the
1/3
rd
rule and solve problem 10 using the developed program
10.. uetermlne the lntegratlon ol f
(
x
)
= f(x -2x + 7x - S) ux between x=2.2 to 3.4 assumlng 8 strlps
uslng trapezoldal rule and 1/3 rd rule
[Link] a general computer program in MATLAB OR C to Iind value oI integration using
the 3/8
th
rule and solve problem 12 using the developed program
12. uetermlne the lntegratlon ol the lollowlng lunctlon uslng 1rapezoldal rule and Slmpson's 3/8 th rule
. 1aklng 12 strlps between the llmlts.
( )
= ( + 2 sin )
.
.
Compare the errors ln numerlcal lntegratlon wlth respect to analytlcal solutlon.
13. Develop a general computer program in MATLAB OR C to Iind value oI integration using
Gauss quadrate rule and solve problem 14 to 15 using the developed program
14. Lvaluate
( )
=
]
.
.
uslng Causs quadrature two polnt lormula, Causs quadrature
three polnt lormula. uetermlne the error wlth respect to analytlcal lntegratlon.
13. lntegrate the lunctlon
( )
= cos 2x (1 + sinx) uslng Causs Legendre rule, between the
llmlts 2 and 3.
16. lollowlng ls the data collected lor a certaln process
uetermlne y at x =3 uslng Lagrange's lnterpolatlon uslng computer program.
17. uetermlne value ol y lor x = 1.2 lrom the lollowlng data uslng newton lorward dlllerence lormula .
use computer program.
x 0 2 4 6 8
? -77.3 -69.3 -31.3 13.3 169.7
18. Solve the lollowlng system ol equatlon by Causs -seldel lteratlon method uslng computer program.
1ux + 2x + x = 9
x + 1ux - x = -22
-2x + Sx + 1ux = 22
19. Develop a general computer program in MATLAB OR C to solve system oI equation using
THOMAS Algorithm.
20. Solve the Ein problem done in the class using your developed program. Use ten points and
compare with the analytical solution.
x 3 4 3.3 6 7
? 1.39 2.76 3.03 2.73 1.988
Last date of submission is 25
th
April 2014. Students can also send the soft copies of
program developed and output ( in word file) to [Link]