naginterfaces.library.specfun.exp_​complex

naginterfaces.library.specfun.exp_complex(z)[source]

exp_complex evaluates the exponential function , for complex .

For full information please refer to the NAG Library document for s01ea

https://www.nag.com/numeric/nl/nagdoc_28.5/flhtml/s/s01eaf.html

Parameters
zcomplex

The argument of the function.

Returns
ezcomplex

The value of the exponential function.

Raises
NagValueError
(errno )

The imaginary part of argument is so large that the result has no precision: .

Warns
NagAlgorithmicWarning
(errno )

Argument causes overflow in real part of result: .

(errno )

Argument causes overflow in imaginary part of result: .

(errno )

Argument causes overflow in both real and imaginary parts of result: .

(errno )

The imaginary part of argument is so large that the result is accurate to less than half precision: .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

exp_complex evaluates the exponential function , taking care to avoid machine overflow, and giving a warning if the result cannot be computed to more than half precision. The function is evaluated as , where and are the real and imaginary parts respectively of .

Since and are less than or equal to in magnitude, it is possible that may overflow although or does not. In this case the alternative formula is used for the real part of the result, and for the imaginary part. If either part of the result still overflows, a warning is returned through argument .

If is too large, precision may be lost in the evaluation of and . Again, a warning is returned through .