Created
September 4, 2016 04:24
-
-
Save Shekharrajak/1d6cbdba4b86993b1c93296a3330d4da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code from sympy.diophantine | |
for solution in solns_pell: | |
for X_i in [-solution[0], solution[0]]: | |
for Y_i in [-solution[1], solution[1]]: | |
s = P*Matrix([X_i, Y_i]) + Q | |
try: | |
sol.add(tuple([as_int(_) for _ in s])) | |
except ValueError: |
Author
Shekharrajak
commented
Sep 4, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment