init
This commit is contained in:
27
pdc.py
Normal file
27
pdc.py
Normal file
@@ -0,0 +1,27 @@
|
||||
## Math ##
|
||||
|
||||
from math import *
|
||||
|
||||
def sind(x):
|
||||
return sin(radians(x))
|
||||
|
||||
def cosd(x):
|
||||
return cos(radians(x))
|
||||
|
||||
def tand(x):
|
||||
return tan(radians(x))
|
||||
|
||||
def asind(x):
|
||||
return degrees(asin(x))
|
||||
|
||||
def acosd(x):
|
||||
return degrees(acos(x))
|
||||
|
||||
def atand(x):
|
||||
return degrees(atan(x))
|
||||
|
||||
def atan2d(a, b):
|
||||
return degrees(atan2(a, b))
|
||||
|
||||
def norm(*args):
|
||||
return sqrt(sum([float(a)**2 for a in args]))
|
||||
Reference in New Issue
Block a user