summaryrefslogtreecommitdiff
path: root/lib/ft8var/twkfreq1var.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/ft8var/twkfreq1var.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/ft8var/twkfreq1var.f90')
-rw-r--r--[-rwxr-xr-x]lib/ft8var/twkfreq1var.f9052
1 files changed, 26 insertions, 26 deletions
diff --git a/lib/ft8var/twkfreq1var.f90 b/lib/ft8var/twkfreq1var.f90
index f4a8be1e..823bf5cb 100755..100644
--- a/lib/ft8var/twkfreq1var.f90
+++ b/lib/ft8var/twkfreq1var.f90
@@ -1,26 +1,26 @@
-subroutine twkfreq1var(ca,nbot,npts,ntop,fsample,a,cb)
-
- use ft8_mod1, only : twopi
- complex, intent(in) :: ca(nbot:ntop)
- complex, intent(out) :: cb(nbot:ntop)
- complex w,wstep
- real a(5)
-
-! Mix the complex signal
- w=1.0; wstep=1.0
-!! x0=0.5*(npts+1)
-!! s=2.0/npts
- do i=0,npts
-!! x=s*(i-x0) ! valid for 'do i=1,npts'
-!! p2=1.5*x*x - 0.5
-!! p3=2.5*(x**3) - 1.5*x
-!! p4=4.375*(x**4) - 3.75*(x**2) + 0.375
-!! dphi=(a(1) + x*a(2) + p2*a(3) + p3*a(4) + p4*a(5)) * (twopi/fsample)
- dphi=a(1) * (twopi/fsample)
- wstep=cmplx(cos(dphi),sin(dphi))
- w=w*wstep
- cb(i)=w*ca(i)
- enddo
-
- return
-end subroutine twkfreq1var
+subroutine twkfreq1var(ca,nbot,npts,ntop,fsample,a,cb)
+
+ use ft8_mod1, only : twopi
+ complex, intent(in) :: ca(nbot:ntop)
+ complex, intent(out) :: cb(nbot:ntop)
+ complex w,wstep
+ real a(5)
+
+! Mix the complex signal
+ w=1.0; wstep=1.0
+!! x0=0.5*(npts+1)
+!! s=2.0/npts
+ do i=0,npts
+!! x=s*(i-x0) ! valid for 'do i=1,npts'
+!! p2=1.5*x*x - 0.5
+!! p3=2.5*(x**3) - 1.5*x
+!! p4=4.375*(x**4) - 3.75*(x**2) + 0.375
+!! dphi=(a(1) + x*a(2) + p2*a(3) + p3*a(4) + p4*a(5)) * (twopi/fsample)
+ dphi=a(1) * (twopi/fsample)
+ wstep=cmplx(cos(dphi),sin(dphi))
+ w=w*wstep
+ cb(i)=w*ca(i)
+ enddo
+
+ return
+end subroutine twkfreq1var