The reasons for the prosperity of mathematics in Song and Yuan Dynasties are the transformation of productive forces, the development of economy, the promotion of science and technology, the rulers' attention to mathematics and the influence of the neo-Confucianism culture of "learning from others" in Song Dynasty.