Diophantinengleichung in SagemathPython

Python-Programme
Anonymous
 Diophantinengleichung in Sagemath

Post by Anonymous »

Wie kann ich Sagemath verwenden, um diese Diophantingleichung auf Sagemath zu lösen: < /p>
$ 36N^3 - 32 = xy \ cdot (y + 2 (6n + x)) $?

Code: Select all

sage: solve([36*n^3 -19 == x*y*(y + 2*(6*n + x)),x,y,n])
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
Cell In[4], line 1
----> 1 solve([Integer(36)*n**Integer(3) -Integer(19) == x*y*(y + Integer(2)*(Integer(6)*n + x)),x,y,n])

File /private/var/tmp/sage-10.5-current/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/sage/symbolic/relation.py:1043, in solve(f, *args, **kwds)
1041     x = args
1042 else:
-> 1043     x = args[0]
1044 if isinstance(x, (list, tuple)):
1045     for i in x:

IndexError: tuple index out of range

Quick Reply

Change Text Case: