In the movie PI, the hero writes a code to break the patter in a stock market, and then he at a point he realizes that his computer started thinking.
If im right he is very much right, there are many emotions in life, from where we can use them to attain salvation, to break the orbit of rebirth. For this on needs a beastly mind that can fuel the heart the right does at the right time. Creating a resonating emotion.
This is the original definition of resonance in reference to the physics:
the state of a system in which an abnormally large vibration is produced in response to an external stimulus, occurring when the frequency of the stimulus is the same, or nearly the same, as the natural vibration frequency of the system.