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 /61/CH13/EX13.6/ex13_6.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 '61/CH13/EX13.6/ex13_6.sce')
-rwxr-xr-x | 61/CH13/EX13.6/ex13_6.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/61/CH13/EX13.6/ex13_6.sce b/61/CH13/EX13.6/ex13_6.sce new file mode 100755 index 000000000..7b0769c55 --- /dev/null +++ b/61/CH13/EX13.6/ex13_6.sce @@ -0,0 +1,17 @@ +//ex13.6
+R_f=25*10^3;
+R1=100*10^3;
+R2=R1;
+R3=R1;
+R4=R1;
+R=R1;
+V_IN1=1;
+V_IN2=2;
+V_IN3=3;
+V_IN4=4;
+V_OUT=-(R_f/R)*(V_IN1+V_IN2+V_IN3+V_IN4);
+disp(V_OUT,'output voltage in volts')
+V_IN_avg=(V_IN1+V_IN2+V_IN3+V_IN4)/4;
+if abs(V_OUT)==V_IN_avg then
+ disp('the amplifier produces an output whose magnitude is the mathematical average of the input voltages')
+end
\ No newline at end of file |