      FUNCTION RMIN(N,M,COND,UNITRD,AVERR)
C
C   FOR A LINEAR SYSTEM   (I-KMM)*XM=RHFCN   OF ORDER M, THIS IS THE
C   VALUE OF RELMIN USED IN IEGS. THE VARIABLE UNITRD IS DEFINED IN
C   IEGAUS, AND THE VARIABLES COND AND AVERR ARE DEFINED IN IEGS
C   USING CONEW.
C   IT IS UNLIKELY THAT A SOLUTION X CAN BE FOUND FOR THE ORIGINAL
C   INTEGRAL EQUATION WITH A SMALLER RELATIVE ERROR THAN RMIN.
C
      FLOAT1=M
      FLOAT2=FLOAT(M)/FLOAT(N)
      RMIN=AMAX1((FLOAT1**1.5)*COND*UNITRD,
     *   (FLOAT2**1.5)*AVERR)
      RETURN
      END
