Browse Source

bernouli multiplication added

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
b0b32c18d9
  1. 7
      src/multiplication.c
  2. 2
      src/multiplication.h

7
src/multiplication.c

@ -205,7 +205,12 @@ int repeated_division_multiply(int num1, int num2) {
num2 <<= 1;
}
return result;
}
}
int bernoulli_multiply(int num, int bernoulli) {
return num * bernoulli;
}

2
src/multiplication.h

@ -28,6 +28,8 @@ int multiply_exponentiation(int base, int exponent);
int multiply_by_euler_prime(int num);
int fibonacci_multiply(int num, int fib);
int repeated_division_multiply(int num1, int num2);
int bernoulli_multiply(int num, int bernoulli);

Loading…
Cancel
Save