Opened 7 years ago

Last modified 7 years ago

#11706 new Bugs

The Bessel function can not support to use complex parameter

Reported by: jufangliang@… Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

Codes are following:

#include <boost/math/special_functions/bessel.hpp> #include <iostream> /*using namespace std;*/ int main(){

std::complex<double> c(1,1); std::cout<<boost::math::cyl_bessel_i(1,5)<<std::endl; std::cout<<boost::math::cyl_bessel_i(1,c)<<std::endl;

}

the std::cout<<boost::math::cyl_bessel_i(1,5)<<std::endl; can implement; But if the second parameter is complex number, it doesn't work.

Attachments (2)

besseltest.cpp (255 bytes ) - added by Jufangliang@… 7 years ago.
Sorry, the cpp file should be this.
besseltest.2.cpp (255 bytes ) - added by Jufangliang@… 7 years ago.
Sorry, the .cpp file should be this.

Download all attachments as: .zip

Change History (3)

by Jufangliang@…, 7 years ago

Attachment: besseltest.cpp added

Sorry, the cpp file should be this.

by Jufangliang@…, 7 years ago

Attachment: besseltest.2.cpp added

Sorry, the .cpp file should be this.

comment:1 by John Maddock, 7 years ago

Component: Nonemath
Owner: set to John Maddock
Note: See TracTickets for help on using tickets.