Complex graphs

In one of the math assignments your teacher asks you to plot the following function:
Knowing the software available online, you do it very quickly. Yet, your teacher asks you to write your own program that would print this graph.
For that, as a first step, you would need to know the value of the function at each possible coordinate.
notion image
You decide to first write a program that given a single coordinate, would print the value of the function.
The input consists of two floating-point numbers x and y.
The program should print the value of the function written above.
Input
Output
0 0
1
Hint
The math built-in library has cos and sin functions. You can use them to solve his problem.
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue