Comment revisions

This commit is contained in:
Arogon1
2019-12-10 23:35:54 -05:00
parent 862ac23992
commit 79d29c0bd3
10 changed files with 42 additions and 12 deletions

View File

@ -1,11 +1,12 @@
package maths;
//POWER (exponentials) Examples (a^b)
public class Pow {
public static void main(String[] args) {
assert pow(2, 0) == Math.pow(2, 0);
assert pow(0, 2) == Math.pow(0, 2);
assert pow(2, 10) == Math.pow(2, 10);
assert pow(10, 2) == Math.pow(10, 2);
assert pow(2, 0) == Math.pow(2, 0); // == 1
assert pow(0, 2) == Math.pow(0, 2); // == 0
assert pow(2, 10) == Math.pow(2, 10); // == 1024
assert pow(10, 2) == Math.pow(10, 2); // == 100
}
/**