summaryrefslogtreecommitdiff
path: root/3845/CH21/EX21.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH21/EX21.3
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 '3845/CH21/EX21.3')
-rw-r--r--3845/CH21/EX21.3/Ex21_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3845/CH21/EX21.3/Ex21_3.sce b/3845/CH21/EX21.3/Ex21_3.sce
new file mode 100644
index 000000000..3e878567c
--- /dev/null
+++ b/3845/CH21/EX21.3/Ex21_3.sce
@@ -0,0 +1,18 @@
+//Example 21.3
+R1=1;//Resistance of resistor 1 (ohm)
+R2=6;//Resistance of resistor 2 (ohm)
+R3=13;//Resistance of resistor 3 (ohm)
+R_p=1/(1/R2+1/R3);//Equivalent resistance for parallel combination (ohm)
+R_tot=R1+R_p;//Total resistance (ohm)
+printf('a.Total resistance = %0.2f ohm',R_tot)
+V=12;//Voltage (V)
+I=V/R_tot;//Total current (A)
+V1=I*R1;//Voltage drop in resistor R1 (V)
+printf('\nb.Voltage drop in R1 = %0.2f V',V1)
+V_p=V-V1;//Voltage across parallel combination (V)
+I2=V_p/R2;//Current through resistor 2 (A)
+printf('\nc.Current through R2 = %0.2f A',I2)
+P2=I2^2*R2;//Power dissipated by resistor 2 (W)
+printf('\nd.Power dissipated by R2 = %0.1f W',P2)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest