print

Function: back_to_back_exp

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

back_to_back_exp returns the value of a back to back exponential peakshape function:

If x < 0:

f = (0.5 * alpha * beta / (alpha + beta)) * exp(alfa * x)

If x >= 0:

f = (0.5 * alpha * beta / (alpha + beta)) * exp(-beta * x)

function call

r = back_to_back_exp(x : float,alpha : float,beta : float)

VariableTypeDescription
xfloatValue at which the function is evaluated.
alphafloatFunction parameter
betafloatFunction parameter
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