Changeset 755 for trunk/GSASIImath.py
 Timestamp:
 Sep 8, 2012 10:14:53 AM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIImath.py
r753 r755 1065 1065 Q = np.zeros(4) 1066 1066 d = np.sqrt(np.sum(np.array(V)**2)) 1067 V /= d 1067 if d: 1068 V /= d 1069 else: 1070 return [1.,0.,0.,0.] #identity 1068 1071 p = A/2. 1069 1072 Q[0] = np.cos(p) … … 1078 1081 Q = np.zeros(4) 1079 1082 d = np.sqrt(np.sum(np.array(V)**2)) 1080 V /= d 1083 if d: 1084 V /= d 1085 else: 1086 return [1.,0.,0.,0.] #identity 1081 1087 p = A/2. 1082 1088 Q[0] = cosd(p)
Note: See TracChangeset
for help on using the changeset viewer.