est_latparam.f90
Go to the documentation of this file.00001 subroutine est_latparam(a1,a2,a3,a,b,c,alp,bet,gmm)
00002 implicit none
00003 real(8)::a1(3),a2(3),a3(3)
00004 real(8)::a,b,c,alp,bet,gmm
00005 real(8),parameter::pi=DACOS(-1.0d0)
00006
00007
00008
00009
00010
00011 a=0.0d0
00012 b=0.0d0
00013 c=0.0d0
00014 a=dsqrt(a1(1)**2+a1(2)**2+a1(3)**2)
00015 b=dsqrt(a2(1)**2+a2(2)**2+a2(3)**2)
00016 c=dsqrt(a3(1)**2+a3(2)**2+a3(3)**2)
00017 alp=(a2(1)*a3(1)+a2(2)*a3(2)+a2(3)*a3(3))/b/c
00018 bet=(a3(1)*a1(1)+a3(2)*a1(2)+a3(3)*a1(3))/c/a
00019 gmm=(a1(1)*a2(1)+a1(2)*a2(2)+a1(3)*a2(3))/a/b
00020 alp=dacos(alp)*180.0d0/pi
00021 bet=dacos(bet)*180.0d0/pi
00022 gmm=dacos(gmm)*180.0d0/pi
00023
00024 return
00025 end