fixed:error

This commit is contained in:
nikikalwar 2020-12-17 06:39:36 +05:30
parent a64c587080
commit 3b1fcd8333

View File

@ -14,13 +14,6 @@ export default function fastPowering(base, power) {
return 1;
}
if(power<0){
power=power*-1;
base=1/base;
// console.log(base);
fastPowering(base,power);
}
if (power % 2 === 0) {
// If the power is even...
// we may recursively redefine the result via twice smaller powers: