summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c
blob: 43e00430da35b474053ebe8b77b3145ff19c31a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "cscd.h"
#include <math.h>
#define PI 3.14159265

void dcscda(double* in,int size,double* out)
{
   	double val;
   	int i=0;
   	val = PI / 180.0;
   	for(i=0;i<size;i++)
	{
		out[i]=1/sin(in[i]*val);
	}
}