Browse Source

squareRoot square cube cubeRoot operations called

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
801805c4e6
  1. 15
      src/main/c/Calculator/calculator.c

15
src/main/c/Calculator/calculator.c

@ -213,3 +213,18 @@ double logarithm(double num) {
double potential(double base, double exponent) {
return pow(base, exponent);
}
double squareRoot(double num) {
return sqrt(num);
}
double square(double num) {
return num * num;
}
double cube(double num) {
return num * num * num;
}
double cubeRoot(double num) {
return cbrt(num);
}
Loading…
Cancel
Save