From 45a892c70233c7dcafb089c67628c4c8ce42c258 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 22:21:27 +0100 Subject: [PATCH] test_tangentDegrees --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 8900f8b..83ed4ba 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -179,3 +179,8 @@ float sineDegrees(float x) { float cosineDegrees(float x) { return cos(degreesToRadians(x)); } + +// Function to calculate the tangent of an angle in degrees +float tangentDegrees(float x) { + return tan(degreesToRadians(x)); +}