Its not a C++ problem, its math problem. And I mean formulas. But thanks. I need the steps. The answer is:
sqrt(3)/3
I have the answer but I dont have the steps. I have been trying to solve this for four hours without luck.
It's a long time since I solved any problem like this. But a couple of thoughts, anything involving trig functions and sqrt(3) makes me think in terms of angles like 60 degrees and 30 degrees.
example sin(60) = cos(30) = sqrt(3)/2
Now an interesting thing about the question is the angles 12 and 18. 12+18 = 30.
There are a lot of relationships between different trigonometric functions, expressing one in terms of the other and so on. I suggest you look up some of the formulae for those relationships (sorry, I don't remember them now).