blob: 3cf032a149859c2da6aec726f729e68fe255693a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "cotd.h"
#include <math.h>
#define PI 3.14159265
void dcotda(double* in,int size,double* out)
{
double val;
int i=0;
val = PI / 180.0;
for(i=0;i<size;i++)
{
out[i]=1/tan(in[i]*val);
/*printf("The cotangent of %lf degrees is %lf \n", in[i], out[i]);*/
}
}
|