Changeset 0496031 in sasmodels for sasmodels/models
- Timestamp:
- Sep 4, 2014 8:31:40 AM (10 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:
- 6ce1a29
- Parents:
- abb22f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/cylinder.c
r5d4777d r0496031 61 61 // Compute angle alpha between q and the cylinder axis 62 62 SINCOS(theta*M_PI_180, sn, cn); 63 // # The following correction factor exists in sasview, but it can't be64 // # right, so we are leaving it out for now.65 // const real correction = fabs(cn)*M_PI_2;66 63 const real q = sqrt(qx*qx+qy*qy); 67 64 const real cos_val = cn*cos(phi*M_PI_180)*(qx/q) + sn*(qy/q); … … 71 68 SINCOS(alpha, sn, cn); 72 69 const real fq = _cyl(twovd, q*radius*sn, q*REAL(0.5)*length*cn); 73 return REAL(1.0e-4) * fq * fq; // * correction;70 return REAL(1.0e-4) * fq * fq; 74 71 }
Note: See TracChangeset
for help on using the changeset viewer.