LREtools[HypergeometricTerm]
IsSolution
verify whether an expression is a solution of a linear difference equation depending on a hypergeometric term
AreSameSolution
verify whether solutions of a linear difference equation depending on a hypergeometric term are equivalent
Calling Sequence
Parameters
Description
Examples
IsSolution(sol, r, eq, var)
AreSameSolution(sol, r, sol1, r1, n)
sol
-
solution to be checked
r
hypergeometric term in the solution sol; specified as a list consisting of the name representing the term in the equation and in the solution and the certificate of the term, such as [t, n+1]
eq
difference equation depending on a hypergeometric term
var
function variable for which to solve, such as y(x)
sol1
solution against which sol is compared
r1
hypergeometric term in the solution sol1; specified as a list consisting of the name representing the term in the equation and in the solution and the certificate of the term, such as [t, n+1]
n
independent variable
The IsSolution(sol, r, eq, var) command returns true if eq is a linear difference equation with polynomial coefficients depending on a hypergeometric term and sol is its solution. Otherwise, false is returned.
The IsSolution function substitutes sol for the function variable and checks the result.
The AreSameSolution(sol, r, sol1, r1, n) command returns true if the solutions sol and sol1 are equivalent. Otherwise, false is returned.
The function transforms sol and sol1 to have the same term and checks that the number of linear independent solutions and degrees of corresponding elements in sol and sol1 are the same.
with⁡LREtoolsHypergeometricTerm:
eq≔y⁡n+2−n!+n⁢y⁡n+1+n⁢n!−1⁢y⁡n
sol,r≔PolynomialSolution⁡eq,y⁡n
sol,r≔t⁢_C1n,t,n+1
IsSolution⁡sol,r,eq,y⁡n
true
sol1≔t⁢_C1
r1≔t,n
IsSolution⁡sol1,r1,eq,y⁡n
AreSameSolution⁡sol1,r1,sol,r,n
eq≔2n⁢n!+n2⁢z⁡n+1−2⁢n⁢2n⁢n!+2⁢2n⁢n!+n2+2⁢n+1⁢z⁡n
sol,r≔PolynomialSolution⁡eq,z⁡n
sol,r≔_C1⁢n2+t⁢_C1,t,2⁢n+2
IsSolution⁡sol,r,eq,z⁡n
sol1≔_C1⁢n2+t⁢n⁢n−1⁢n−2⁢_C1
r1≔t,2⁢n−4
IsSolution⁡sol1,r1,eq,z⁡n
sol2≔n2+t⁢n⁢n−1⁢n−2
IsSolution⁡sol2,r1,eq,z⁡n
AreSameSolution⁡sol2,r1,sol,r,n
false
See Also
LREtools[HypergeometricTerm][PolynomialSolution]
LREtools[HypergeometricTerm][RationalSolution]
Download Help Document