Changeset 416609b in sasmodels for sasmodels/models/elliptical_cylinder.py
- Timestamp:
- Apr 8, 2016 12:14:58 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c, a936688, 1ca1fd9
- Parents:
- 65279d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/elliptical_cylinder.py
rec45c4f r416609b 81 81 """ 82 82 83 import math 84 from numpy import pi, inf 83 from numpy import pi, inf, sqrt 85 84 86 85 name = "elliptical_cylinder" … … 117 116 @param length: Length of the cylinder 118 117 """ 119 radius = math.sqrt(r_minor * r_minor * axis_ratio)118 radius = sqrt(r_minor * r_minor * axis_ratio) 120 119 ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 121 120 return 0.5 * (ddd) ** (1. / 3.)
Note: See TracChangeset
for help on using the changeset viewer.