Astronomy and Mathematics in Ancient China