The texts provide procedures similar to that of Gaussian elimination and Horner's method for linear algebra and modular method for Diophantine equation, respectively.[4] The achievement of Chinese algebra reached its zenith in the 13th century, when Li Jingzhai invented tiān yuán shù.