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 /199/CH3/EX3.6.b/Example_3_6_b.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 '199/CH3/EX3.6.b/Example_3_6_b.sce')
-rwxr-xr-x | 199/CH3/EX3.6.b/Example_3_6_b.sce | 12 |
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 |