QDifferenceEquations
IsSolution
test the solution of a linear q-difference equation
AreSameSolution
test if solutions of a linear q-difference equation are equivalent
Calling Sequence
Parameters
Description
Examples
IsSolution(sol, eq, var, ['certificates'])
AreSameSolution(sol, sol1, x)
sol
-
solution to be checked, or a certificate (set or list of certificates) for q-hypergeometric solution
eq
q-difference equation or list of such equations (for the system case)
var
function variable to solve for, such as y⁡x, or a list of such function variables (for the system case)
'certificates'
(optional) if given sol then treated as certificate for q-hypergeometric solution
sol1
solution to be compared with
x
independent variable in the solutions given
The IsSolution(sol,eq,var) calling sequence returns true if eq is a linear q-difference equation with polynomial coefficients (or a system of such equations) and sol is its solution. Otherwise, false is returned for q-hypergeometric solution (that is, if 'certificates' option is specified) and the degree of the result of substitution is returned for other types of solutions to be checked.
The IsSolution command substitutes sol for the function variables and checks the result.
The AreSameSolution(sol, sol1, x) calling sequence returns true if the solutions sol and sol1 are equivalent. Otherwise, false is returned.
The command checks that the numbers of linear independent solutions in sol and sol1 are the same, as well as the degrees in x.
with⁡QDifferenceEquations:
eq≔1−q10−q−q10⁢x⁢y⁡q2⁢x−1−q20−q2−q20⁢x⁢y⁡q⁢x+q10⁢1−q10−q2−q11⁢x⁢y⁡x=q21−q20−q12+q10+q2−q⁢x
eq≔1−q10−−q10+q⁢x⁢y⁡q2⁢x−1−q20−−q20+q2⁢x⁢y⁡q⁢x+q10⁢1−q10−−q11+q2⁢x⁢y⁡x=q21−q20−q12+q10+q2−q⁢x
sol1≔PolynomialSolution⁡eq,y⁡x,∅,output=basis_K
sol1≔_K1⁢x10+_K2⁢x−_K2+1
IsSolution⁡sol1,eq,y⁡x
true
sol2≔sol1−x5
sol2≔_K1⁢x10−x5+_K2⁢x−_K2+1
IsSolution⁡sol2,eq,y⁡x
6
sol3≔sol1−x10
sol3≔_K1⁢x10−x10+_K2⁢x−_K2+1
IsSolution⁡sol3,eq,y⁡x
AreSameSolution⁡sol1,sol3,x
sol4≔sol1−_K1⁢x10
sol4≔_K2⁢x−_K2+1
IsSolution⁡sol4,eq,y⁡x
AreSameSolution⁡sol1,sol4,x
false
See Also
LinearFunctionalSystems[IsSolution]
QDifferenceEquations[PolynomialSolution]
QDifferenceEquations[RationalSolution]
Download Help Document