BesselJ-0.2.0.1: Bessel J-function, Anger J-function, Weber E-function, and Anger-Weber function.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.BesselJ

Synopsis

Documentation

data BesselResult Source #

Data type to store the result of a computation of the Bessel J-function. The fields are _result for the value, _errors for the error estimates of the integrals used for the computation, and _codes for the convergence codes of these integrals (0 for success).

Constructors

BesselResult 

Instances

Instances details
Show BesselResult Source # 
Instance details

Defined in Math.BesselJ

besselJ Source #

Arguments

:: Complex Double

order, integer or complex number with real part > -0.5

-> Complex Double

the variable, a complex number

-> Double

target relative accuracy for the integrals, e.g. 1e-5

-> Int

number of subdivisions for the integrals, e.g. 5000

-> IO BesselResult

result

Bessel-J function. It is computed with two integrals. The field _errors in the result provides the error estimates of the integrals. The field _codes provides the codes indicating success (0) or failure of each integral.