Add some special math function
This commit is contained in:
parent
47f2e247e9
commit
0ff1b04b3d
3 changed files with 246 additions and 0 deletions
|
@ -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
12
sample/test_special.cpp
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue