~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to Lib/fftpack/dfftpack/dcosti.f

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
      SUBROUTINE DCOSTI (N,WSAVE)
2
 
      IMPLICIT DOUBLE PRECISION (A-H,O-Z)
3
 
      DIMENSION       WSAVE(1)
4
 
      DATA PI /3.14159265358979323846D0/
5
 
      IF (N .LE. 3) RETURN
6
 
      NM1 = N-1
7
 
      NP1 = N+1
8
 
      NS2 = N/2
9
 
      DT = PI/FLOAT(NM1)
10
 
      FK = 0.0D0
11
 
      DO 101 K=2,NS2
12
 
         KC = NP1-K
13
 
         FK = FK+1.0D0
14
 
         WSAVE(K) = 2.0D0*SIN(FK*DT)
15
 
         WSAVE(KC) = 2.0D0*COS(FK*DT)
16
 
  101 CONTINUE
17
 
      CALL DFFTI (NM1,WSAVE(N+1))
18
 
      RETURN
19
 
      END