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 --- 2492/CH2/EX2.6/ex2_6.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 2492/CH2/EX2.6/ex2_6.sce (limited to '2492/CH2/EX2.6/ex2_6.sce') 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 : "); -- cgit