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 --- 2102/CH4/EX4.12/exa_4_12.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2102/CH4/EX4.12/exa_4_12.sce (limited to '2102/CH4/EX4.12') diff --git a/2102/CH4/EX4.12/exa_4_12.sce b/2102/CH4/EX4.12/exa_4_12.sce new file mode 100755 index 000000000..89e236138 --- /dev/null +++ b/2102/CH4/EX4.12/exa_4_12.sce @@ -0,0 +1,18 @@ +// Exa 4.12 +clc; +clear; +close; +// Given data +Vout= 8;// in V +V_F= 1.8;// in V +Ip_max= 16;// in mA +Ip_max= Ip_max*10^-3;// in A +I_F= Ip_max; +Rs1= (Vout-V_F)/I_F;// in Ω +disp(Rs1,"If V_F= 1.8, then the value of Rs in Ω is :") +// If +V_F= 2.0;// in V +Rs2= (Vout-V_F)/I_F;// in Ω +disp(Rs2,"If V_F= 2.0, then the value of Rs in Ω is :") +disp("In either case, the smallest standard value resistor that has a value greater than "+string(Rs1)+ "Ω and "+string(Rs2)); +disp("ohm resistor .is the 390 Ω") -- cgit