qnli question: What advanced mathematical methods did the Tang dynasty have? sentence: Cubic equations were solved in the Tang dynasty and solutions of equations of order higher than 3 appeared in print in 1245 AD by Ch'in Chiu-shao.