SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
52 stars 41 forks source link

Documentation error for lamellar_stack_paracrystal model #3149

Open jfmoulin opened 1 week ago

jfmoulin commented 1 week ago

Describe the bug Equation 4 of the doc page for the paracrystal lamellar model is incorrect:

S_N(q) = \frac{a_N}{N}[1 + w^2 - 2 w \cos(q \langle D \rangle)]^2

should instead read:

S_N(q) = \frac{a_N}{N [1 + w^2 - 2 w \cos(q \langle D \rangle)]^2}

The c code computing the model correctly implements the second form of the equation.

SasView version (please complete the following information):

Operating system (please complete the following information):

smk78 commented 4 hours ago

Many thanks for bringing this to our attention.

smk78 commented 4 hours ago

Does this need transferring to sasmodels?