From fac379793f88999635a4f0fbc4d2cc95a3f6683e Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 15:44:26 +0100
Subject: [PATCH 01/47] =?UTF-8?q?Hinzuf=C3=BCgen=20neuer=20Bibliotheken?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/c/funktionen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 6747445..b5ee404 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -1,2 +1,4 @@
 #include <stdio.h>
+#include <stdint.h>
+#include <stdbool.h>
 #include "funktionen.h"

From bffbcdb84f37647e2878bb18fbbe2c7fe2400294 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 15:58:57 +0100
Subject: [PATCH 02/47] square funktion

---
 src/c/funktionen.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index b5ee404..e2b2251 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -2,3 +2,10 @@
 #include <stdint.h>
 #include <stdbool.h>
 #include "funktionen.h"
+
+// Function to calculate the square of a number
+float square(float x) {
+return x * x;
+}
+
+

From 8cba48a694de22b2fc17a44ba06c78c4d47740f1 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 15:59:36 +0100
Subject: [PATCH 03/47] square funktion header

---
 src/c/funktionen.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 248f2f8..a00e3f3 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -1,6 +1,7 @@
 #ifndef FUNKTIONEN_H
 #define FUNKTIONEN_H
 
-
+// Function to calculate the square of a number
+float square(float x);
 
 #endif
\ No newline at end of file

From 4b31f40819337a484f0a6f734cb929b9f8641e8e Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:01:24 +0100
Subject: [PATCH 04/47] square funktion test

---
 src/test/test_funktionen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 0729a16..9ea83ab 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -11,6 +11,10 @@ void tearDown(void)
 {
 }
 
+void test_square(void) {
+    float result = square(2.5);
+    TEST_ASSERT_EQUAL_FLOAT(6.25, result);
+}
 
 
 #endif
\ No newline at end of file

From 5aeb57ca5691226d87644ada60a87bfba91cc40b Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:08:13 +0100
Subject: [PATCH 05/47] squareroot funktion

---
 src/c/funktionen.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index e2b2251..ba5383b 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -8,4 +8,13 @@ float square(float x) {
 return x * x;
 }
 
+float squareRoot(float x) {
+if (x >= 0) {
+return sqrt(x);
+} else {
+printf("Error: Invalid input for square root!\n");
+return 0;
+}
+}
+
 

From 12ff346eff1ada528f8426b8fbda4c0e3ac9876d Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:10:23 +0100
Subject: [PATCH 06/47] squareroot funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index a00e3f3..6f517c5 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -4,4 +4,7 @@
 // Function to calculate the square of a number
 float square(float x);
 
+// Function to calculate the square root of a number
+float squareRoot(float x);
+
 #endif
\ No newline at end of file

From 6a914e846596d1866696b6b34e92322e5a2209bb Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:11:03 +0100
Subject: [PATCH 07/47] squareroot funktion test

---
 src/test/test_funktionen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 9ea83ab..3c10c4b 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -16,5 +16,9 @@ void test_square(void) {
     TEST_ASSERT_EQUAL_FLOAT(6.25, result);
 }
 
+void test_squareRoot(void) {
+    float result = squareRoot(9.0);
+    TEST_ASSERT_EQUAL_FLOAT(3.0, result);
+}
 
 #endif
\ No newline at end of file

From d8aedd1eba57bd78d123f0b92ceab13a6406ed4a Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:14:38 +0100
Subject: [PATCH 08/47] cube funktion

---
 src/c/funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index ba5383b..79e25b5 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -17,4 +17,9 @@ return 0;
 }
 }
 
+// Function to calculate the cube of a number
+float cube(float x) {
+return x * x * x;
+}
+
 

From 99a6f721d62431cc45fabfafd12571d1235f8a85 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:15:05 +0100
Subject: [PATCH 09/47] cube funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 6f517c5..767df58 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -7,4 +7,7 @@ float square(float x);
 // Function to calculate the square root of a number
 float squareRoot(float x);
 
+// Function to calculate the cube of a number
+float cube(float x);
+
 #endif
\ No newline at end of file

From 512520d23ffd0290d0e4ac9346579833617bc04d Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:15:42 +0100
Subject: [PATCH 10/47] cube funktion test

---
 src/test/test_funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 3c10c4b..a49ef97 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -21,4 +21,9 @@ void test_squareRoot(void) {
     TEST_ASSERT_EQUAL_FLOAT(3.0, result);
 }
 
+void test_cube(void) {
+    float result = cube(2.0);
+    TEST_ASSERT_EQUAL_FLOAT(8.0, result);
+}
+
 #endif
\ No newline at end of file

From ff8ee0efe79f23b6043316981636d0a5240e0606 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:20:03 +0100
Subject: [PATCH 11/47] cuberoot funktion

---
 src/c/funktionen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 79e25b5..40d41d3 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -22,4 +22,7 @@ float cube(float x) {
 return x * x * x;
 }
 
-
+// Function to calculate the cube root of a number
+float cubeRoot(float x) {
+return cbrt(x);
+}

From 1d9828d5b223de77a40ca26f5baa07401f827be2 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:20:20 +0100
Subject: [PATCH 12/47] cuberoot funktion hearder

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 767df58..8377a0d 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -10,4 +10,7 @@ float squareRoot(float x);
 // Function to calculate the cube of a number
 float cube(float x);
 
+// Function to calculate the cube root of a number
+float cubeRoot(float x);
+
 #endif
\ No newline at end of file

From b1d255fee6b1e8af6ae7fab43ded2f22ebdf9b83 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 16:20:49 +0100
Subject: [PATCH 13/47] cuberoot funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index a49ef97..26c8030 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -26,4 +26,10 @@ void test_cube(void) {
     TEST_ASSERT_EQUAL_FLOAT(8.0, result);
 }
 
+void test_cubeRoot(void) {
+    float result = cubeRoot(27.0);
+    TEST_ASSERT_EQUAL_FLOAT(3.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 0100fa823d7375c0d6ba5ce6bca4850bc0e1b30a Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:32:56 +0100
Subject: [PATCH 14/47] absolute funktion

---
 src/c/funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 40d41d3..b762515 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
+#include <math.h>
 #include "funktionen.h"
 
 // Function to calculate the square of a number
@@ -26,3 +27,8 @@ return x * x * x;
 float cubeRoot(float x) {
 return cbrt(x);
 }
+
+// Function to calculate the absolute value of a number
+float absolute(float x) {
+return fabs(x);
+}

From fda57e8d0c4eae22a3d46f556edd028a97cad6ec Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:34:45 +0100
Subject: [PATCH 15/47] absolute funktion test

---
 src/c/funktionen.h         | 3 +++
 src/test/test_funktionen.c | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 8377a0d..037ed94 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -13,4 +13,7 @@ float cube(float x);
 // Function to calculate the cube root of a number
 float cubeRoot(float x);
 
+// Function to calculate the absolute value of a number
+float absolute(float x);
+
 #endif
\ No newline at end of file
diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 26c8030..0f0b22c 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -32,4 +32,9 @@ void test_cubeRoot(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_absolute(void) {
+    float result = absolute(-5.0);
+    TEST_ASSERT_EQUAL_FLOAT(5.0, result);
+}
+
 #endif
\ No newline at end of file

From d4af25db0f40c21c4fcfd1e5a67d56317b686ad7 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:44:05 +0100
Subject: [PATCH 16/47] logarithm funktion

---
 src/c/funktionen.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index b762515..6ec9a84 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -32,3 +32,13 @@ return cbrt(x);
 float absolute(float x) {
 return fabs(x);
 }
+
+// Function to calculate the logarithm (base 10) of a number
+float logarithm(float x) {
+if (x > 0) {
+return log10(x);
+} else {
+printf("Error: Invalid input for logarithm!\n");
+return 0;
+}
+}

From ff2ad41f4eb10f87eb0a6fb21ada5ad2d3754379 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:44:44 +0100
Subject: [PATCH 17/47] logarithm funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 037ed94..fa73c03 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -16,4 +16,7 @@ float cubeRoot(float x);
 // Function to calculate the absolute value of a number
 float absolute(float x);
 
+// Function to calculate the logarithm (base 10) of a number
+float logarithm(float x);
+
 #endif
\ No newline at end of file

From 269428aa8cc076967395512d3383bc8e1944c3f8 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:46:24 +0100
Subject: [PATCH 18/47] lograrithm funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 0f0b22c..39eb3d5 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -37,4 +37,10 @@ void test_absolute(void) {
     TEST_ASSERT_EQUAL_FLOAT(5.0, result);
 }
 
+void test_logarithm(void) {
+    float result = logarithm(100.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 389b6b0b09f911e81e6c01f982293c2967336d9f Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:52:22 +0100
Subject: [PATCH 19/47] log_base_e Funktion

---
 src/c/funktionen.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 6ec9a84..6cc0436 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -42,3 +42,13 @@ printf("Error: Invalid input for logarithm!\n");
 return 0;
 }
 }
+
+// Function to calculate the natural logarithm (base e) of a number
+float naturalLogarithm(float x) {
+if (x > 0) {
+return log(x);
+} else {
+printf("Error: Invalid input for natural logarithm!\n");
+return 0;
+}
+}

From ee40cb151d855da3a1306bb0ef53ab7544410cb3 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:53:00 +0100
Subject: [PATCH 20/47] log_base_e Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index fa73c03..1401fde 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -19,4 +19,7 @@ float absolute(float x);
 // Function to calculate the logarithm (base 10) of a number
 float logarithm(float x);
 
+// Function to calculate the natural logarithm (base e) of a number
+float naturalLogarithm(float x);
+
 #endif
\ No newline at end of file

From b87f0a2713724b8220bdab985936bfeef0504b55 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:53:34 +0100
Subject: [PATCH 21/47] log_base_e Funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 39eb3d5..97e9ceb 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -43,4 +43,10 @@ void test_logarithm(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_naturalLogarithm(void) {
+    float result = naturalLogarithm(100.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 8e81097101870c4003390f5f418afc6f9542946d Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 20:59:59 +0100
Subject: [PATCH 22/47] power Funktion

---
 src/c/funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 6cc0436..8c8f0d2 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -52,3 +52,8 @@ printf("Error: Invalid input for natural logarithm!\n");
 return 0;
 }
 }
+
+// Function to calculate the exponentiation of a number to the power of another number
+float power(float x, float y) {
+return pow(x, y);
+}

From 6d751ea40ca94174d0689b90ab2de8a1e147b0f4 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:00:25 +0100
Subject: [PATCH 23/47] power Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 1401fde..e8b0d08 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -22,4 +22,7 @@ float logarithm(float x);
 // Function to calculate the natural logarithm (base e) of a number
 float naturalLogarithm(float x);
 
+// Function to calculate the exponentiation of a number to the power of another number
+float power(float x, float y);
+
 #endif
\ No newline at end of file

From e1f71ece6c24c220018e92969d10fdf8b9a84d7e Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:01:03 +0100
Subject: [PATCH 24/47] power Funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 97e9ceb..4423ae8 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -49,4 +49,10 @@ void test_naturalLogarithm(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_power(void) {
+    float result = power(2.0, 3.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 8.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 30fa69497e5c8865accd3a8a62347943d122da40 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:07:21 +0100
Subject: [PATCH 25/47] factorial Funktion

---
 src/c/funktionen.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 8c8f0d2..bffcaeb 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -57,3 +57,17 @@ return 0;
 float power(float x, float y) {
 return pow(x, y);
 }
+
+// Function to calculate the factorial of a number
+int factorial(int x) {
+if (x >= 0) {
+int result = 1;
+for (int i = 1; i <= x; i++) {
+result *= i;
+}
+return result;
+} else {
+printf("Error: Invalid input for factorial!\n");
+return 0;
+}
+}

From 7c0acfe34432d335dbcf99aa15834b258c24d47f Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:07:40 +0100
Subject: [PATCH 26/47] factorial Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index e8b0d08..7a45053 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -25,4 +25,7 @@ float naturalLogarithm(float x);
 // Function to calculate the exponentiation of a number to the power of another number
 float power(float x, float y);
 
+// Function to calculate the factorial of a number
+int factorial(int x);
+
 #endif
\ No newline at end of file

From ea34141d3cc72b6d65b4c6b2e441a0ec45f30318 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:09:10 +0100
Subject: [PATCH 27/47] factorial Funktion test

---
 src/test/test_funktionen.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 4423ae8..b0f2bd4 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -55,4 +55,11 @@ void test_power(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_factorial(void) {
+    int result = factorial(5);
+    TEST_ASSERT_EQUAL_INT(120, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
+
 #endif
\ No newline at end of file

From 029d81db445de79a97968b23981bf376df2cf7d4 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:47:39 +0100
Subject: [PATCH 28/47] floorValue

---
 src/c/funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index bffcaeb..8b9dcbf 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -71,3 +71,9 @@ printf("Error: Invalid input for factorial!\n");
 return 0;
 }
 }
+
+// Function to calculate the floor value of a number
+float floorValue(float x) {
+return floor(x);
+}
+

From 77e1f6df266b3461c25f756d811297c631a796f7 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:48:12 +0100
Subject: [PATCH 29/47] floorValue Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 7a45053..40ce9c4 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -28,4 +28,7 @@ float power(float x, float y);
 // Function to calculate the factorial of a number
 int factorial(int x);
 
+// Function to calculate the floor value of a number
+float floorValue(float x);
+
 #endif
\ No newline at end of file

From c8e46255b0748ee9a6d608826513ddf68e61e40e Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:48:39 +0100
Subject: [PATCH 30/47] floorvalue Funktion test

---
 src/test/test_funktionen.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index b0f2bd4..7d7c1b8 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -29,7 +29,6 @@ void test_cube(void) {
 void test_cubeRoot(void) {
     float result = cubeRoot(27.0);
     TEST_ASSERT_EQUAL_FLOAT(3.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_absolute(void) {
@@ -40,26 +39,27 @@ void test_absolute(void) {
 void test_logarithm(void) {
     float result = logarithm(100.0);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_naturalLogarithm(void) {
     float result = naturalLogarithm(100.0);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_power(void) {
     float result = power(2.0, 3.0);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 8.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_factorial(void) {
     int result = factorial(5);
     TEST_ASSERT_EQUAL_INT(120, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 
+void test_floorValue(void) {
+    float result = floorValue(5.7);
+    TEST_ASSERT_EQUAL_FLOAT(5.0, result);
+}
+
 #endif
\ No newline at end of file

From 6305daa3bc19d4355242325475e0d2e9c1b52841 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:54:25 +0100
Subject: [PATCH 31/47] ceilingValue Funktion

---
 src/c/funktionen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 8b9dcbf..1796b2c 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -77,3 +77,7 @@ float floorValue(float x) {
 return floor(x);
 }
 
+// Function to calculate the ceiling value of a number
+float ceilingValue(float x) {
+return ceil(x);
+}

From 927b7b589dfaf2ed16802f20420ab1c0f047f84f Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:54:40 +0100
Subject: [PATCH 32/47] ceilingValue Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 40ce9c4..d2387c9 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -31,4 +31,7 @@ int factorial(int x);
 // Function to calculate the floor value of a number
 float floorValue(float x);
 
+// Function to calculate the ceiling value of a number
+float ceilingValue(float x);
+
 #endif
\ No newline at end of file

From ed35b3efc303b11e2ee21afee65d82e4660beac3 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:55:07 +0100
Subject: [PATCH 33/47] ceilingValue Funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 7d7c1b8..86c3260 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -62,4 +62,10 @@ void test_floorValue(void) {
     TEST_ASSERT_EQUAL_FLOAT(5.0, result);
 }
 
+void test_ceilingValue(void) {
+    float result = ceilingValue(5.2);
+    TEST_ASSERT_EQUAL_FLOAT(6.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 823ac2a8c6fb9e3f5df6df7b96f81e19589d6508 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:58:28 +0100
Subject: [PATCH 34/47] test_absoluteDifference Funktion

---
 src/c/funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 1796b2c..1674f5f 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -81,3 +81,8 @@ return floor(x);
 float ceilingValue(float x) {
 return ceil(x);
 }
+
+// Function to calculate the absolute difference between two numbers
+float absoluteDifference(float x, float y) {
+    return fabs(x - y);
+}

From 69faf25cc66ef8f06fb2e3f97f1e27175a60f4c0 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:58:43 +0100
Subject: [PATCH 35/47] test_absoluteDifference Funktoin header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index d2387c9..0a83972 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -34,4 +34,7 @@ float floorValue(float x);
 // Function to calculate the ceiling value of a number
 float ceilingValue(float x);
 
+// Function to calculate the absolute difference between two numbers
+float absoluteDifference(float x, float y);
+
 #endif
\ No newline at end of file

From 32ba90e18374b0ce0d4a2f022b03011b52085661 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 21:59:17 +0100
Subject: [PATCH 36/47] test_absoluteDifference Funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 86c3260..1ccee94 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -68,4 +68,10 @@ void test_ceilingValue(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_absoluteDifference(void) {
+    float result = absoluteDifference(8.0, 4.5);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 3.5, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 93673e0e4f64c03dd9a9ec37f6b6f31f1718f83d Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:01:34 +0100
Subject: [PATCH 37/47] maximum Funktion

---
 src/c/funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 1674f5f..c16fd87 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -86,3 +86,8 @@ return ceil(x);
 float absoluteDifference(float x, float y) {
     return fabs(x - y);
 }
+
+// Function to calculate the maximum of two numbers
+float maximum(float x, float y) {
+    return fmax(x, y);
+}

From cf91788bf03145ad05f9ea46ef3d913ad3302e5c Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:01:55 +0100
Subject: [PATCH 38/47] maximum Funkion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 0a83972..768db23 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -37,4 +37,7 @@ float ceilingValue(float x);
 // Function to calculate the absolute difference between two numbers
 float absoluteDifference(float x, float y);
 
+// Function to calculate the maximum of two numbers
+float maximum(float x, float y);
+
 #endif
\ No newline at end of file

From da9383d3721ed19aa9c453d8123b6bdfc886d668 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:02:21 +0100
Subject: [PATCH 39/47] maximum Funktion test

---
 src/test/test_funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 1ccee94..9fe8f3a 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -74,4 +74,10 @@ void test_absoluteDifference(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_maximum(void) {
+    float result = maximum(5.0, 9.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 9.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
 #endif
\ No newline at end of file

From 0ab016ee9cb1feff355fce5e49b63af060efb298 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:05:17 +0100
Subject: [PATCH 40/47] minimum Funktion

---
 src/c/funktionen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index c16fd87..6295843 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -91,3 +91,9 @@ float absoluteDifference(float x, float y) {
 float maximum(float x, float y) {
     return fmax(x, y);
 }
+
+// Function to calculate the minimum of two numbers
+float minimum(float x, float y) {
+    return fmin(x, y);
+}
+

From d260cbbba687adf32222b3b073c0a61181447166 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:05:42 +0100
Subject: [PATCH 41/47] minimum Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index 768db23..dc466f6 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -40,4 +40,7 @@ float absoluteDifference(float x, float y);
 // Function to calculate the maximum of two numbers
 float maximum(float x, float y);
 
+// Function to calculate the minimum of two numbers
+float minimum(float x, float y);
+
 #endif
\ No newline at end of file

From 10cc45800002a10cfa923906799cb301162ea58f Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:07:56 +0100
Subject: [PATCH 42/47] minimum Funktion test

---
 src/test/test_funktionen.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 9fe8f3a..4f467f9 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -80,4 +80,11 @@ void test_maximum(void) {
     // Add more test cases for different inputs and expected outputs
 }
 
+void test_minimum(void) {
+    float result = minimum(5.0, 9.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 5.0, result);
+    // Add more test cases for different inputs and expected outputs
+}
+
+
 #endif
\ No newline at end of file

From 6e91e60300bee641fe73865844050375dd57c419 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:12:13 +0100
Subject: [PATCH 43/47] average Funktion

---
 src/c/funktionen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 6295843..349fb54 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -97,3 +97,8 @@ float minimum(float x, float y) {
     return fmin(x, y);
 }
 
+// Function to calculate the average of two numbers
+float average(float x, float y) {
+    return (x + y) / 2;
+}
+

From f8c56a241712f200f06da98a0a784aa0f3924f96 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:12:37 +0100
Subject: [PATCH 44/47] agerage Funktion header

---
 src/c/funktionen.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index dc466f6..c4c1f27 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -43,4 +43,7 @@ float maximum(float x, float y);
 // Function to calculate the minimum of two numbers
 float minimum(float x, float y);
 
+// Function to calculate the average of two numbers
+float average(float x, float y);
+
 #endif
\ No newline at end of file

From 040a693915003abf0f8627403c76002a13e3c79e Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:13:01 +0100
Subject: [PATCH 45/47] average Funktion test

---
 src/test/test_funktionen.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 4f467f9..28788a2 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -65,26 +65,26 @@ void test_floorValue(void) {
 void test_ceilingValue(void) {
     float result = ceilingValue(5.2);
     TEST_ASSERT_EQUAL_FLOAT(6.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_absoluteDifference(void) {
     float result = absoluteDifference(8.0, 4.5);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 3.5, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_maximum(void) {
     float result = maximum(5.0, 9.0);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 9.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
 void test_minimum(void) {
     float result = minimum(5.0, 9.0);
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 5.0, result);
-    // Add more test cases for different inputs and expected outputs
 }
 
+void test_average(void) {
+    float result = average(5.0, 9.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 7.0, result);
+}
 
 #endif
\ No newline at end of file

From 02ad6ca4dc7f51a152f4a441fb975990b7d12d20 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:19:52 +0100
Subject: [PATCH 46/47] remainderValue Funktion

---
 src/c/funktionen.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/c/funktionen.c b/src/c/funktionen.c
index 349fb54..b1ba42c 100644
--- a/src/c/funktionen.c
+++ b/src/c/funktionen.c
@@ -102,3 +102,7 @@ float average(float x, float y) {
     return (x + y) / 2;
 }
 
+// Function to calculate the remainder of division between two numbers
+float remainderValue(float x, float y) {
+    return fmod(x, y);
+}

From d1cbecabb9f0320822dc91047b950dcc732e9c28 Mon Sep 17 00:00:00 2001
From: Abdelrahman <fdai7981@fhfddvz11.rz.hs-fulda.de>
Date: Sun, 4 Feb 2024 22:21:50 +0100
Subject: [PATCH 47/47] remainderValue Funktion test

---
 src/c/funktionen.h         | 2 ++
 src/test/test_funktionen.c | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/src/c/funktionen.h b/src/c/funktionen.h
index c4c1f27..26f686a 100644
--- a/src/c/funktionen.h
+++ b/src/c/funktionen.h
@@ -46,4 +46,6 @@ float minimum(float x, float y);
 // Function to calculate the average of two numbers
 float average(float x, float y);
 
+// Function to calculate the remainder of division between two numbers
+float remainderValue(float x, float y);
 #endif
\ No newline at end of file
diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c
index 28788a2..db518d1 100644
--- a/src/test/test_funktionen.c
+++ b/src/test/test_funktionen.c
@@ -87,4 +87,10 @@ void test_average(void) {
     TEST_ASSERT_FLOAT_WITHIN(0.000001, 7.0, result);
 }
 
+void test_remainderValue(void) {
+    float result = remainderValue(10.5, 3.0);
+    TEST_ASSERT_FLOAT_WITHIN(0.000001, 1.5, result);
+}
+
+
 #endif
\ No newline at end of file