Question: A 1 Write a function DifferenceSequence ( Equation , InitialConditions, NumberOfTerms ) which takes as inputs lists representing a homogeneous linear difference equation, and some
A Write a function DifferenceSequence Equation InitialConditions, NumberOfTerms which takes as inputs lists representing a homogeneous linear difference equation, and some corresponding initial conditions, and an integer representing a large number of terms, and outputs a list of the first terms of the solution: dots,
Hint: create a solution list which consists of the initial conditions. Set up a loop whose length is the number of terms you need to calculate. At each stage compute the new term by taking the dot product of the coefficients and last few terms in the solution list, and then append it to the end of the solution list.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
