Umstrukturierung
This commit is contained in:
13
utils_angle.py
Normal file
13
utils_angle.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user