Trigonometry

- added trigonometry
- some errors fixed