14 lines
179 B
Python
14 lines
179 B
Python
import numpy as np
|
|
|
|
|
|
def arccot(x):
|
|
return np.arctan2(1.0, x)
|
|
|
|
|
|
def cot(a):
|
|
return np.cos(a) / np.sin(a)
|
|
|
|
|
|
def wrap_to_pi(x):
|
|
return (x + np.pi) % (2 * np.pi) - np.pi
|