clc //to calculate zero point energy of a linear harmonic oscillator h=6.63*10^-34 //planck's constant in Js nu=50 //frequency in Hz zeropointenergy=(h*nu)/2 disp("zeropointenergy="+string(zeropointenergy)+"J")