From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3871/CH12/EX12.23/Ex12_23.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 3871/CH12/EX12.23/Ex12_23.sce (limited to '3871/CH12/EX12.23/Ex12_23.sce') diff --git a/3871/CH12/EX12.23/Ex12_23.sce b/3871/CH12/EX12.23/Ex12_23.sce new file mode 100644 index 000000000..5f95a0c6c --- /dev/null +++ b/3871/CH12/EX12.23/Ex12_23.sce @@ -0,0 +1,24 @@ +//===================================================================================== +//Chapter 12 example 23 + +clc;clear all; + +//variable declaration +f = 165*10^3; //frequency in Hz +C1 = 208*10^-12; //capacitance in F +C2 = 184*10^-12; //capacitance in F +Q1 = 80; //Q-factor +Q2 = 50; //Q-factor + +//calculations +x = C2*Q2; +y = C1*Q1; +w = 2*(%pi)*f; +Rm = (1/(w))*((1/(x))-(1/(y))); //resistive component of unknown impedance in Ω +Xm = (1/(w))*((1/C2)-(1/C1)); //reactive component of unknown impedance in Ω + + +//result +mprintf("resistive component of unknown impedance =%3.2f Ω",Rm); +mprintf("\nreactive component of unknown impedance =%3.0f Ω",Xm); + -- cgit