summaryrefslogtreecommitdiff
path: root/1271/CH20/EX20.6/example20_6.sce
blob: 707361d81b73f0922bf0f688f34c8d1536adf6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc 
// Given that
V = 9.8e3 // voltage in V
i = 2e-3 // current in amp
c = 3e8 // speed of light in m/sec
// Sample Problem 6 on page no. 20.8
printf("\n # PROBLEM 6 # \n")
printf("Standard formula used \n ")
printf("h*c/lambda = eV \n")
lambda = 12400 / V
f = c / lambda
printf("\n Highest frequency is %e Hz.\n Minimum wavelength is %f Angstrom.",f,lambda)