diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index dc61a74..6e75e9b 100644 --- a/src/main/c/Calculator/calculator.c +++ b/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); +}