summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2022-09-29 16:45:43 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2022-09-29 16:45:43 -0400
commited0bcc92f5101043fa9e09a1b7f66f339aaa177b (patch)
treebebcb68a4246e8a819b907185525f0a1734a5ebe
parenteae5d5b8d55f5da69eea990e68497dbc0e74c9f3 (diff)
Increase severity to pass check
-rw-r--r--cosine.c2
-rw-r--r--sine.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cosine.c b/cosine.c
index 934ca3b..28996f0 100644
--- a/cosine.c
+++ b/cosine.c
@@ -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 ){
diff --git a/sine.c b/sine.c
index c483317..a6f0053 100644
--- a/sine.c
+++ b/sine.c
@@ -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 ){