Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sympy import*
- from sympy.solvers.diophantine import diophantine
- var('x y')
- diophantine(x**2 +y**2 -25)#1
- diophantine(x**2 -9-y)#2
- #other way to solve it
- from sympy import*
- from sympy.solvers import solve
- from sympy import symbol
- x = symbol('x')
- y= symbol('y')
- solve(x**2 -9-y)#1
- solve(x**2 +y**2 -25, x)#2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement