summaryrefslogtreecommitdiff
path: root/728/CH3/EX3.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /728/CH3/EX3.4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '728/CH3/EX3.4')
-rwxr-xr-x728/CH3/EX3.4/Ex3_4.sce22
-rwxr-xr-x728/CH3/EX3.4/Ex3_4.txt26
-rwxr-xr-x728/CH3/EX3.4/Ex3_4_ans.txt12
3 files changed, 60 insertions, 0 deletions
diff --git a/728/CH3/EX3.4/Ex3_4.sce b/728/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..e606c7846
--- /dev/null
+++ b/728/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,22 @@
+//Caption:Calculate (a)-Current drawn from generator. (b)-Magnitune & phase of load current. (c)-Power delivered to load.
+//Exa: 3.4
+clc;
+clear;
+close;
+f=37.5*10^6;//frequency(in hertz)
+wl=(3*10^8)/f;//wavelength (in meters)
+Z_l=100;//in ohms
+Z_o=200;//in ohms
+l=5*wl/4;//length of line (in meters)
+b=2*%pi/wl;
+//At generator end,
+Z_i=Z_o*(Z_l+%i*Z_o*tan(b*l))/(Z_o+%i*Z_l*tan(b*l));
+V_s=200*Z_i/(200+Z_i);
+I_s=200/(200+Z_i);
+disp(real(I_s),"Current drawn from generator(in amps) =");
+//for a lossless line , P(avg)*I_input=P(avg)*I_load
+P_avg=V_s*I_s;//in watts
+disp(real(P_avg),"Power delivered to load (in watts) =)");
+//Real(Vs*Is)=Real(Vs*I_load)
+I_load=(P_avg/Z_l)^0.5;//in amps
+disp(real(I_load),"Current flowing in load (in amps) =)"); \ No newline at end of file
diff --git a/728/CH3/EX3.4/Ex3_4.txt b/728/CH3/EX3.4/Ex3_4.txt
new file mode 100755
index 000000000..1b320a4bb
--- /dev/null
+++ b/728/CH3/EX3.4/Ex3_4.txt
@@ -0,0 +1,26 @@
+//Caption:Calculate (a)-Current drawn from generator. (b)-Magnitune & phase of load current. (c)-Power delivered to load.
+//Exa: 3.4
+clc;
+clear;
+close;
+f=37.5*10^6;//frequency(in hertz)
+wl=(3*10^8)/f;//wavelength (in meters)
+Z_l=100;//in ohms
+Z_o=200;//in ohms
+l=5*wl/4;//length of line (in meters)
+b=2*%pi/wl;
+//At generator end,
+Z_i=Z_o*(Z_l+%i*Z_o*tan(b*l))/(Z_o+%i*Z_l*tan(b*l));
+V_s=200*Z_i/(200+Z_i);
+I_s=200/(200+Z_i);
+disp(real(I_s),"Current drawn from generator(in amps) =");
+//for a lossless line , P(avg)*I_input=P(avg)*I_load
+P_avg=V_s*I_s;//in watts
+disp(real(P_avg),"Power delivered to load (in watts) =)");
+//Real(Vs*Is)=Real(Vs*I_load)
+I_load=(P_avg/Z_l)^0.5;//in amps
+disp(real(I_load),"Current flowing in load (in amps) =)");
+
+
+
+
diff --git a/728/CH3/EX3.4/Ex3_4_ans.txt b/728/CH3/EX3.4/Ex3_4_ans.txt
new file mode 100755
index 000000000..8f47b7498
--- /dev/null
+++ b/728/CH3/EX3.4/Ex3_4_ans.txt
@@ -0,0 +1,12 @@
+Current drawn from generator(in amps) =
+
+ 0.3333333
+
+ Power delivered to load (in watts) =)
+
+ 44.444444
+
+ Current flowing in load (in amps) =)
+
+ 0.6666667
+