summaryrefslogtreecommitdiff
path: root/3755/CH12/EX12.5/Ex12_5.sce
blob: c5e75ef8fbcdab96bc268344c7c6060af64c4af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//
//
//

//Variable declaration
c=3*10^8;   //velocity of matter wave(m/s)
h=6.62*10^-34;    //plank's constant(Js)
lamda=6940*10^-10;    //wavelength(m)
P=1;     //power(J)

//Calculation
n=P*lamda/(h*c);    //number of ions

//Result
printf("\n number of ions is %0.2f *10^18",n/10^18)