kyu_5.diophantine_equation package

Submodules

kyu_5.diophantine_equation.solution module

kyu_5.diophantine_equation.solution.sol_equa(n: int) → list[source]

Finds all integers x, y (x >= 0, y >= 0) solutions of a diophantine equation of the form:

x2 - 4 * y2 = n

kyu_5.diophantine_equation.test_solution module

class kyu_5.diophantine_equation.test_solution.SolutionTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

pytestmark = [Mark(name='skip', args=(), kwargs={'reason': 'The solution is not ready'})]
test_solution_basic()[source]
test_solution_big()[source]
test_solution_empty()[source]
test_solution_medium()[source]

Module contents