From 8e81097101870c4003390f5f418afc6f9542946d Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 20:59:59 +0100 Subject: [PATCH] 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); +}