summaryrefslogtreecommitdiff
path: root/1184/CH2/EX2.10/Ex2_10.sce
blob: 2d5ac554b7dc875f6f1e4d2cef9580c7ce35a64f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 2-10. Page No - 39

clear
clc

vin=90*10^-3
R1= 10*10^3
vout=7.8
Rout=8

pin= vin^2/R1
pout=vout^2/Rout

Ap_db = 10*log10 (pout/pin)

printf('The power gain in decibel is %.1f dB',Ap_db)