1 2 3 4 5 6
clc //to calculate zero point energy nu=1 //frequency in Hz h=6.63*10^-34 //planck's constant in Js zeropointenergy=(h*nu)/2 disp("zeropointenergy="+string(zeropointenergy)+"J")