diff --git a/src/trig_functions/trig_functions.c b/src/trig_functions/trig_functions.c index 8eec384..ffae719 100644 --- a/src/trig_functions/trig_functions.c +++ b/src/trig_functions/trig_functions.c @@ -2,7 +2,8 @@ #include double calculate_sin(double angle) { - return sin(angle); + if (angle==0) return 0; + else return sin(angle); } double calculate_cos(double angle) {