summaryrefslogtreecommitdiff
path: root/863/CH15/EX15.3/Ex15_3.sce
blob: caa0484d068b4eb6290148b99e42219517338b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Caption:Determine the error due to capacitance
//Ex15.3
clc;
clear;
close;
Vgs=10//Gate source voltage(in volts)
C=10.5//Capacitance(in pF)
Vs=1//Supply voltage(in volts)
C1=0.25//Capacitance(in micro farad)
V1=-(Vs+Vgs+1)
Vgsm=Vs-(V1)
Q=C*Vgsm
Vo=Q/C1
e=Vo*10^(-6)*100/Vs
disp(e,'Error due to capacitance(in %)=')