summaryrefslogtreecommitdiff
path: root/1658/CH22/EX22.7/Ex22_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '1658/CH22/EX22.7/Ex22_7.sce')
-rwxr-xr-x1658/CH22/EX22.7/Ex22_7.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1658/CH22/EX22.7/Ex22_7.sce b/1658/CH22/EX22.7/Ex22_7.sce
new file mode 100755
index 000000000..274e02918
--- /dev/null
+++ b/1658/CH22/EX22.7/Ex22_7.sce
@@ -0,0 +1,15 @@
+clc;
+//e.g 22.7
+VDD=20;
+RD=2.5*10**3;
+RS=1.5*10**3;
+R1=2*10**6;
+R2=250*10**3;
+ID=4*10**-3;
+VG=(R2*VDD)/(R1+R2);
+VS=ID*RS;
+VGS=VG-VS;
+disp('V',VGS*1,"VGS=");
+VD=VDD-ID*RD;
+VDS=VD-VS;
+disp('V',VDS*1,"VDS=");