summaryrefslogtreecommitdiff
path: root/2498/CH6/EX6.m.21
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2498/CH6/EX6.m.21
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2498/CH6/EX6.m.21')
-rwxr-xr-x2498/CH6/EX6.m.21/ex_m_6_21.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2498/CH6/EX6.m.21/ex_m_6_21.sce b/2498/CH6/EX6.m.21/ex_m_6_21.sce
new file mode 100755
index 000000000..422f3a9ec
--- /dev/null
+++ b/2498/CH6/EX6.m.21/ex_m_6_21.sce
@@ -0,0 +1,17 @@
+// Exa Misc. 6.21
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+i1 = 1;//input current for first op-amp in mA
+i1 = i1 * 10^-3;// in A
+R_F = 1;// in k ohm
+R_F = R_F * 10^3;// in ohm
+// Output voltage at first op-amp stage
+Vo = -i1*R_F;// in V
+R1 = 10;// in k ohm
+R2 = 1;// in k ohm
+// The output voltage,
+Vg1 = Vo*(1+(R1/R2));// in V
+disp(Vg1,"The output volatge in V is");