diff options
Diffstat (limited to '2780/CH7/EX7.29/Ex7_29.sce')
-rwxr-xr-x | 2780/CH7/EX7.29/Ex7_29.sce | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/2780/CH7/EX7.29/Ex7_29.sce b/2780/CH7/EX7.29/Ex7_29.sce new file mode 100755 index 000000000..45fed80e1 --- /dev/null +++ b/2780/CH7/EX7.29/Ex7_29.sce @@ -0,0 +1,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")
|