diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1223/CH5/EX5.8/Ex5_8.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1223/CH5/EX5.8/Ex5_8.sce')
-rwxr-xr-x | 1223/CH5/EX5.8/Ex5_8.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1223/CH5/EX5.8/Ex5_8.sce b/1223/CH5/EX5.8/Ex5_8.sce new file mode 100755 index 000000000..33738a22e --- /dev/null +++ b/1223/CH5/EX5.8/Ex5_8.sce @@ -0,0 +1,15 @@ +clear;
+clc;
+//Example 5.8
+Vtn=0.8;
+Kn=0.05;
+//I_D=Kn*(Vgs-Vtn)^2
+//Vds=Vgs=5-I_D*Rs
+//combining these two equations we obtain 0.5(Vgs)^2+0.2Vgs-4.68
+Vgs=poly(0,'Vgs')
+p=poly([-4.68 0.2 0.5],'Vgs','c')
+printf('\npossible solutions ::%.3f V\n',roots(p))
+//assuming transistor is conducting ,Vgs must be greater than threshold voltage
+Vgs=2.87;
+I_D=Kn*(Vgs-Vtn)^2;
+printf('\ndrain current=%.3f mA\n',I_D)
|