Added method to solve trignometric equations
added invert_complex method