added more functions to mymath.py
removed some dead code
rearranged function order into sections
swqpped x and y in interp function