summaryrefslogtreecommitdiff
path: root/2492/CH2/EX2.6/ex2_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2492/CH2/EX2.6/ex2_6.sce
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 '2492/CH2/EX2.6/ex2_6.sce')
-rwxr-xr-x2492/CH2/EX2.6/ex2_6.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2492/CH2/EX2.6/ex2_6.sce b/2492/CH2/EX2.6/ex2_6.sce
new file mode 100755
index 000000000..549de380c
--- /dev/null
+++ b/2492/CH2/EX2.6/ex2_6.sce
@@ -0,0 +1,20 @@
+// Exa 2.6
+format('v',9)
+clc;
+clear;
+close;
+// Given data
+R_L = 50;// in ohm
+V = 10;// in V
+R = 5;// in ohm
+V_D = (V*R)/(R_L+R);// in V
+R_D = (R_L*R)/(R_L+R);// in ohm
+I_D = V_D/R_D;// in A
+I_D = I_D * 10^3;// in mA
+plot([V_D,0],[0,I_D])
+xlabel("V_D in volts");
+ylabel("I_D in mA");
+title("DC load line");
+disp("DC load line shown in figure")
+slope = -1/R_D;
+disp(slope,"The slope of the dc load line is : ");