Changeset 1e40ed1 in sasview for sansmodels/src


Ignore:
Timestamp:
Aug 23, 2012 10:22:16 AM (12 years ago)
Author:
Kieran Campbell <kieranrcampbell@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
10b3e1e
Parents:
fe112d1a
Message:

Small problem with the maths in starpolymer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/c_models/starpolymer.cpp

    rf1e0c1eb r1e40ed1  
    2727  double d_background = background(); 
    2828 
    29   double u = d_R2 * pow(q,2); 
    30   double v = pow(u,2.0) * d_arms / (3.0 * d_arms - 2.0); 
     29  double u_2 = d_R2 * pow(q,2); 
     30  double v = u_2 * d_arms / (3.0 * d_arms - 2.0); 
    3131 
    3232  double term1 = v - 1.0 + exp(-v); 
Note: See TracChangeset for help on using the changeset viewer.