Changeset 6e604f8 in sasmodels
- Timestamp:
- Oct 24, 2017 10:05:08 AM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 5110e16
- Parents:
- 20fe0cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explore/asymint.py
r20fe0cd r6e604f8 24 24 25 25 class MPenv: 26 sqrt = mp.sqrt 27 exp = mp.exp 28 expm1 = mp.expm1 29 cos = mp.cos 30 sin = mp.sin 31 tan = mp.tan 26 sqrt = staticmethod(mp.sqrt) 27 exp = staticmethod(mp.exp) 28 expm1 = staticmethod(mp.expm1) 29 cos = staticmethod(mp.cos) 30 sin = staticmethod(mp.sin) 31 tan = staticmethod(mp.tan) 32 @staticmethod 32 33 def sas_3j1x_x(x): 33 34 return 3*(mp.sin(x)/x - mp.cos(x))/(x*x) 35 @staticmethod 34 36 def sas_2J1x_x(x): 35 37 return 2*mp.j1(x)/x 38 @staticmethod 36 39 def sas_sinx_x(x): 37 40 return mp.sin(x)/x 38 41 pi = mp.pi 39 mpf = mp.mpf42 mpf = staticmethod(mp.mpf) 40 43 41 44 class NPenv: 42 sqrt = np.sqrt43 exp = np.exp44 expm1 = np.expm145 cos = np.cos46 sin = np.sin47 tan = np.tan48 sas_3j1x_x = s p.sas_3j1x_x49 sas_2J1x_x = s p.sas_2J1x_x50 sas_sinx_x = s p.sas_sinx_x45 sqrt = staticmethod(np.sqrt) 46 exp = staticmethod(np.exp) 47 expm1 = staticmethod(np.expm1) 48 cos = staticmethod(np.cos) 49 sin = staticmethod(np.sin) 50 tan = staticmethod(np.tan) 51 sas_3j1x_x = staticmethod(sp.sas_3j1x_x) 52 sas_2J1x_x = staticmethod(sp.sas_2J1x_x) 53 sas_sinx_x = staticmethod(sp.sas_sinx_x) 51 54 pi = np.pi 52 mpf = float55 mpf = staticmethod(float) 53 56 54 57 SLD = 3
Note: See TracChangeset
for help on using the changeset viewer.