*-----------------------------------------------------------------------
*     Copyright (C) 2000-2016 GFD Dennou Club. All rights reserved.
*-----------------------------------------------------------------------
      REAL FUNCTION RRMS0(RX,N,JX)

      REAL      RX(*)


      SUM=0
      DO 10 I=1,JX*(N-1)+1,JX
        SUM=SUM+RX(I)*RX(I)
   10 CONTINUE
      RRMS0=SQRT(SUM/N)

      END
