Browse Source

refactoring: description added for double

remotes/origin/develop
Leon Wolf 11 months ago
parent
commit
e2f50f2de6
  1. 6
      src/trigonometricFunctions.c

6
src/trigonometricFunctions.c

@ -4,20 +4,20 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
//function for trigonometric //function for trigonometric
//Function 1
//Function 1 double
double* calculate_sin_double(double angle) { double* calculate_sin_double(double angle) {
double* result= malloc(sizeof (double)); double* result= malloc(sizeof (double));
*result=sin(angle); *result=sin(angle);
return result; return result;
} }
//Function 2
//Function 2 double
double* calculate_cos_double(double angle) { double* calculate_cos_double(double angle) {
double* result= malloc(sizeof (double)); double* result= malloc(sizeof (double));
*result=cos(angle); *result=cos(angle);
return result; return result;
} }
//Function 3
//Function 3 double
double* calculate_tan_double(double angle) { double* calculate_tan_double(double angle) {
double* result= malloc(sizeof (double)); double* result= malloc(sizeof (double));

Loading…
Cancel
Save