Updated common/pmmc.h and associated unit tests

This commit is contained in:
James E McClure
2014-10-23 16:58:38 -04:00
parent eb254d9b9c
commit 4db486ce7c
3 changed files with 73 additions and 227 deletions

View File

@@ -274,7 +274,7 @@ int main (int argc, char *argv[])
toReturn += 1;
printf("TestCylinderArea.cpp: error tolerance exceeded for wn area \n");
}
if (fabs(ans - (2*PI*RADIUS*(N-2)-4*PI*RADIUS*HEIGHT)))/(2*PI*RADIUS*(N-2)-4*PI*RADIUS*HEIGHT)) > 0.02 ){
if (fabs(ans - (2*PI*RADIUS*(N-2)-4*PI*RADIUS*HEIGHT))/(2*PI*RADIUS*(N-2)-4*PI*RADIUS*HEIGHT)> 0.02 ){
toReturn += 2;
printf("TestCylinderArea.cpp: error tolerance exceeded for ns area \n");
}
@@ -290,6 +290,6 @@ int main (int argc, char *argv[])
toReturn += 5;
printf("TestCylinderArea.cpp: error tolerance exceeded for common curve length \n");
}
return toReturn;
}