Always equal to one (1) :Trigonometry
Statement
Help the student "Samir" to find the function {{f}} and the function {{g}} knowing that [[x]] is an angle measured in degrees and <<f(x)*f(x)+g(x)*g(x) = 1>>.
Hint: Think about Trigonometry.
Input description
Line 1: angle [[x]]
Output description
Line 1: {{f(x)}}
Line 2: {{g(x)}}
Line 3: {{f(x)*f(x)+g(x)*g(x)}}
Functions {{f}} and {{g}} are displayed in alphabetical order.
Constraints
-360< [[x]] < 360
Game modes
Fastest
Test cases
Test 1 Test
Input
1
Output
1
0.02
1
Validator 1 Validator
Input
10
Output
0.98
0.17
1
Test 2 Test
Input
2
Output
1
0.03
1
Validator 2 Validator
Input
52
Output
0.62
0.79
1
Test 3 Test
Input
5
Output
1
0.09
1
Validator 3 Validator
Input
58
Output
0.53
0.85
1
Test 4 Test
Input
8
Output
0.99
0.14
1
Validator 4 Validator
Input
36
Output
0.81
0.59
1
Test 5 Test
Input
50
Output
0.64
0.77
1
Validator 5 Validator
Input
800
Output
0.17
0.98
1
Test 6 Test
Input
175
Output
-1
0.09
1
Validator 6 Validator
Input
342
Output
0.95
-0.31
1
Test 7 Test
Input
300
Output
0.5
-0.87
1
Validator 7 Validator
Input
250
Output
-0.34
-0.94
1
Solution language
Solution
Stub generator input