print

Function: tch_pseudovoigt

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

tch_pseudovoigt returns the value of the pseudovoigt function, where the parameter fwhm is computed from hg and hl by using the Tom-Cox-Hasting formula.

function call

r = tch_pseudovoigt(x : float,hg: float,hl: float)

VariableTypeDescription
xfloatValue at which the function is evaluated.
hgfloatFunction parameter. Together with hl is used to compute fwhm from Tomson-Cox-Hasting formula.
hlfloatFunction parameter. Together with hg is used to compute fwhm from Tomson-Cox-Hasting formula.
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