Changeset a5516b1 in sasmodels for example/weights/maier_saupe.py
- Timestamp:
- Sep 14, 2018 11:16:10 AM (6 years ago)
- Branches:
- master
- Children:
- 1657e21
- Parents:
- cd23f31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/weights/maier_saupe.py
rcd23f31 ra5516b1 127 127 import sys 128 128 a = float(sys.argv[1]) 129 sigma = 1/(2*radians(a)**2) 129 130 #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.