23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example Example 1.<br />

bicgstab<br />

bicgstab(afun,b,tol,maxit,m1fun,m2fun,x0,p1,p2,...) passes<br />

parameters p1,p2,... to functions afun(x,p1,p2,...), m1fun(x,p1,p2,...),<br />

and m2fun(x,p1,p2,...).<br />

[x,flag] = bicgstab(A,b,...) also returns a convergence flag.<br />

Flag Convergence<br />

0 bicgstab converged to the desired tolerance tol within<br />

maxit iterations.<br />

1 bicgstab iterated maxit times but did not converge.<br />

2 Preconditioner M was ill-conditioned.<br />

3 bicgstab stagnated. (Two consecutive iterates were the<br />

same.)<br />

4 One of the scalar quantities calculated during bicgstab<br />

became too small or too large to continue computing.<br />

Whenever flag is not 0, the solution x returned is that with minimal norm<br />

residual computed over all the iterations. No messages are displayed if the<br />

flag output is specified.<br />

[x,flag,relres] = bicgstab(A,b,...) also returns the relative residual<br />

norm(b-A*x)/norm(b). If flag is 0, relres

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!