Question
Solve these commands by Matlab and send a clear pics plz

LAB2 Finding roots of functions by using bracketing methods Incremental search Q1. Find the brackets values using incremental
Bracketing methods Q3- Using bracketing method find the root of the function f (y) = log(y) + 5y from y = -10 to y = 10 Ans.
gmtanh get) m Q4. if y(t) = Find m that makes the velocity exceeds 36 m/s after 4 s? given that ca = 0.25 kg/m Ans. Subtracti
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: If you have any queries related to the answer please do comment. I would be very happy to resolve all your queries.

1)

clc

clear all

close all

format long;

f=@(x) sin(x);

a=-pi;

b=pi;

n=100;

incsearch(f,a,b,n)

function B=incsearch(f,a,b,n)

x=linspace(a,b,n);

B=[];

c=0;

for i=1:length(x)-1

if(f(x(i))*f(x(i+1))<0)

B=[B;x(i) x(i+1)];

c=c+1;

end

end

disp('number of brackets');

disp(c);

end

7 imination.m er.m eidel.m m.m ot.m otNew.m ad.m c=0; 7- 8 - 9 - 10 11 12 13 14 15 - 16 17 18 19 20 - 21 - 22 - b=pi; n=100;

Note: Brother According to Chegg's policy we are only allowed to answer first part if it is not a one word answer and there are many. So, I request you to post other part as separate posts

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Solve these commands by Matlab and send a clear pics plz LAB2 Finding roots of functions...
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