summaryrefslogtreecommitdiff
path: root/165/CH14/EX14.2/ex14_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '165/CH14/EX14.2/ex14_2.sce')
-rw-r--r--165/CH14/EX14.2/ex14_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/165/CH14/EX14.2/ex14_2.sce b/165/CH14/EX14.2/ex14_2.sce
new file mode 100644
index 000000000..77ca18018
--- /dev/null
+++ b/165/CH14/EX14.2/ex14_2.sce
@@ -0,0 +1,15 @@
+//Example 14.2
+clc;
+
+//Given values of applied potential in V
+Va=2;
+Vb=1;
+Vc=3;
+//Given resistence values in ohm
+Ra=3000;
+Rb=3000;
+Rc=3000;
+Rf=1000;
+//Output of the given summer
+Vo=-Rf*(Va/Ra+Vb/Rb+Vc/Rc);
+printf('\nOutput Voltage of the op-amp is %.2f ohm\n',Vo) \ No newline at end of file