Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Calculus > Discrete Calculus >
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Discrete Calculus >

DifferenceRoot

DifferenceRoot[lde]
represents a function that solves the linear difference equation specified by lde[a, n].
  • DifferenceRoot[lde][s] finds the value of the solution to the difference equation at the specific point s.
  • DifferenceRoot[lde] essentially gives a representation of the solution for a in RSolve[lde[a, n], a, n].
  • DifferenceRoot[lde][{s1, s2, ...}], etc. threads automatically over lists.
Reduce combinations of special sequences to their DifferenceRoot form:
Use f like any sequence:
Define a new sequence using DifferenceRoot directly:
Use it like any sequence:
Prove properties:
Several functions can produce closed-form answers by using DifferenceRoot functions:
Reduce combinations of special sequences to their DifferenceRoot form:
In[1]:=
Click for copyable input
Out[1]=
Use f like any sequence:
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
 
Define a new sequence using DifferenceRoot directly:
In[1]:=
Click for copyable input
Use it like any sequence:
In[2]:=
Click for copyable input
Out[2]=
Prove properties:
In[3]:=
Click for copyable input
Out[3]=
 
Several functions can produce closed-form answers by using DifferenceRoot functions:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Evaluate at an arbitrary point:
DifferenceRoot threads element-wise over lists:
DifferenceRoot works on rational coefficients:
Homogeneous linear recurrences:
Inhomogeneous linear recurrences:
Multiple initial values:
Solutions of a difference equation:
A result from Sum:
Coefficients in the expansion of a function:
Formula of a sequence:
Equations with holonomic constant terms are automatically lifted to polynomial coefficients:
Define Pell numbers:
Closed form formula:
Identity analogous to Cassini's identity:
A summation identity:
Use DifferenceRootReduce to generate DifferenceRoot objects:
Get the corresponding ordinary difference equation:
Use the equation to verify solutions:
Sum of a DifferenceRoot object:
Find the generating function of a DifferenceRoot object:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team