summaryrefslogtreecommitdiff
path: root/199/CH3/EX3.6.b/Example_3_6_b.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /199/CH3/EX3.6.b/Example_3_6_b.sce
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 '199/CH3/EX3.6.b/Example_3_6_b.sce')
-rwxr-xr-x199/CH3/EX3.6.b/Example_3_6_b.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/199/CH3/EX3.6.b/Example_3_6_b.sce b/199/CH3/EX3.6.b/Example_3_6_b.sce
new file mode 100755
index 000000000..be543ddae
--- /dev/null
+++ b/199/CH3/EX3.6.b/Example_3_6_b.sce
@@ -0,0 +1,12 @@
+// Chapter3
+// Page.No-99, Figure.No-3.16
+// Example_3_6_b
+// Output voltage of the Op-amp
+// Given
+clear;clc;
+R1=680;RF=6800 // Both are in ohms
+vx=-1.5;vy=-2; // Both input voltages are in volts
+AD=1+RF/R1; // Voltage gain
+vxy=vx-vy;
+vo=AD*vxy; // Output voltage
+printf("\n Output voltage is vo = %.1f V \n",vo) // Result \ No newline at end of file