Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 3 years ago

Max Alekseyev gravatar image

One can rely on the Thue equation solver present in PARI. Here is a sample code for solving the equation f(x,y)=n:

def solvethue(f,n):
    return gp("thue(thueinit(%s),%s)" % (f.subs({f.variables()[1]:1}),n))

R.<x,y> = PolynomialRing(QQ)
print( solvethue(x^3+y^3,1) )
click to hide/show revision 2
No.2 Revision

One can rely on the Thue equation solver present in PARI. Here is a sample code for solving the equation f(x,y)=n:

def solvethue(f,n):
    t = gp.thueinit( f.subs({f.variables()[1]:1}) )
    return gp("thue(thueinit(%s),%s)" % (f.subs({f.variables()[1]:1}),n))
gp.thue(t,n)

R.<x,y> = PolynomialRing(QQ)
print( solvethue(x^3+y^3,1) )
click to hide/show revision 3
No.3 Revision

One can rely on the Thue equation solver present in PARI. Here is a sample code for solving the equation f(x,y)=n:

def solvethue(f,n):
    assert f.is_homogeneous()
    t = gp.thueinit( f.subs({f.variables()[1]:1}) )
    return gp.thue(t,n)

R.<x,y> = PolynomialRing(QQ)
print( solvethue(x^3+y^3,1) )
click to hide/show revision 4
No.4 Revision

One can rely on the Thue equation solver present in PARI. Here is a sample code for solving the equation f(x,y)=n:

def solvethue(f,n):
    assert f.is_homogeneous()
    t = gp.thueinit( f.subs({f.variables()[1]:1}) )
    return gp.thue(t,n)
gp.thue(t,n).sage()

R.<x,y> = PolynomialRing(QQ)
print( solvethue(x^3+y^3,1) )
click to hide/show revision 5
No.5 Revision

One can rely on the Thue equation solver present in PARI. Here is a sample code for solving the equation f(x,y)=n:

def solvethue(f,n):
    assert f.is_homogeneous()
    t = gp.thueinit( f.subs({f.variables()[1]:1}) )
    return gp.thue(t,n).sage()
gp.thue(f.subs({f.variables()[1]:1}), n).sage()

R.<x,y> = PolynomialRing(QQ)
print( solvethue(x^3+y^3,1) )