summaryrefslogtreecommitdiff
path: root/1106/CH7/EX7.8/ex7_8.sce
blob: 8f1fca06349f91d1a46dd882cc1856639e9f5b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Example 7.8, Page No-351
clear
clc

D=20 // 20 percent
Ton=1*10^-3
Tonpoff=100*Ton/D
Tonpoff1=Tonpoff*1000
printf('Ton + Toff= %d ms', Tonpoff1)
f=1/Tonpoff
printf('\nFrequency of oscillation= %d Hz', f)