blob: 55f223773fa9a8e8534f775adf935cb1cac0b350 (
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=7000*10^-10; //wavelength(m)
n=2.8*10^19; //number of ions
//Calculation
E=n*h*c/lamda; //energy of laser pulse(joule)
//Result
printf("\n energy of laser pulse is %0.2f joule",E)
|