Changeset 779 for trunk/GSASIImath.py
- Timestamp:
- Oct 4, 2012 4:30:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r774 r779 831 831 def rhoCalc(parms,rX,rY,rZ,res,SGLaue): 832 832 Mag,x0,y0,z0,sig = parms 833 return norm*Mag*np.exp(-((x0-rX)**2+(y0-rY)**2+(z0-rZ)**2)/(2.*sig**2))/(sig*res**3) 833 z = -((x0-rX)**2+(y0-rY)**2+(z0-rZ)**2)/(2.*sig**2) 834 # return norm*Mag*np.exp(z)/(sig*res**3) #not slower but some faults in LS 835 return norm*Mag*(1.+z+z**2/2.)/(sig*res**3) 834 836 835 837 def peakFunc(parms,rX,rY,rZ,rho,res,SGLaue):
Note: See TracChangeset
for help on using the changeset viewer.