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 /887/CH2/EX2.21/2_21.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 '887/CH2/EX2.21/2_21.sce')
-rwxr-xr-x | 887/CH2/EX2.21/2_21.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/887/CH2/EX2.21/2_21.sce b/887/CH2/EX2.21/2_21.sce new file mode 100755 index 000000000..706586c40 --- /dev/null +++ b/887/CH2/EX2.21/2_21.sce @@ -0,0 +1,15 @@ +clc
+//ex2.21
+V_s=50;
+R_1=20;
+R_2=5;
+//Zeroing the voltage source
+R_eq=1/((1/R_1)+(1/R_2)); //R_1 and R_2 in parallel
+R_t=R_eq; //thevenin resistance
+//open-circuit analysis
+V_oc=V_s*R_2/(R_1+R_2); //open-circuit voltage
+V_t=V_oc; //thevenin voltage
+R_L=R_t;
+P_L_max=V_t^2/(4*R_t)
+disp(R_L,'load resistance for maximum power transfer in ohms')
+disp(P_L_max,'maximum power in watts')
|