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