summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/Trigonometry/cotd/dcotds.c
blob: 4ba95b844dce04d17cef53678d40368748235ead (plain)
1
2
3
4
5
6
7
8
9
#include <math.h>
#include "cotd.h"

double dcotds(double in)
{
if(in==0)
printf("Inf\n");
  return (1/tan((M_PI/180.0)*in));
}