summaryrefslogtreecommitdiff
path: root/887/CH2/EX2.3/2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '887/CH2/EX2.3/2_3.sce')
-rwxr-xr-x887/CH2/EX2.3/2_3.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/887/CH2/EX2.3/2_3.sce b/887/CH2/EX2.3/2_3.sce
new file mode 100755
index 000000000..1c177c43c
--- /dev/null
+++ b/887/CH2/EX2.3/2_3.sce
@@ -0,0 +1,11 @@
+//ex2.3
+V_total=15;
+R_1=1*10^3;
+R_2=1*10^3;
+R_3=2*10^3;
+R_4=6*10^3;
+//By voltage-division priciple
+V_1=R_1*V_total/(R_1+R_2+R_3+R_4); //voltage across R_1
+V_4=R_4*V_total/(R_1+R_2+R_3+R_4); //voltage across R_4
+disp(V_1,'voltage across R_1')
+disp(V_4,'voltage across R_4')