Sie sind auf Seite 1von 1

Symposium on Engineering Application of MatLab

Tutorial Problems
Instructor: Dr. Somnath Sarangi

1. Can you integrate

1 ax 2 bx5 dx ?

2. Say, a b 1 , can you perform it? If not, perform

1 ax 2 bx5 dx .

3. Will you get any difference between the two command >>[q n]= quad('sin(x)',0,pi/2,1e-10)
and >>[q n]= quad('sin(x)',0,pi/2). Why? Hins. Please have a background study of numerical
integration like Simpsons rule, quadrature etc.
4. Comment on the results obtained from two commands >>quad('1/x^2',-1,1) and >>
int('1/x^2',-1,1).
5. Solve cosh( x ) cos( x) 1 0. (Hints. It will have infinite roots.) In order to get the roots
graphically plot the function cosh( x ) cos( x) and draw a horizontal line at y=-1. The
intersecting points are the roots. (Hints. >>ezplot('cosh(x)*cos(x)',[0,100,-2,2]); hold on;
ezplot('-1',[0,100,-2,2]))
6. Put >> ezplot('sin(x^5)') in the command window. Why the graph is so odd. How can you
plot sin x 5 ?
7. Find the continuity of the function f ( x) x1/ 2 ( x 1) 2 . Comment on its differentiability.
8. Find left and right limit at 0 for the functions a) 1/ x , b) sin(1/ x) , c) ln(1 x 2 ) x .
9. Draw a helix with parametric equation x cos t , y sin t , z pt (say p=1/10) with
EZPLOT3 command.
10. Type >> help taylortool. Through TAYLORTOOL you can view the plot of desired partial
sum about any desired point. At the same time you will get comparison with the function.
Play with it with the function sin(x), exp(x)..
11. Find solutions; 7x4- 3x2 + x = 2.
12. Find the solution; b+11c+3d+8a=11, a+2b+6c+d=10, 2d-6a+7c=17, 2c+3d=7.
13. Can you solve through symbolic toolbox the boundary value problem stated in Lecture# 1,
3 pz
z&
0.
i.e., &
( p t 2 )2
& g sin 0 for three initial conditions a)
14. Solve the equation of motion of a pendulum &
l
o
&
(0) 5 5 /180, (0) 0
b) (0) 40o 40 /180, &(0) 0
c)
o
5
&
(0) 180 , (0) 10 . Report your observations. Hints. There will be change in the
time period. The phase plot in last case will be different from first two. Choose any physical
value of g and l .
x& ( x 2 1) x& x 0 for 0.01 and apply
15. Solve the equation of Van der Pol Oscillator &
variety of initial conditions. Report your result in phase plot.
16. Through the transformation rule T / RTR t , examine that hydrostatic pressure does not
change with the rotation of coordinates.

Das könnte Ihnen auch gefallen