Browse Source

cubeRootPlusOne

remotes/origin/Khaled
Khaled 11 months ago
parent
commit
ac9b0da389
  1. 5
      src/c/funktionen.c

5
src/c/funktionen.c

@ -164,3 +164,8 @@ float squareRootPlusOne(float x) {
return 0; return 0;
} }
} }
// Function to calculate the cube root of a number and add 1
float cubeRootPlusOne(float x) {
return cbrt(x) + 1;
}
Loading…
Cancel
Save