Write and draw the graph on matlab or octave online of a function which is
(a) Continuous on all points except at x = 1.
(b) Differentiable on all points except at x = 1.
(c) Non-differentiable at five points x = 1, x = 2, x = 3, x = 4 and x = 5.
a)
x=-100:1:100;
y=1./(x-1);
plot(x,y)
b)
x=-100:1:100;
y=1-1./(x-1)+;
plot(x,y)
c)
x=-100:1:100;
y=1./(x-1)+1./(x-2)+1./(x-3)+1./(x-4)+1./(x-5)+;
plot(x,y)
Comments
Leave a comment