Optimised coordinates/horiz2eq()

* Optimised coordinates/horiz2eq():
  * precompute multiply used variables
  * smart computation of cosines and tangents from sines and cosines