![]() |
VOOZH | about |
Given a value of angle, you need to calculate Sin and Cos values corresponding to it.
For sin function
Examples:
Input : 90 Output : 1
Output:
1
Time Complexity: O(n)
Space Complexity: O(1)
For cos function
Examples:
Input : 30 Output : 0.86602
Output:
0.86602
Time Complexity: O(n)
Space Complexity: O(1)
If you like GeeksforGeeks(We know you do!) and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org.