|
@ -213,3 +213,18 @@ double logarithm(double num) { |
|
|
double potential(double base, double exponent) { |
|
|
double potential(double base, double exponent) { |
|
|
return pow(base, 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); |
|
|
|
|
|
} |