isolve
solve Diophantine equations for integer solutions
Calling Sequence
Parameters
Description
Examples
isolve(eqns, vars)
eqns
-
set of equations or single equation, or inequalities
vars
(optional) set of variables or a variable
The procedure isolve tries to solve the equations in eqns over the integers. It solves for all of the indeterminates occurring in the equations.
The optional second argument vars is used to name global variables that have integer values and occur in the solution, and if there is only one argument, then the global names _Z1, _Z2, and so forth, are used. For non-negative solutions, _NN1, _NN2, and so forth, are used.
It returns the NULL value if either there are no integer solutions or Maple is unable to find the solutions.
The isolve command has some limited ability to deal with inequalities.
The isolve command can solve systems of linear equations, single polynomial equations, quadratic forms and homogeneous Pythagorean equations of the form a*X^2 + b*Y^2 + c*Z^2 = 0. In addition, Maple can solve Diophantine equations of the form p( x ) = c*y, for integral constants c, and a rational polynomial p( x ).
You can request that isolve display information about the solving processing by setting infolevel[isolve] to a non-zero value.
A solution to a single linear Diophantine equation is returned in terms of _Z1.
isolve⁡3⁢x−4⁢y=7
x=5+4⁢_Z1,y=2+3⁢_Z1
To change the free parameter, use the optional second argument.
isolve⁡3⁢x−4⁢y=7,a
x=5+4⁢a,y=2+3⁢a
A system of linear Diophantine equations.
isolve⁡x+y=14,3⁢x−4⁢y=7
x=9,y=5
NULL is returned if Maple is unable to find any integer solutions.
isolve⁡x2=3
The following example has an unique rational solution, but no integral solutions.
solve⁡x+2⁢y=8,4⁢x−y=7
x=229,y=259
isolve⁡x+2⁢y=8,4⁢x−y=7
isolve⁡−7⁢x5+22⁢x4−55⁢x3−94⁢x2+87⁢x−56=4⁢y
x=−4⁢_Z1,y=1792⁢_Z15+1408⁢_Z14+880⁢_Z13−376⁢_Z12−87⁢_Z1−14
isolve⁡x2+y2−x⁢y−3
x=−2,y=−1,x=−1,y=−2,x=−1,y=1,x=1,y=−1,x=1,y=2,x=2,y=1
The following homogeneous polynomial in x, y, z has genus 0.
isolve⁡y4−z2⁢y2−3⁢x⁢z⁢y2−x3⁢z
x=_Z3⁢_Z12⁢_Z12−_Z22igcd⁡_Z12⁢_Z12−_Z22,−_Z13⁢_Z2,_Z24,y=−_Z3⁢_Z13⁢_Z2igcd⁡_Z12⁢_Z12−_Z22,−_Z13⁢_Z2,_Z24,z=_Z3⁢_Z24igcd⁡_Z12⁢_Z12−_Z22,−_Z13⁢_Z2,_Z24
isolve⁡y4−z2⁢y2−3⁢x⁢z⁢y2−x3⁢z,a,b,c
x=c⁢a2⁢a2−b2igcd⁡a2⁢a2−b2,−a3⁢b,b4,y=−c⁢a3⁢bigcd⁡a2⁢a2−b2,−a3⁢b,b4,z=c⁢b4igcd⁡a2⁢a2−b2,−a3⁢b,b4
A system of inequalities.
isolve⁡a<1,b≤1,−a≤0,−b≤0,c=d,d=1
a=0,b=0,c=1,d=1,a=0,b=1,c=1,d=1
An inequality.
isolve⁡0<x+π
x=−3+_NN1~
The solution is expressed using the variable _NN1~. To find information on this variable, use about.
about⁡_NN1
Originally _NN1, renamed _NN1~: is assumed to be: AndProp(integer,RealRange(0,infinity))
It is an integer between 0 and ∞.
See Also
about
allvalues
assign
dsolve
fsolve
Groebner
invfunc
isolate
LinearAlgebra[LinearSolve]
match
msolve
RootOf
rsolve
simplex
solve
solve[identity]
Download Help Document