From 20631017c988a60137353b20d7072cf0e38f507d Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 12:44:52 +0100 Subject: [PATCH] Updated specification and gap at 3 trigonometric function --- src/trigonometricFunctions.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/trigonometricFunctions.c b/src/trigonometricFunctions.c index 6dbdfaf..db262a0 100644 --- a/src/trigonometricFunctions.c +++ b/src/trigonometricFunctions.c @@ -4,21 +4,19 @@ #include #include //function for trigonometric -//Function 1 double +//Function 1 for double double* calculate_sin_double(double angle) { double* result= malloc(sizeof (double)); *result=sin(angle); return result; } -//Function 2 double - +//Function 2 for double double* calculate_cos_double(double angle) { double* result= malloc(sizeof (double)); *result=cos(angle); return result; } -//Function 3 double - +//Function 3 for double double* calculate_tan_double(double angle) { double* result= malloc(sizeof (double)); *result=tan(angle);