Changeset be5d7df in sasmodels for Kernel-TriaxialEllipse.cpp
- Timestamp:
- Jul 11, 2014 2:50:51 PM (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:
- 496b252
- Parents:
- 2de9a5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Kernel-TriaxialEllipse.cpp
r2de9a5e rbe5d7df 11 11 real q_y = qy[i]/q; 12 12 real pi = 4.0*atan(1.0); 13 real answer=0; 13 14 14 15 //convert angle degree to radian … … 21 22 real cos_nu = (-cos(phi)*sin(psi)*sin(theta)+sin(phi)*cos(psi))*q_x + sin(psi)*cos(theta)*q_y; 22 23 real cos_mu = (-sin(theta)*cos(psi)*cos(phi)-sin(psi)*sin(phi))*q_x + cos(theta)*cos(psi)*q_y; 23 24 real answer=0;25 24 real t = q*sqrt(axisA*axisA*cos_nu*cos_nu+axisB*axisB*cos_mu*cos_mu+axisC*axisC*cos_val*cos_val); 26 25
Note: See TracChangeset
for help on using the changeset viewer.