print

Function: split_pseudovoigt

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

split_pseudovoigt returns the value of the split_pseudovoigt function:

N = 0.25 * fwhm_1 * (eta_1 * 1.0126586 + 2.128934) + 0.25 * fwhm_2 * (eta_2 * 1.0126586 + 2.128934)

If x < 0:

f = (eta_1 * / (1 + 4 * (x / fwhm_1)**2) + (1 - eta_1) * exp(-4*ln2*(x/fwhm_2)**2)) / N

If x >= 0:

f = (eta_2 * / (1 + 4 * (x / fwhm_2)**2) + (1 - eta_2) * exp(-4*ln2*(x/fwhm_2)**2)) / N

function call

r = split_pseudovoigt(x : float,fwhm_1 : float,fwhm_2 : float,eta_1 : float,eta_2 : float)

VariableTypeDescription
xfloatValue at which the function is evaluated.
fwhm_1floatFull width at half maximum.
fwhm_2floatFull width at half maximum.
eta_1floatWeight.
eta_2floatWeight.
rtuple

The tuple returned by the function.

r[0] : int, error code. If non-zero, an error has occurred.

r[1] : str, error message.

r[2]: float, value of the function at x.

examples