Question
please expalin how to do problem 5 in exercise 5 in matlab

Unfortunately, not all graphs will immediately give us an answer. The following exercise illustrates a possible trouble ident
0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB Code:

close all
clear
clc

% Part 1
x = linspace(-0.2,0.2,100);
f = x.*sin(1./x);
plot(x,f), hold on
disp('With 100 points, we observe the same value from -0.002 to 0.002.')

% Part 2
x = linspace(-0.2,0.2,1000);
f = x.*sin(1./x);
plot(x,f), hold on

% Part 3
disp('Even with 1000 points, we observe the same value (f = 0) around x = 0, which may indeed be the limiting value.')

% Part 4 & 5
y1 = abs(x);
y2 = -abs(x);
plot(x,y1,x,y2)
legend('100 Points', '1000 Points', 'y = |x|', 'y = -|x|')
xlabel('x')
disp('The plot of f(x) with 1000 points is between the plots of |x| and -|x|, which suggests that the limit is zero.')
disp('For Part 4, Option (3)')
disp('For Part 5, Limit = 0')

Plot:

100 Points Pints 0.15 0.1 0.05 ง.05 -0.1 0.15 0.1 0.1 0.15 02

Zoomed Plot:

103 100 Points Pints x 10ง

Output:

With 100 points, we observe the same value from -0.002 to 0.002.
Even with 1000 points, we observe the same value (f = 0) around x = 0, which may indeed be the limiting value.
The plot of f(x) with 1000 points is between the plots of |x| and -|x|, which suggests that the limit is zero.
For Part 4, Option (3)
For Part 5, Limit = 0

Add a comment
Know the answer?
Add Answer to:
Unfortunately, not all graphs will immediately give us an answer. The following exercise illustra...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT