summaryrefslogtreecommitdiff
path: root/446/CH1/EX1.3/1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '446/CH1/EX1.3/1_3.sce')
-rwxr-xr-x446/CH1/EX1.3/1_3.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/446/CH1/EX1.3/1_3.sce b/446/CH1/EX1.3/1_3.sce
new file mode 100755
index 000000000..b6fa6435b
--- /dev/null
+++ b/446/CH1/EX1.3/1_3.sce
@@ -0,0 +1,8 @@
+clear
+clc
+disp('Exa-1.3');
+h=6.621*10^-34 ; c=2.9979*10^8; // h is in J/s and c is in m/s
+hc=h*c*((10^9)/(1.6022*10^-19)); //1e=1.602*10^-19 J and 1 m=10^9 nm
+printf('The value of hc is %f eV.nm\n',hc);
+printf('Rounding off to 4 digits, we obtain %4.f eV.nm.',hc);
+disp('Hence zero at the end is significant.');