Archaeoastronomy is also closely associated with historical astronomy , the use of historical records of heavenly events to answer astronomical problems and the history of astronomy , which uses written records to evaluate past astronomical traditions .