From 7b09b34e0203eede22cc09b3c7c7ed869f405333 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 20:23:43 +0100 Subject: [PATCH] cosine Funktion --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 92f25aa..682bf23 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -83,4 +83,9 @@ int characterAppearanceInString(char c, char string[]) { // Function to calculate the sine of an angle in radians float sine(float x) { return sin(x); +} + +// Function to calculate the cosine of an angle in radians +float cosine(float x) { + return cos(x); } \ No newline at end of file