Add some special math function

This commit is contained in:
Guilhem Lavaux 2020-10-03 20:17:07 +02:00
parent 47f2e247e9
commit 0ff1b04b3d
3 changed files with 246 additions and 0 deletions

View file

@ -114,6 +114,9 @@ if (Boost_FOUND)
add_dependencies(graficToDensity ${all_deps})
endif()
endif()
add_executable(test_special test_special.cpp)
target_link_libraries(test_special ${tolink})
endif (Boost_FOUND)
IF (ENABLE_OPENMP AND YORICK_SUPPORT)

12
sample/test_special.cpp Normal file
View file

@ -0,0 +1,12 @@
#include <iostream>
#include "special_math.hpp"
int main()
{
std::cout << CosmoTool::log1p_exp(2.0) << std::endl;
std::cout << CosmoTool::log_modified_bessel_first_kind(100.0, 0.1) << std::endl;
return 0;
}