#include "trigonometricFunctions.h" #include "math.h" #include #include //function for trigonometric double* calculate_sin_double(double angle) { double* result= malloc(sizeof (double)); *result=sin(angle); return result; } double* calculate_cos_double(double angle) { double* result= malloc(sizeof (double)); *result=cos(angle); return result; } double* calculate_tan_double(double angle) { double* result= malloc(sizeof (double)); *result=tan(angle); return result; }