Added tan inverse method