@ -39,8 +39,15 @@ double tangentFunction(double angle) {
return tan(angle * M_PI / 180.0);
}
// scientificmode
// Logarithmic functions
double logarithmFunction(double x) {
// Logarithm with base 10
return log10(x);
int scientificMode(){
double num, result;
@ -15,6 +15,8 @@ double cosineFunction(double angle);
double tangentFunction(double angle);
double logarithmFunction(double x);
int mode(int userChoice);
int displayMenu();