Changeset b7e8b94 in sasmodels for sasmodels/kernel_header.c


Ignore:
Timestamp:
Jan 11, 2017 7:20:03 AM (7 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c, 8afefae, 7c2935c
Parents:
fcb33e4
Message:

correct sinTheta not cosTheta in new coord transform, resotres 2d unit tests in cylinder, core_shell_ellipsoid. Sort 1d tests in stacked_cylinder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_header.c

    rf1ec7002 rb7e8b94  
    149149 
    150150#if 1 
     151//think cos(theta) should be sin(theta) in new coords, RKH 11Jan2017 
    151152#define ORIENT_SYMMETRIC(qx, qy, theta, phi, q, sn, cn) do { \ 
    152153    SINCOS(phi*M_PI_180, sn, cn); \ 
    153154    q = sqrt(qx*qx + qy*qy); \ 
    154     cn  = (q==0. ? 1.0 : (cn*qx + sn*qy)/q * cos(theta*M_PI_180));  \ 
     155    cn  = (q==0. ? 1.0 : (cn*qx + sn*qy)/q * sin(theta*M_PI_180));  \ 
    155156    sn = sqrt(1 - cn*cn); \ 
    156157    } while (0) 
Note: See TracChangeset for help on using the changeset viewer.