brots Subroutine

subroutine brots(n, nmax, k, kk, R, v)

Arguments

Type IntentOptional AttributesName
integer :: n
integer :: nmax
integer :: k
integer :: kk
real :: R
real :: v

Contents

Source Code


Source Code

      subroutine brots(n,nmax,k,kk,R,v)
      implicit double precision (a-h,o-z)
      dimension R(*),v(*)
      ipip=kk
      do i=k-1,1,-1
        ip=i+1
        ipi=ipip-nmax+i
        ii=ipi-1
        call angle(v(i),v(ip),cos,sin)
        call rot(n-i,R(ipi),R(ipip),cos,sin)
        v(ip)=sin*R(ii)
        R(ii)=cos*R(ii)
        ipip=ii
      end do
      end subroutine brots