From 996e26a9681131dde0aefb93cb12e8f3f57a2d0e Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 22:06:20 +0100 Subject: [PATCH] sineDegrees --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 1b6961d..0dc9a0d 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -169,3 +169,8 @@ float squareRootPlusOne(float x) { float cubeRootPlusOne(float x) { return cbrt(x) + 1; } + +// Function to calculate the sine of an angle in degrees +float sineDegrees(float x) { + return sin(degreesToRadians(x)); +}