summaryrefslogtreecommitdiff
path: root/3739/CH6/EX6.10/EX6_10.sce
blob: cd0b57109cab9062f642ef847fc991a11aa2cc54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter 6, Example 6.10, page 246
clc
//Initialisation
f=1800*10**6                                 //frequency in Hz
c=3*10**8                                    //speed of light

//Calculation
h=c*f**-1                                  //wavelength
hv=20*h                                   //in metre
dh=10*h                                    //in metre

//Results
printf("hv = %.2f m ",hv)
printf("\ndh = %.2f m ",dh)