summaryrefslogtreecommitdiff
path: root/1694/CH2/EX2.6/EX2_6.sce
blob: 1267fe31b1cc69f11ec329c7662da03fc5adb4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear;
clc;
printf("\nEx2.6\n");
//page no.-56
//given
lamda=3*10^-2;...........//wavelength in m
h=6.62*10^-34;...............//planck constant in Joule-sec
m=9.1*10^-31;..................//mass of e in kg
e=1.6*10^-19;...............//charge

E=(h^2)/(2*m*(lambda^2)*e)..............//energy in eV

printf("\nEnergy is 0.06 eV\n");