diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
| commit | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch) | |
| tree | d702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /map65/libm65/getdphi.f90 | |
| parent | 310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff) | |
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'map65/libm65/getdphi.f90')
| -rwxr-xr-x | map65/libm65/getdphi.f90 | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/map65/libm65/getdphi.f90 b/map65/libm65/getdphi.f90 index e55d7120..f44c2d06 100755 --- a/map65/libm65/getdphi.f90 +++ b/map65/libm65/getdphi.f90 @@ -1,18 +1,18 @@ -subroutine getdphi(qphi) - - real qphi(12) - - s=0. - c=0. - do i=1,12 - th=i*30/57.2957795 - s=s+qphi(i)*sin(th) - c=c+qphi(i)*cos(th) - enddo - - dphi=57.2957795*atan2(s,c) - write(*,1010) nint(dphi) -1010 format('!Best-fit Dphi =',i4,' deg') - - return - end +subroutine getdphi(qphi)
+
+ real qphi(12)
+
+ s=0.
+ c=0.
+ do i=1,12
+ th=i*30/57.2957795
+ s=s+qphi(i)*sin(th)
+ c=c+qphi(i)*cos(th)
+ enddo
+
+ dphi=57.2957795*atan2(s,c)
+ write(*,1010) nint(dphi)
+1010 format('!Best-fit Dphi =',i4,' deg')
+
+ return
+ end
|
