//Example 3 // ENERGY clc; clear; close; ke=5;//joule pe=5;//joule rep=10;//joule eo=rep+ke+pe;//joule disp(eo,"energy of the oscillator is,(joule)=")