boost_has_expm1.ipp 554 B

12345678910111213141516171819202122232425
  1. // (C) Copyright John Maddock 2005.
  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. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_HAS_EXPM1
  7. // TITLE: expm1
  8. // DESCRIPTION: The std lib has a C99-conforming expm1 function.
  9. #include <math.h>
  10. namespace boost_has_expm1{
  11. int test()
  12. {
  13. double x = 0.5;
  14. x = ::expm1(x);
  15. (void)x;
  16. return 0;
  17. }
  18. }