diff --git a/udkm1Dsim/simulations/xrays.py b/udkm1Dsim/simulations/xrays.py index 8597537c..e035a7a7 100644 --- a/udkm1Dsim/simulations/xrays.py +++ b/udkm1Dsim/simulations/xrays.py @@ -1388,7 +1388,7 @@ def get_atom_reflection_factor(self, atom, area, deb_wal_fac): - :math:`P(q_z)` is the polarization factor - :math:`A` is the area in :math:`x-y` plane on which the atom is placed - - :math:`M = 0.5(\mbox{dbf} \ q_z)^2)` where + - :math:`M = 0.5 \mbox{dbf} q_z^2` where :math:`\mbox{dbf}^2 = \langle u^2\rangle` is the average thermal vibration of the atoms - Debye-Waller factor @@ -1404,7 +1404,7 @@ def get_atom_reflection_factor(self, atom, area, deb_wal_fac): rho = (-4j*np.pi*r_0 * atom.get_cm_atomic_form_factor(self._energy, self._qz) * self.get_polarization_factor(self._theta) - * np.exp(-0.5*(deb_wal_fac*self._qz)**2))/(self._qz*area) + * np.exp(-0.5*deb_wal_fac*self._qz**2)/(self._qz*area) return rho def get_atom_transmission_factor(self, atom, area, deb_wal_fac): @@ -1419,7 +1419,7 @@ def get_atom_transmission_factor(self, atom, area, deb_wal_fac): (no angle correction) - :math:`A` is the area in :math:`x-y` plane on which the atom is placed - - :math:`M = 0.5(\mbox{dbf} \ q_z)^2` where + - :math:`M = 0.5 \mbox{dbf} q_z^2` where :math:`\mbox{dbf}^2 = \langle u^2\rangle` is the average thermal vibration of the atoms - Debye-Waller factor @@ -1434,7 +1434,7 @@ def get_atom_transmission_factor(self, atom, area, deb_wal_fac): """ tau = 1 - (4j*np.pi*r_0 * atom.get_cm_atomic_form_factor(self._energy, np.zeros_like(self._qz)) - * np.exp(-0.5*(deb_wal_fac*self._qz)**2))/(self._qz*area) + * np.exp(-0.5*deb_wal_fac*self._qz**2))/(self._qz*area) return tau def get_atom_phase_matrix(self, distance):