diff options
Diffstat (limited to '608/CH18/EX18.08/18_08.sce')
-rwxr-xr-x | 608/CH18/EX18.08/18_08.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/608/CH18/EX18.08/18_08.sce b/608/CH18/EX18.08/18_08.sce new file mode 100755 index 000000000..526809b08 --- /dev/null +++ b/608/CH18/EX18.08/18_08.sce @@ -0,0 +1,16 @@ +//Problem 18.08: For the summing op amp shown in Figure 18.11, determine the output voltage, Vo
+
+//initializing the variables:
+V1 = 0.5; // in Volts
+V2 = 0.8; // in Volts
+V3 = 1.2; // in Volts
+R1 = 10000; // in ohms
+R2 = 20000; // in ohms
+R3 = 30000; // in ohms
+Rf = 50000; // in ohms
+
+//calculation:
+Vo = -1*Rf*(V1/R1 + V2/R2 + V3/R3)
+
+printf("\n\n Result \n\n")
+printf("\n output voltageis %.1f V",Vo)
\ No newline at end of file |