Changeset 18695bf in sasview for sansmodels/src/sans/models/FractalCoreShellModel.py
- Timestamp:
- Jan 18, 2011 10:38:36 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 18b89c4
- Parents:
- 1b02da1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/FractalCoreShellModel.py
r8f20419d r18695bf 3 3 from sans.models.CoreShellModel import CoreShellModel 4 4 from scipy.special import gammaln 5 from math import exp, pow, sin, atan 5 from math import exp, sin, atan 6 from numpy import power 6 7 from copy import deepcopy 7 8 … … 79 80 #calculate S(q) 80 81 sq = Df*exp(gammaln(Df-1.0))*sin((Df-1.0)*atan(x*corr)) 81 sq /= pow ((x*r0),Df) * pow((1.0 + 1.0/(x*corr*x*corr)),((Df-1)/2))82 sq /= power((x*r0),Df) * power((1.0 + 1.0/(x*corr*x*corr)),((Df-1)/2)) 82 83 sq += 1.0 83 84 return sq
Note: See TracChangeset
for help on using the changeset viewer.