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 --- 2198/CH2/EX2.7.1/Ex2_7_1.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 2198/CH2/EX2.7.1/Ex2_7_1.sce (limited to '2198/CH2/EX2.7.1') diff --git a/2198/CH2/EX2.7.1/Ex2_7_1.sce b/2198/CH2/EX2.7.1/Ex2_7_1.sce new file mode 100755 index 000000000..ba3bca495 --- /dev/null +++ b/2198/CH2/EX2.7.1/Ex2_7_1.sce @@ -0,0 +1,13 @@ +//Ex 2.7.1 +clc;clear;close; +format('v',6); + +//Given : +Vgamma=0.6;//volt +rf=12;//ohm +V=5;//volts +R=1;//kohm +IF=(V-Vgamma)/(R*1000+rf);//A +disp(IF*1000,"Diode current in mA :"); +VF=Vgamma+IF*rf;//volts +disp(VF,"Diode voltage in volts :"); -- cgit