summaryrefslogtreecommitdiff
path: root/1430/CH2/EX2.6/exa2_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH2/EX2.6/exa2_6.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1430/CH2/EX2.6/exa2_6.sce')
-rw-r--r--1430/CH2/EX2.6/exa2_6.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1430/CH2/EX2.6/exa2_6.sce b/1430/CH2/EX2.6/exa2_6.sce
new file mode 100644
index 000000000..68cc244fb
--- /dev/null
+++ b/1430/CH2/EX2.6/exa2_6.sce
@@ -0,0 +1,15 @@
+//Example 2.6
+// Amplifier with a Field-Effect Transistor
+//g_m=5*(10^-3); // Transconductance of voltage controlled current source
+
+function[v_out]=FET(v_in)
+g_m=5*(10^-3);
+v_g=(5/6)*v_in;// from figure 2.15,using Voltage divider in Left loop
+i_out=-g_m*v_g;// Using KCL in right Loop node
+v_out=(6*10^3)*i_out;// Output voltage of Amplifier
+endfunction
+
+// For Example take v_in= 1 volt
+V_in=1;
+V_out=FET(V_in);
+disp(V_out,"Output Voltage of this amplifier(in Volts)=")