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

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;
}