barycentric_rational_incl_test.cpp 803 B

123456789101112131415161718192021222324252627
  1. // Copyright John Maddock 2017.
  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. //
  6. // Basic sanity check that header <boost/math/special_functions/gamma.hpp>
  7. // #includes all the files that it needs to.
  8. //
  9. #ifdef _MSC_VER
  10. #pragma warning(disable:4459)
  11. #endif
  12. #include <boost/math/interpolators/barycentric_rational.hpp>
  13. //
  14. // Note this header includes no other headers, this is
  15. // important if this test is to be meaningful:
  16. //
  17. #include "test_compile_result.hpp"
  18. void compile_and_link_test()
  19. {
  20. double data[] = { 1, 2, 3 };
  21. double y[] = { 34, 56, 67 };
  22. boost::math::barycentric_rational<double> s(data, y, 3, 2);
  23. check_result<double>(s(1.0));
  24. }