print

Function: ikeda_carpenter

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

ikeda_carpenter returns the value of the Ikeda-Carpenter function:

f = 0.5 * (alpha**3)*((1-R)*(x**2)*exp(-alpha*x)+2*R*beta*(1/alpha**3)*(exp(-beta*x)-exp(-alpha*x)*(1+(1+0.5*x*alpha**3)*x*alpha**3)))

function call

r = ikeda_carpenter(x : float,alpha : float,beta : float,R : float)

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