@ -34,6 +34,10 @@ double cosineFunction(double angle) {
return cos(angle * M_PI / 180.0);
}
double tangentFunction(double angle) {
// Convert degrees to radians for trigonometric functions
return tan(angle * M_PI / 180.0);
// scientificmode
@ -13,6 +13,8 @@ double sineFunction(double angle);
double cosineFunction(double angle);
double tangentFunction(double angle);
int mode(int userChoice);
int displayMenu();