has_gsl.cpp 331 B

123456789101112
  1. // Copyright John Maddock 2015.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <gsl/gsl_sf.h>
  6. int main()
  7. {
  8. double d = gsl_sf_bessel_Jn(2, 1.0);
  9. return d != 0 ? 0 : 1;
  10. }