in the middle of your main function? If you want to "incorporate the cmath functions" you don't need to do this at all. Delete these lines, #include<string>, then do something like this:
1 2 3 4 5 6
case'S':
double result = sin(val);
cout << "The sine of your number is " << std::to_string(result) << endl;
break;
for your cases.
and this: cout << "The cosine of your number is " << val *
you haven't even bothered finishing the line of code.