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 --- 2231/CH1/EX1.29/Ex_1_29.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 2231/CH1/EX1.29/Ex_1_29.sce (limited to '2231/CH1/EX1.29') diff --git a/2231/CH1/EX1.29/Ex_1_29.sce b/2231/CH1/EX1.29/Ex_1_29.sce new file mode 100755 index 000000000..fcc7dfd46 --- /dev/null +++ b/2231/CH1/EX1.29/Ex_1_29.sce @@ -0,0 +1,23 @@ +//Example 1_29 +clc; +clear;close; + +//Given data: +f=2*1000;//Hz +Vdc=10;//V +Eta=0.6; +Ip=5*10^-3;//A +Vf=0.5;//V//assumed +Vp=Eta*Vdc+Vf;//V +//Vdc-Ip*R>Vp +R_upper=(Vdc-Vp)/Ip;//ohm +disp("Value of R should be less than "+string(R_upper)+" ohm") +C=0.5*10^-6;//F//assumed +disp(C*10^6,"Let value of C in micro F ") +T=1/f//s +R=T/C/log(1/(1-Eta));//ohm +disp("For C=0.5 micro F, calculated value of R "+string(R)+" ohm. But it is not suitable"); +C=1*10^-6;//F//assumed +disp(C*10^6,"Let value of C in micro F ") +R=T/C/log(1/(1-Eta));//ohm +disp("For C=1 micro F, calculated value of R "+string(R)+" ohm. It is suitable"); -- cgit