C
C *** EIGEN VALUE EQUATION OF LOVE WAVE IN THE CASE OF C=VS(NL)
C
      REAL FUNCTION FLCT*8 (OM,ML,NL,DNS,VP,VS,THK)
C
      IMPLICIT REAL*8(A-H,O-Z)
      DIMENSION DNS(ML),VP(ML),VS(ML),THK(ML)
      COMPLEX*16 R11,R12,R21,R22,SA11,SA12,SA21,SA22
     *         ,SB11,SB12,SB21,SB22
C
      VP(1)=VP(1)
      BN=VS(NL)
      WN=OM/BN
C
      R11=(1.0D0,0.0D0)
      R12=(0.0D0,0.0D0)
      R21=(0.0D0,0.0D0)
      R22=(1.0D0,0.0D0)
C
      DO 100 IL=NL-1,1,-1
C
        SA11=R11
        SA12=R12
        SA21=R21
        SA22=R22
C
        BM=VS(IL)
        RBM=DSQRT(BN*BN/(BM*BM)-1.0D0)
        QM=WN*RBM*THK(IL)
        CQ=DCOS(QM)
        SQ=DSIN(QM)
C
        SM=DNS(IL)*VS(IL)*VS(IL)
        SB11=DCMPLX(CQ,0.0D0)
        IF(RBM.EQ.0.D0)THEN
          SB12=DCMPLX(0.D0,WN*THK(IL)/SM)
        ELSE
          SB12=DCMPLX(0.0D0,SQ/(SM*RBM))
        END IF
        SB21=DCMPLX(0.0D0,SQ*SM*RBM)
        SB22=DCMPLX(CQ,0.0D0)
C
        R11=SA11*SB11+SA12*SB21
        R12=SA11*SB12+SA12*SB22
        R21=SA21*SB11+SA22*SB21
        R22=SA21*SB12+SA22*SB22
C
  100 CONTINUE
C
      FLCT=IMAG(R21)
C
      RETURN
      END
