Changeset aa90015 in sasmodels


Ignore:
Timestamp:
Feb 15, 2018 11:52:38 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
0db7dbd, 3db96b0
Parents:
547c6f0
Message:

polymer_excl_volume: note in the code that scipy gammainc is regularized, hence the gamma scale factor. Refs #1073

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/polymer_excl_volume.py

    r547c6f0 raa90015  
    151151    with errstate(divide='ignore', invalid='ignore'): 
    152152        upow = power(usub, -0.5*porod_exp) 
     153        # Note: scipy gammainc is "regularized", being gamma(s,x)/Gamma(s), 
     154        # so need to scale by Gamma(s) to recover gamma(s, x). 
    153155        result = (porod_exp*upow * 
    154156                  (gamma(0.5*porod_exp)*gammainc(0.5*porod_exp, usub) - 
Note: See TracChangeset for help on using the changeset viewer.