summaryrefslogtreecommitdiff
path: root/3669/CH4/EX4.5/5.sce
blob: 822e63ad6fbc77e5370b4ea8a4b4dda1ccf9415c (plain)
1
2
3
4
5
6
7
8
9

//Variable declaration
V=15*10**3;    //voltage(V)

//Calculation
lamda=1.227/sqrt(V);     //wavelength(nm)

//Result
printf('wavelength is %0.3f  nm   \n',(lamda))