tools_toms748_inc_test.cpp 931 B

123456789101112131415161718
  1. // Copyright John Maddock 2006.
  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/tools/toms748_solve.hpp>
  7. // #includes all the files that it needs to.
  8. //
  9. #include <boost/math/tools/toms748_solve.hpp>
  10. #define T double
  11. #define Tol boost::math::tools::eps_tolerance<double>
  12. typedef T (*F)(T);
  13. template std::pair<T, T> boost::math::tools::toms748_solve<F, T, Tol >(F, const T&, const T&, const T&, const T&, Tol, boost::uintmax_t&);
  14. template std::pair<T, T> boost::math::tools::toms748_solve<F, T, Tol>(F f, const T& ax, const T& bx, Tol tol, boost::uintmax_t& max_iter);
  15. template std::pair<T, T> boost::math::tools::bracket_and_solve_root<F, T, Tol>(F f, const T& guess, const T& factor, bool rising, Tol tol, boost::uintmax_t& max_iter);