Quote: " Why is dbSIN so inaccurate. "
Trig functions are particularly tricky to evaluate, they usually use some sort of approximation function (be it a taylor-mclaren series or other methods). I wouldn't say that being off by 0.00000005960 can be categorized as "inaccurate".
Solutions I would recommend:
-Try using the sin() function in the <cmath> library, it might be better but probably not significantly
-Use subtraction and check the value, like so:
if (std::abs(dbSIN(30)-dbSIN(150)<=0.0005)
//do something
else
//do something
std::abs() is also found in <cmath>
here is the reference for the <cmath> library, as well as others.
http://www.cplusplus.com/reference/cmath/
Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose