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
Post a Comment