summaryrefslogtreecommitdiff
path: root/3504/CH2/EX2.2/Ex2_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3504/CH2/EX2.2/Ex2_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3504/CH2/EX2.2/Ex2_2.sce')
-rw-r--r--3504/CH2/EX2.2/Ex2_2.sce44
1 files changed, 44 insertions, 0 deletions
diff --git a/3504/CH2/EX2.2/Ex2_2.sce b/3504/CH2/EX2.2/Ex2_2.sce
new file mode 100644
index 000000000..c40ec6403
--- /dev/null
+++ b/3504/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,44 @@
+//To calculate the current through each resistor,the voltage across each resistor and the voltage at each node of the circuit.
+clc;
+R_1=25
+R_2=10
+R_3=15
+R_4=50
+R_5=25
+R_6=100
+R_7=500
+R_8=125
+//Given resistances in kilo-ohm.
+Req_123=R_1+R_2+R_3 //Equivalent of(R_1,R_2,R_3)
+Req_1234=(Req_123*R_4)/(Req_123+R_4) //Equivalent of(R_1,R_2,R_3,R_4)
+Req_678=(R_6*R_7*R_8)/((R_7*R_8)+(R_6*R_8)+(R_6*R_7)) //Equivalent of(R_6,R_7,R_8)
+Req=Req_1234+R_5+Req_678
+disp(Req,'Equivalent resistance in kilo-ohm')
+V=100 //Volts
+i=V/Req //mA
+i_1=i/2 //Current through R_1,R_2 andR_3(mA)
+i_2=i_1 //Current through R_4(mA)
+V_R1=R_1*i_1 //Volts
+V_R2=R_2*i_1 //Volts
+V_R3=R_3*i_1 //Volts
+V_R4=R_4*i_2 //Volts
+V_R5=R_5*i //Volts
+V_R6=Req_678*i //Volts
+V_R7=V_R6 //Volts
+V_R8=V_R6 //Volts
+i_3=V_R6/(100) //Current through R_6(mA)
+i_4=V_R7/(500) //Current through R_7(mA)
+i_5=V_R8/(125) //Current through R_8(mA)
+V_a=V
+V_b=V_a-V_R1
+V_c=V_b-V_R2
+V_d=V_c-V_R3
+V_e=V_d-V_R5
+
+
+
+
+
+
+
+