Original Post
I have a little problem here... The language I am using does not have Math.cos2() function, it only has a Math.cos() function. How do I solve this?
I was looking at the wikipedia article on cosigns and am stumped...
http://en.wikipedia.org/wiki/Law_of_cosines
If it's not included in the language it must be something simple like Math.pow(Math.cos(x),2)? (Cos the the power of two.) Dunno...
I was looking at the wikipedia article on cosigns and am stumped...
http://en.wikipedia.org/wiki/Law_of_cosines
If it's not included in the language it must be something simple like Math.pow(Math.cos(x),2)? (Cos the the power of two.) Dunno...
then that is indeed just cos(x)^2, which you can get using Math.Pow like you say.