From f71efd1144e38aa3aca13d8be94a25fbe2561231 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 22:13:05 +0100 Subject: [PATCH] test_cosineDegrees --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 0dc9a0d..8900f8b 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -174,3 +174,8 @@ float cubeRootPlusOne(float x) { float sineDegrees(float x) { return sin(degreesToRadians(x)); } + +// Function to calculate the cosine of an angle in degrees +float cosineDegrees(float x) { + return cos(degreesToRadians(x)); +}