!================================== subroutine GAUSS1(n,A,b,ic) real :: A(4,4),b(4),tmp integer :: i,j,n,k,ic,itmp,imax eps=1.0E-10 ic=0 do k=1,n itmp=k do i=K+1,n if (abs(A(i,k))>abs(A(itmp,k))) then itmp=i end if end do imax=itmp do j=k,n tmp=A(imax,j) A(imax,j)=A(k,j) A(k,j)=tmp end do tmp=b(imax) b(imax)=b(k) b(k)=tmp if (abs(A(k,k))