summaryrefslogtreecommitdiff
path: root/3637/CH2/EX2.2/Ex2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3637/CH2/EX2.2/Ex2_2.sce')
-rw-r--r--3637/CH2/EX2.2/Ex2_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3637/CH2/EX2.2/Ex2_2.sce b/3637/CH2/EX2.2/Ex2_2.sce
new file mode 100644
index 000000000..119c257df
--- /dev/null
+++ b/3637/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,11 @@
+//problem 2 pagenumber 2.86
+//given
+format(6);
+v1=5;//volt
+v2=2;//volt
+rf1=10e3;//ohm
+r1=10e3;//ohm
+//determine output voltage
+v0=-((-v1*rf1/r1)-(-v2*rf1/r1));
+disp('Output voltage = '+string(v0)+' V');
+