s17dh {NAGFWrappers}R Documentation

s17dh: Airy functions Bi(z) and Bi'(z), complex z

Description

s17dh returns the value of the Airy function Bi(z) or its derivative Bi'(z) for complex z, with an option for exponential scaling.

Usage

s17dh(deriv, z, scal)

Arguments

deriv

string

Specifies whether the function or its derivative is required.

deriv='F'

: Bi(z) is returned.

deriv='D'

: Bi'(z) is returned.

z

complex

The argument z of the function.

scal

string

The scaling option.

scal='U'

: The result is returned unscaled.

scal='S'

: The result is returned scaled by the factor e^abs(Re(2z sqrt(z) / 3)).

Details

R interface to the NAG Fortran routine S17DHF.

Value

BI

complex

The required function or derivative value.

IFAIL

integer

ifail =0

unless the function detects an error or a warning has been flagged (see the Errors section in Fortran library documentation).

Author(s)

NAG

References

http://www.nag.co.uk/numeric/FL/nagdoc_fl23/pdf/S/s17dhf.pdf

Examples


ifail<-0

deriv<-'F'

z<-complex(1,0.3,0.4)

scal<-'U'

s17dh(deriv,z,scal)


[Package NAGFWrappers version 24.0 Index]