You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
600 B

#include "trigonometricFunctions.h"
#include "math.h"
#include <stdio.h>
#include <stdlib.h>
//function for trigonometric
//Function 1 for double
double* calculate_sin_double(double angle) {
double* result= malloc(sizeof (double));
*result=sin(angle);
return result;
}
//Function 2 for double
double* calculate_cos_double(double angle) {
double* result= malloc(sizeof (double));
*result=cos(angle);
return result;
}
//Function 3 for double
double* calculate_tan_double(double angle) {
double* result= malloc(sizeof (double));
*result=tan(angle);
return result;
}