"Peel away and Guess" and Python

  • Context: Python 
  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around a recursive linear time-invariant (LTI) system problem posed by a member, specifically focusing on the "peel away and guess method" as well as its implementation in Python. Participants are examining the relationship between the mathematical formulation and its coding representation.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests adding a link to notes that explain the "peel away and guess method," expressing uncertainty about their ability to understand it and noting a lack of Python programming skills.
  • Another participant points out a potential discrepancy in the code where the term x[n] appears to be missing from the implementation of the recursive function, questioning whether this is a typo.
  • A similar concern is raised regarding the absence of the x[n] term, with one participant noting its role in enforcing boundary conditions on the difference equation as described in the course notes.

Areas of Agreement / Disagreement

Participants express confusion and concern regarding the missing x[n] term in the code, indicating a shared uncertainty about its implications. However, there is no consensus on whether this is a simple typo or a more significant issue.

Contextual Notes

The discussion highlights potential limitations in understanding the methodology and the relationship between the mathematical and coding aspects, particularly regarding the treatment of boundary conditions.

Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,605
I sent a PM to member kostoglotov suggesting he add a link to some notes containing the problem posed in his thread (https://www.physicsforums.com/threads/finding-the-closed-form-of-a-recursive-lti-system.900342/ ).

The link is:
https://ocw.mit.edu/courses/electri...tems-fall-2011/readings/MIT6_003F11_chap4.pdf

The "peel away and guess method" explained in those notes looks interesting, but it's new to me and I don't know if I'll figure it out - also I'm not a Python programmer.

I didn't post my suggestion in the thread itself because I want the thread to still show up as unanswered.
 
Technology news on Phys.org
He defines his function as [itex]y[n] = 7y[n-1]-12y[n-2]+x[n][/itex], but in the code the equivalent line is
Code:
    memo[n] = 7*f(n-1) - 12*f(n-2)
which seems to be short a term. I haven't tried to comprehend his methodology - but has he just made a typo?
 
Ibix said:
He defines his function as [itex]y[n] = 7y[n-1]-12y[n-2]+x[n][/itex], but in the code the equivalent line is
Code:
    memo[n] = 7*f(n-1) - 12*f(n-2)
which seems to be short a term. I haven't tried to comprehend his methodology - but has he just made a typo?

The ##x[n]## term is mysterious to me. In the chapter 2 of the course notes, it is treated as an input that enforces boundary conditions on the difference equation.
 
I have posted in this thread. I'm puzzled why the x[n] is missing from the code, as well.
 

Similar threads

  • Sticky
  • · Replies 0 ·
Replies
0
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 51 ·
2
Replies
51
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 75 ·
3
Replies
75
Views
8K
Replies
10
Views
6K
  • · Replies 13 ·
Replies
13
Views
7K
  • Sticky
  • · Replies 48 ·
2
Replies
48
Views
71K