Changeset 4571 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Sep 17, 2020 3:50:24 PM (3 years ago)
Author:
vondreele
Message:

Improvements to polarization stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r4536 r4571  
    237237
    238238    """
    239     cazm = npcosd(Azm)
    240     sazm = npsind(Azm)
    241     pola = ((1.0-Pola)*cazm**2+Pola*npsind(Azm)**2)*npcosd(Tth)**2+   \
    242         (1.0-Pola)*sazm**2+Pola*cazm**2
    243     dpdPola = -npsind(Tth)**2*(sazm**2-cazm**2)
     239    cazm = npcosd(Azm)**2
     240    sazm = npsind(Azm)**2
     241    pola = ((1.0-Pola)*cazm+Pola*sazm)*npcosd(Tth)**2+(1.0-Pola)*sazm+Pola*cazm
     242    dpdPola = -npsind(Tth)**2*(sazm-cazm)
    244243    return pola,dpdPola
    245244   
Note: See TracChangeset for help on using the changeset viewer.