Changeset 9cc7fca in sasmodels


Ignore:
Timestamp:
Oct 19, 2016 5:27:30 AM (8 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:
4cdd0cc, d1cfa86, 3a45c2c, bf9de53
Parents:
a23639a
Message:

line 35 now square(f(q)) instead of f(q)*f(q)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/cylinder.c

    r0d6e865 r9cc7fca  
    3333        // alpha(theta,phi) the projection of the cylinder on the detector plane 
    3434        SINCOS(alpha, sn, cn); 
    35         total += Gauss76Wt[i] * fq(q, sn, cn, radius, length)* fq(q, sn, cn, radius, length) * sn; 
     35        total += Gauss76Wt[i] * square( fq(q, sn, cn, radius, length) ) * sn; 
    3636    } 
    3737    // translate dx in [-1,1] to dx in [lower,upper] 
Note: See TracChangeset for help on using the changeset viewer.