Changeset 997 for trunk/GSASIIpwd.py
- Timestamp:
- Jul 17, 2013 4:11:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwd.py
r945 r997 443 443 sig = lambda Th,U,V,W: 1.17741*math.sqrt(max(0.001,U*tand(Th)**2+V*tand(Th)+W))*math.pi/180. 444 444 gam = lambda Th,X,Y: (X/cosd(Th)+Y*tand(Th))*math.pi/180. 445 gamFW = lambda s,g: math.exp(math.log(s**5+2.69269*s**4*g+2.42843*s**3*g**2+4.47163*s**2*g**3+0.07842*s*g**4+g**5)/5.)446 445 s = sig(TTh/2.,Inst['U'][1],Inst['V'][1],Inst['W'][1])*100. 447 446 g = gam(TTh/2.,Inst['X'][1],Inst['Y'][1])*100. 448 return gamFW(g,s) 447 return getgamFW(g,s) 448 449 def getgamFW(g,s): 450 'needs a doc string' 451 gamFW = lambda s,g: math.exp(math.log(s**5+2.69269*s**4*g+2.42843*s**3*g**2+4.47163*s**2*g**3+0.07842*s*g**4+g**5)/5.) 452 return gamFW(g,s) 449 453 450 454 def getFCJVoigt(pos,intens,sig,gam,shl,xdata):
Note: See TracChangeset
for help on using the changeset viewer.