diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 91311d3..c562164 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -249,10 +249,6 @@ 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); -} // Function to calculate the factorial of a number int factorial(int x) { diff --git a/src/c/funktionen.h b/src/c/funktionen.h index 7f1c547..8c98fe2 100644 --- a/src/c/funktionen.h +++ b/src/c/funktionen.h @@ -111,8 +111,6 @@ 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); // Function to calculate the factorial of a number int factorial(int x); diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 75281f6..e5b4afb 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -46,10 +46,6 @@ void test_naturalLogarithm(void) { TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result); } -void test_power(void) { - float result = power(2.0, 3.0); - TEST_ASSERT_FLOAT_WITHIN(0.000001, 8.0, result); -} void test_factorial(void) { int result = factorial(5);