diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3169/CH3/EX3.4/Ex3_4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3169/CH3/EX3.4/Ex3_4.sce')
-rw-r--r-- | 3169/CH3/EX3.4/Ex3_4.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3169/CH3/EX3.4/Ex3_4.sce b/3169/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..12eb3d724 --- /dev/null +++ b/3169/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,21 @@ +//developed in windows XP operating system
+//platform Scilab 5.4.1
+clc;clear;
+//example 3.4
+//calculation of the load voltage and the load current
+
+//given data
+Vs=36//source voltage(in V)
+R1=6*10^3//value of resistance(in ohm) of resistor1
+R2=3*10^3//value of resistance(in ohm) of resistor2
+R3=1*10^3//value of resistance(in ohm) of resistor3
+
+//calculation
+Rth=(R1*R2)/(R1+R2)
+Vth=(Vs/(R1+R2))*R2
+//from the equation of ohm's law.....I=V/R
+Il=Vth/(Rth+R3)
+Vl=Il*R3
+
+printf('the load voltage is %d V',Vl)
+printf('\nthe load current is %d mA',Il*10^3)
|