Browse Source

multiplication by euler prime added

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
3460453ea8
  1. 4
      src/multiplication.c
  2. 1
      src/multiplication.h

4
src/multiplication.c

@ -187,6 +187,10 @@ int multiply_exponentiation(int base, int exponent) {
return result; return result;
} }
int multiply_by_euler_prime(int num) {
return (num << 1) + (num << 2) - num;
}

1
src/multiplication.h

@ -25,6 +25,7 @@ int multiply_recursive_optimized(int num1, int num2);
int multiply_octal_numbers(int num1, int num2); int multiply_octal_numbers(int num1, int num2);
int multiply_hex_numbers(int num1, int num2); int multiply_hex_numbers(int num1, int num2);
int multiply_exponentiation(int base, int exponent); int multiply_exponentiation(int base, int exponent);
int multiply_by_euler_prime(int num);
#endif // MULTIPLICATION_H #endif // MULTIPLICATION_H

Loading…
Cancel
Save