Computational Physics: Which is a good C++ library to calculate Bessel's function for complex arguments?
-
I need to calculate values for Bessel's function (and Hankel's function) for complex arguments to do some integrals. http://www.gnu.org/software/gsl/manual/html_node/Bessel-Functions.html and http://www.boost.org/doc/libs/1_35_0/libs/math/doc/sf_and_dist/html/math_toolkit/special/bessel/bessel.html seem to be able to do the job, though only for real arguments. Are there any (preferably open source) C++ libraries for calculating these special functions for complex arguments?
-
Answer:
From the lack of responses, I am assuming that there isn't any. But I did find a FORTRAN library from http://netlib.org/slatec/ that does the job. It is in public domain, and I ended up writing a c++ wrapper for that. In addition, http://code.google.com/p/complex-bessel/ is a GPL licensed C++ wrapper for another version of the Fortran routines from the same author (D.E. Amos) Scipy has a python wrapper (which actually seems to be a python wrapper for a C wrapper for the Fortran code) for Amos' Fortran routines to implement http://docs.scipy.org/doc/scipy/reference/generated/scipy.special.jv.html which can calculate the Bessel function for complex argument. Hope that helps someone else.
Raziman T.V. at Quora Visit the source
Related Q & A:
- How to become a good programmer in C language?Best solution by Quora
- Which is a good online grocery coupon website?Best solution by Yahoo! Answers
- Do I need to know a lot of math and physics to obtain a private pilot's license?Best solution by Yahoo! Answers
- What would be a good song to sing on America's Got Talent?Best solution by Yahoo! Answers
- Is C a good language to start out learning programming?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.