diff options
-rw-r--r-- | cosine.c | 2 | ||||
-rw-r--r-- | sine.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ double cos(double input, int precision){ int main(){ const int precision = 20; - const double threshold = 1e-4; + const double threshold = 1e-9; for (int i=0; i<COUNT_OF(piValues);i++){ if ( abs(piValues[i][2]-cos(piValues[i][0],precision))>threshold ){ @@ -28,7 +28,7 @@ double sin(double input, int precision){ int main(){ const int precision = 20; - const double threshold = 1e-4; + const double threshold = 1e-9; for (int i=0; i<COUNT_OF(piValues);i++){ if ( abs(piValues[i][1]-sin(piValues[i][0],precision))>threshold ){ |