Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Matlap Bisection Method with While

Yazar: Tugberk
Konu: Matlap Bisection Method with While
Tarih: 29/3/2017, 11:52 (GMT 3)

function x = bisecwhile(f,a,b,tol)
c = f(a);
d=f(b);

if c*d>0
warning('sectigin araliki degistir')
end
x = (a+b)/2
y = f(x)
while abs(f(x)) > tol
x = (a+b)/2;
y = f(x);
disp ([ x y])
if c*y b=x;
else
a=x;
end
end
x = (a+b)/2;



This post first appeared on Mhendislerin Mekan, please read the originial post: here

Share the post

Matlap Bisection Method with While

×

Subscribe to Mhendislerin Mekan

Get updates delivered right to your inbox!

Thank you for your subscription

×