Changeset a5516b1 in sasmodels for example/weights/maier_saupe.py


Ignore:
Timestamp:
Sep 14, 2018 11:16:10 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master
Children:
1657e21
Parents:
cd23f31
Message:

print sigma, P_2 and P_2 inverse for a given a parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • example/weights/maier_saupe.py

    rcd23f31 ra5516b1  
    127127    import sys 
    128128    a = float(sys.argv[1]) 
     129    sigma = 1/(2*radians(a)**2) 
    129130    #print("P_2", P_2(a), "difference from integral", P_2(a) - P_2_numerical(a)) 
    130     print("P_2, P_2_inv", P_2(a), P_2_inv(P_2(a))) 
     131    print("a=%g, sigma=%g, P_2=%g, P_2_inv(P_2(a))-a=%g" 
     132          % (a, sigma, P_2(a), P_2_inv(P_2(a))-a)) 
Note: See TracChangeset for help on using the changeset viewer.