From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3169/CH3/EX3.4/Ex3_4.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 3169/CH3/EX3.4/Ex3_4.sce (limited to '3169/CH3/EX3.4/Ex3_4.sce') 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) -- cgit