Note that there are some explanatory texts on larger screens.

plurals
  1. POFinding Binet form in Mathematica
    primarykey
    data
    text
    <p>Suppose I have a linear recurrence* and I want to find its closed-form 'Binet' representation. Is there a good way to do this in Mathematica?</p> <p>It seems like a very basic request, and there are certainly many natural ways to ask Mathematica to do it for me. But so far everything I've tried has failed: it churns until its memory use is so high the operating system is obliged to close it, or it gives warnings that it does not know how to simplify simple expressions†, or the like. I could understand this if the question was hard, but it's not&mdash;factor the characteristic equation, find the roots, and solve a linear system. The most recent time I tried this (and had the program crash) was on a degree-9 example, and I just don't think a 9-by-9 linear system should be that hard to solve.</p> <p>Surely I'm not the only one who need to do this from time to time! What is the right way to do this?</p> <p>I lost my session so I don't have the exact code I tried. One solution created a List with the recurrence and its initial points and used RSolve. Another found and factored the characteristic equation and took appropriate roots to the n-th power multiplied by polynomials of degree corresponding to the multiplicity with coefficients generated from C[i]. I also tried Solve and Reduce in various ways.</p> <p><em>*</em> Or a rational generating function. Actually I'll start from a <code>List</code> of numbers which are described by a recurrence of less than half its length, and <code>FindLinearRecurrence</code> or <code>FindGeneratingFunction</code> can do the not-too-difficult conversion.</p> <p>† For example, when I asked it to solve one recurrence it choked on sin^2 (3pi/14) + cos^2(3pi/14) in the course of the calculation, saying that ran out of precision. You'd think it could symbolically simplify something like that, but no.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload