Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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).
Instances
Show BesselResult Source # | |
Defined in Math.BesselJ showsPrec :: Int -> BesselResult -> ShowS # show :: BesselResult -> String # showList :: [BesselResult] -> ShowS # |
:: 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 are the error estimates of the integrals. The field _codes
provides the code indicating success (0) or failure of each integral.