Inverse transformation of arctan2

$\begingroup$

Similar to this and this I'm trying to recover the original 2D field after the arctan2 operation.

Here's a MWE in python:

import numpy as np
theta = np.random.uniform(low=-3*np.pi, high=3*np.pi, size=400)
theta = theta.reshape(20,20)
y = np.sin(theta)
x = np.cos(theta)
phi = np.arctan2(y, x)
# theta = f(phi)?

how to find f? Thanks.

$\endgroup$ 7 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like