Changeset b297ba9 in sasmodels for sasmodels/guyou.py
- Timestamp:
- Mar 20, 2019 5:03:50 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/guyou.py
rb3703f5 rb297ba9 68 68 69 69 def ellipticJi(u, v, m): 70 """Returns [sn, cn, dn](u + iv|m).""" 70 71 scalar = np.isscalar(u) and np.isscalar(v) and np.isscalar(m) 71 72 u, v, m = np.broadcast_arrays(u, v, m) … … 100 101 ] 101 102 102 # calculate F(phi+ipsi|m).103 # see Abramowitz and Stegun, 17.4.11.104 103 def ellipticFi(phi, psi, m): 104 """Returns F(phi+ipsi|m). See Abramowitz and Stegun, 17.4.11.""" 105 105 if np.any(phi == 0): 106 106 scalar = np.isscalar(phi) and np.isscalar(psi) and np.isscalar(m) … … 207 207 plt.plot(x, y, 'g') 208 208 209 for long in range(-limit, limit+1, step):210 x, y = guyou_invert(scale*long , scale*long_line)209 for longitude in range(-limit, limit+1, step): 210 x, y = guyou_invert(scale*longitude, scale*long_line) 211 211 plt.plot(x, y, 'b') 212 212 plt.xlabel('longitude')
Note: See TracChangeset
for help on using the changeset viewer.