diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1991/CH9/EX9.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1991/CH9/EX9.7')
-rwxr-xr-x | 1991/CH9/EX9.7/7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1991/CH9/EX9.7/7.sce b/1991/CH9/EX9.7/7.sce new file mode 100755 index 000000000..de9330399 --- /dev/null +++ b/1991/CH9/EX9.7/7.sce @@ -0,0 +1,16 @@ +clc
+clear
+//input
+c=3*10^8 //velocity of speed
+w=5.1*10^-7 //wavelength of green light
+w1=0.7 //wavelength of radio waves
+w2=1.3*10^-13 //wavelength of gamma
+h=6.6*10^-34
+//calculation
+e1=h*c/w//plancks theory for greeen light
+e2=h*c/w1//plancks theory for radio waves
+e3=h*c/w2//plancks theory for gamma waves
+//output
+printf("energy carried by green light is %3.3e J",e1)
+printf("\nenergy carried by radio waves is %3.3e J",e2)
+printf("\nenergy carried by gamma waves is %3.3e J",e3)
|