summaryrefslogtreecommitdiff
path: root/149/CH4/EX4.11/ques11.sce
blob: 31a496d87b68a04e01563cd6db287198b25a97d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
disp('for roles theorem F9x) should be differentiable in (a,b) and f(a)=f(b)');
disp(' Here f(x)=sin(x)/e^x');
disp('');
syms x
y=sin(x)/%e^x;

y1=diff(y,x);
disp(y1);
disp('putting this to zero we get tan(x)=1 ie x=pi/4');
disp('value pi/2 lies b/w 0 and pi. Hence roles theorem is verified');