blob: c3a188edf0ad4f9349f81351bafe44633d2167a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
// Given that
V = 10e3 // voltage in V
i = 15e-3 // current in amp
e = 1.6e-19 // charge on an electron in C
// Sample Problem 8 on page no. 20.9
printf("\n # PROBLEM 8 # \n")
printf("Standard formula used \n ")
printf("I = ne \n 1/2*m*v^2 = eV \n")
n = i / e
lambda = 12400 / V
printf("\n Number of electrons striking the anode per sec is %e.\n Minimum wavelength produced is %f Angstrom.",n,lambda)
|