more automated unit tests

This commit is contained in:
Jeff Wang
2019-11-19 00:00:18 -05:00
parent e907f4571d
commit 218cb67ea7
2 changed files with 132 additions and 4 deletions

View File

@ -25,7 +25,7 @@ using namespace boost::multiprecision;
using std::cout;
using std::endl;
static const int NUM_A_ARR = 9;
static const int NUM_A_ARR = 10;
mpfr_float a_arr[NUM_A_ARR];
mpfr_float ln_a_arr[NUM_A_ARR];
@ -97,7 +97,7 @@ int main(void){
calc = accum;
diff = abs((actual - calc)/actual);
if (diff > 5e-17){
if (diff > 1e-17){
cout << x << ": ";
cout << std::setprecision(18) << accum << ", ";
cout << diff << endl;