Energy Calculation From Parseval's Relationship