From 59563610888d79fb3b7b0a27217890036b703453 Mon Sep 17 00:00:00 2001 From: Kat Richey Date: Thu, 27 Oct 2022 23:53:21 -0500 Subject: [PATCH] And tangent --- math/tan.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 math/tan.c diff --git a/math/tan.c b/math/tan.c new file mode 100644 index 0000000..3f1b86f --- /dev/null +++ b/math/tan.c @@ -0,0 +1,5 @@ +#include + +double tan(double x) { + return (cos(x - M_PI_2) / cos(x)) +} \ No newline at end of file