Changeset d53d3cd in sasmodels
- Timestamp:
- Dec 23, 2015 10:19:57 AM (9 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:
- ce166d3
- Parents:
- 07e72e6
- Location:
- sasmodels/models
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/ellipsoid.c
ra5899c8 rd53d3cd 14 14 //const double f = ( u==0.0 ? 1.0 : 3.0*(sn-u*cn)/(u*u*u) ); 15 15 const double usq = u*u; 16 const double f = (u < 1 e-1)16 const double f = (u < 1.e-1) 17 17 ? 1.0 + usq*(-3./30. + usq*(3./840. + usq*(-3./45360.)))// + qrsq*(3./3991680.)))) 18 18 : 3.0*(sn/u - cn)/usq; -
sasmodels/models/sphere.py
reb69cce rd53d3cd 98 98 // requires the first 3 terms. Double precision requires the 4th term. 99 99 // The fifth term is not needed, and is commented out below. 100 const double bes = (qr < 1 e-1)100 const double bes = (qr < 1.e-1) 101 101 ? 1.0 + qrsq*(-3./30. + qrsq*(3./840. + qrsq*(-3./45360.)))// + qrsq*(3./3991680.)))) 102 102 : 3.0*(sn/qr - cn)/qrsq; -
sasmodels/models/triaxial_ellipsoid.c
rc138211 rd53d3cd 39 39 //const double fq = ( t==0.0 ? 1.0 : 3.0*(st-t*ct)/(t*t*t) ); 40 40 const double tsq = t*t; 41 const double fq = (t < 1 e-1)41 const double fq = (t < 1.e-1) 42 42 ? 1.0 + tsq*(-3./30. + tsq*(3./840. + tsq*(-3./45360.)))// + tsq*(3./3991680.)))) 43 43 : 3.0*(st/t - ct)/tsq;
Note: See TracChangeset
for help on using the changeset viewer.