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.
25 lines
532 B
25 lines
532 B
|
|
#include "trigonometricFunctions.h"
|
|
#include "math.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
//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;
|
|
}
|