summaryrefslogtreecommitdiff
path: root/608/CH14/EX14.02/14_02.sce
blob: 73a28a04e5ba1f21236007fafa78e38f8294b70c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Problem 14.02: Determine the frequencies for periodic times of (a) 4 ms, (b) 4 μs

//initializing the variables:
T1 = 0.004; // in secs
T2 = 4E-6; // in secs

//calculation:
f1 = 1/T1
f2 = 1/T2

printf("\n\n Result \n\n") 
printf("\n (a) Frequency f = %.0f Hz",f1)
printf("\n (b) Frequency f = %.2E secs",f2)