Skip to content

Commit adce654

Browse files
authored
Merge branch 'master' into feature/calculator
2 parents a5d4253 + 12b72f4 commit adce654

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Calculator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ public double divide(int a, int b) {
99
public double squareRoot(double number) {
1010
if (number < 0) throw new IllegalArgumentException("Cannot calculate square root of negative number");
1111
return Math.sqrt(number);
12+
public double power(double base, double exponent) {
13+
return Math.pow(base, exponent);
1214
}
1315
}

0 commit comments

Comments
 (0)