RFactor#

class RFactor(coeffs, angles='dummy')[source]#

Bases: object

Attributes

tuple

Tuple of coefficients (c0, c12, c13, c14).

dict

'c0', 'c12', 'c13', 'c14'.

trigs

Sympy expressions for cosines of 4 angles present in expression for the R-factor.

angles

SymPy symbols for 4 angles.

angles_type

Kind of angles, either 'dummy' (phis) or 'experimental` (thetas).

expr

SymPy expressions for R-factor.

Methods

__init__(coeffs[, angles])

Expression describing polarization and angular momentum dependence of a pathway.

det_angle([angles])

Return expr.

dict_to_expr()

Regenerate expression from dict.

expr_relative()

Return R-factor expressions relative to XXXX polarization.

expr_xxxx()

Return R-factor expression for XXXX polarization.

from_expr(rexpr[, angles])

Make RFactor from R-factor expression.

from_gterms(gterms[, pterms, angles])

Make RFactor from G-factor and polarization terms.

from_pathway(pw[, highj, normalize, ...])

Return R-factor corresponding to rotsim2d.dressedleaf.Pathway.

numeric(thetai, thetaj, thetak, thetal[, Ji])

Try to efficiently evaluate R-factor with NumPy.

numeric_rel(thetai, thetaj, thetak, thetal)

Try to efficiently evaluate relative R-factor with NumPy.