You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.1 KiB

  1. #ifndef TASCHENRECHNER_H
  2. #define TASCHENRECHNER_H
  3. //add function
  4. double add(double a, double b);
  5. //minus function
  6. double minus(double a, double b);
  7. //multiply function
  8. double multiply(double a, double b);
  9. //divide function
  10. double divide(double a, double b);
  11. //get input and check if its a number
  12. double testForNumber();
  13. //get input and check if its a operator
  14. char testForOperator();
  15. // Square root function
  16. double squareRootFunction(double x);
  17. //..
  18. // Trigonometric functions
  19. double sineFunction(double angle);
  20. double cosineFunction(double angle);
  21. double tangentFunction(double angle);
  22. //..
  23. // Logarithmic functions
  24. double logarithmFunction(double x);
  25. double naturalLogarithmFunction(double x);
  26. double logarithmBase2Function(double x);
  27. //..
  28. // Exponential function
  29. double exponentialFunction(double x);
  30. // ..
  31. // Bitwise AND function
  32. int bitwiseAND(int num1, int num2);
  33. // Bitwise OR function
  34. int bitwiseOR(int num1, int num2);
  35. // Bitwise XOR function
  36. int bitwiseXOR(int num1, int num2);
  37. int mode(int userChoice);
  38. int displayMenu();
  39. #endif // TASCHENRECHNER_H