If you find this scary, consider using Requio's Java libraries for Basic4Android, and eliminate need for maths and trigs, yet produce data-rich and stunning astronomy apps with B4A.