• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

efficient algorithm for numerical quadrature

Joined
1/20/11
Messages
18
Points
11
I have this function: (K_{i\mu} (z) = \frac{1}{\sinh{({\pi \mu}/2})} \int^\infty_0 \sin{(z \sinh{t})} \sin{(\mu t)} \,dt) which appears in a bond pricing formula I'm trying to implement in C++. The function inside the integral seems sinusoidal as it is a product of two sinusoidal functions (ie the function inside the integral is oscillating). Is there an efficient C++ code to best approximate this, taking into consideration that the upper limit is also infinity?

Thanks!
 
Doesn't sinh blow up at infinity? In which case neither of the sin functions tend to zero, hence the integral can't converge.
 
Back
Top