I have a graphing calculator app that can graph basic trig functions like sin and cos, and the user can specify if he wants it in radians or degrees. My question is how do I perform tangent, cotangent, etc functions in degrees? I know I'd have to use Math.cos() and Math.sin() in combination somehow in a formula but then how would I convert it to degrees? Thanks for the help.
1
votes
1 Answers
4
votes
Doesn't toRadians <==> toDegrees() work ?
You can use these methods to convert from degrees to radians and the other way around