Chakravala method (source code)

= Chakravala method
{wiki=Chakravala_method}

The Chakravala method is an ancient Indian algorithm used for solving quadratic equations, particularly those of the form \\(x^2 - Dy^2 = N\\), where \\(D\\) is a non-square positive integer, and \\(N\\) is an integer. This method is notably associated with the work of Indian mathematician Bhaskara II in the 12th century, although it has roots in earlier Indian mathematics.