summaryrefslogtreecommitdiff
path: root/2780/CH7/EX7.29/Ex7_29.sce
blob: 45fed80e15adbe7fdaf4b17814b5dd13f7ba15d5 (plain)
1
2
3
4
5
6
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")