java - Using Math.cos() to find cosine of angle in degrees -


this question has answer here:

i want give result math.cos() method in java in degrees.i have tried methods converting radians degrees. discovered number pass math.cos() method being treated radians,irrespective of whether convert.please can make give me result in degrees.thanks.

i discovered number pass math.cos() method being treated radians, irrespective of whether convert.

the discovery quite correct, , precisely why convert. once you've done conversion, pass resultant angle (which in radians) math.cos(), , happy.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -