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 !read(100,*)aa(1,1),aa(2,1),aa(3,1)
00008 !read(100,*)aa(1,2),aa(2,2),aa(3,2)
00009 !read(100,*)aa(1,3),aa(2,3),aa(3,3)
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 !write(6,'(6f15.10)') a,b,c,alp,bet,gmm 
00024 return 
00025 end 

Generated on 17 Nov 2020 for respack by  doxygen 1.6.1