Python "Peel away and Guess" and Python

  • Thread starter Thread starter Stephen Tashi
  • Start date Start date
AI Thread Summary
The discussion centers on a suggestion made to member kostoglotov to include a link to MIT course notes that explain the "peel away and guess method," which is relevant to a recursive LTI system problem he posed. The method is unfamiliar to the poster, who also lacks Python programming skills. Concerns are raised about a potential typo in kostoglotov's code, where the function defined as y[n] = 7y[n-1]-12y[n-2]+x[n] appears to be missing the x[n] term in the equivalent code line memo[n] = 7*f(n-1) - 12*f(n-2). The poster expresses confusion over the absence of the x[n] term, which is described in the course notes as an input affecting boundary conditions. The poster refrained from posting their suggestion directly in the thread to keep it marked as unanswered.
Stephen Tashi
Science Advisor
Homework Helper
Education Advisor
Messages
7,864
Reaction score
1,602
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 y[n] = 7y[n-1]-12y[n-2]+x[n], 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 y[n] = 7y[n-1]-12y[n-2]+x[n], 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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top