November 13th, 2006, 5:28 pm
QuoteOriginally posted by: badgerbadgerHi all!Referring to Broadie&Kaya's "Exact Simulation of Stochastic volatility and Affine Jump Diffusion Processes"I'm trying to calculate a Modified Bessel Function of the First kind with real positive order and complex argument.I'm trying with C++ but I can't find the code (and to write it by myself isn't so easy!!!).What I find on the net is either for integer orders or for real arguments but not for both!!!Does anyone can help me, please My suggestion: the series representation is straightforward and short to code. For the Gamma function that appears in the series, since you say the order nu is real, you can probably make dowith exponentiating the gammln(x) from Numerical Recipes. regards,