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.
|
|
#ifndef TASCHENRECHNER_H
#define TASCHENRECHNER_H
//add function
double add(double a, double b);
//minus function
double minus(double a, double b);
//multiply function
double multiply(double a, double b);
//divide function
double divide(double a, double b);
//get input and check if its a number
double testForNumber();
//get input and check if its a operator
char testForOperator();
// Square root function
double squareRootFunction(double x);
//..
// Trigonometric functions
double sineFunction(double angle);
double cosineFunction(double angle);
double tangentFunction(double angle);
//..
// Logarithmic functions
double logarithmFunction(double x);
double naturalLogarithmFunction(double x);
double logarithmBase2Function(double x);
//..
// Exponential function
double exponentialFunction(double x);
// ..
// Bitwise AND function
int bitwiseAND(int num1, int num2);
// Bitwise OR function
int bitwiseOR(int num1, int num2);
// Bitwise XOR function
int bitwiseXOR(int num1, int num2);
int mode(int userChoice);
int displayMenu();
#endif // TASCHENRECHNER_H
|