- Timestamp:
- Oct 24, 2017 11:42:51 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:
- a5f91a7
- Parents:
- 5110e16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explore/asymint.py
r5110e16 r1820208 100 100 qr = env.sqrt((a*qa)**2 + (b*qb)**2 + (c*qc)**2) 101 101 return env.sas_3j1x_x(qr) 102 Fq.__doc__ = "triaxial ellips eminor=%g, major=%g polar=%g"%(a, b, c)102 Fq.__doc__ = "triaxial ellipsoid minor=%g, major=%g polar=%g"%(a, b, c) 103 103 volume = 4*env.pi*a*b*c/3 104 104 norm = CONTRAST**2*volume/10000 … … 177 177 #A, B, C = 4450, 14000, 47 178 178 A, B, C = 445, 140, 47 # integer for the sake of mpf 179 NORM, KERNEL = make_tri ellip(A, B, C)180 NORM_MP, KERNEL_MP = make_tri ellip(A, B, C, env=MPenv)179 NORM, KERNEL = make_triaxial_ellipsoid(A, B, C) 180 NORM_MP, KERNEL_MP = make_triaxial_ellipsoid(A, B, C, env=MPenv) 181 181 elif shape == 'parallelepiped': 182 182 #A, B, C = 4450, 14000, 47 … … 337 337 Q = float(Qstr) 338 338 if shape == 'sphere': 339 print("exact", NORM*s as_3j1x_x(Q*RADIUS)**2)339 print("exact", NORM*sp.sas_3j1x_x(Q*RADIUS)**2) 340 340 print("gauss-20", *gauss_quad_2d(Q, n=20)) 341 341 print("gauss-76", *gauss_quad_2d(Q, n=76))
Note: See TracChangeset
for help on using the changeset viewer.