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 --- 2672/CH3/EX3.37/Ex3_37.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 2672/CH3/EX3.37/Ex3_37.sce (limited to '2672/CH3/EX3.37/Ex3_37.sce') diff --git a/2672/CH3/EX3.37/Ex3_37.sce b/2672/CH3/EX3.37/Ex3_37.sce new file mode 100755 index 000000000..17a614fcb --- /dev/null +++ b/2672/CH3/EX3.37/Ex3_37.sce @@ -0,0 +1,24 @@ +//Example 3_37 +clc; +clear; +close; +format('v',5); +//given data : +R=10;//ohm +L=20;//mH +C=10;//micro F +V=50;//V +f0=1/2/%pi/sqrt(L/1000*C/10^6);//Hz +disp(f0,"Resonance frequency(Hz)"); +I0=V/R;//A +XL=2*%pi*f0*L/1000;//ohm +VL=I0*XL;//V +disp(VL,"Voltage across inductance(V)"); +VR=I0*R;//V +disp(VR,"Voltage across Resistance(V)"); +XC=1/2/%pi/f0/(C*10^-6);//ohm +VC=I0*XC;//V +disp(VC,"Voltage across Capacitance(V)"); +Q=VL/V;//Q-factor +disp(Q,"Q-factor"); +//Answer is not accurate in the book. -- cgit