From ac9b0da38942a3f1200ff333f934cf678befbffe Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 21:59:45 +0100 Subject: [PATCH] cubeRootPlusOne --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index d3e8510..1b6961d 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -164,3 +164,8 @@ float squareRootPlusOne(float x) { return 0; } } + +// Function to calculate the cube root of a number and add 1 +float cubeRootPlusOne(float x) { + return cbrt(x) + 1; +}