Python numpy unwrap function
问题 I am hoping to convert a array of radians into range [0, 2*pi) and numpy unwrap function is exactly what I need However, when I run the following code to input a = [pi, 2*pi, 3*pi] : import numpy as np a = np.array([np.pi, 2*np.pi, 3*np.pi]) np.unwrap(a) I expect the results to be close to [pi, 0, pi] . However, the output is still: array([ 3.14159265, 6.28318531, 9.42477796]) It is not unwrapped. However, if I instead run the following without using the numpy.pi a = np.array([3.14159265, 6