In: Mechanical Engineering
Solve the following recurrence relation for the given initial conditions.
y(n+2) - 0.3y(n + 1) + 0.02y(n) = 10 y(0) = 2; y(1) = 0
MuPAD can be used to solve both symbolic and numeric types of calculations. MuPAD can be run by entering mupadwelcome in the command window.
To define a recurring equation in MuPAD, the rec function is used. The solve function is used to solve an algebraic equation.
The program can be defined as:
Define the recurrence equation and the initial conditions as:
r:=rec(y(n+2)-0.3*y(n+1)+0.02*y(n)=10, y(n), {y(0)=2, y(1)=0})
Solve the equation:
solve(r)
The result obtained is:
Define the recurrence equation and the initial conditions as:
Solve the equation:
Thus, the given recurrence equation has been solved.
Thus, the given recurrence equation has been solved.