summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/Trigonometry/cotd/scotds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions/Trigonometry/cotd/scotds.c')
-rw-r--r--src/c/elementaryFunctions/Trigonometry/cotd/scotds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c/elementaryFunctions/Trigonometry/cotd/scotds.c b/src/c/elementaryFunctions/Trigonometry/cotd/scotds.c
new file mode 100644
index 0000000..d635dbc
--- /dev/null
+++ b/src/c/elementaryFunctions/Trigonometry/cotd/scotds.c
@@ -0,0 +1,7 @@
+#include <math.h>
+#include "cotd.h"
+
+float scotds(float in)
+{
+ return (1/tanf((M_PI/180.0)*in));
+}