summaryrefslogtreecommitdiff
path: root/3871/CH12/EX12.9
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH12/EX12.9
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH12/EX12.9')
-rw-r--r--3871/CH12/EX12.9/Ex12_9.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3871/CH12/EX12.9/Ex12_9.sce b/3871/CH12/EX12.9/Ex12_9.sce
new file mode 100644
index 000000000..5cba7301c
--- /dev/null
+++ b/3871/CH12/EX12.9/Ex12_9.sce
@@ -0,0 +1,25 @@
+//===============================================================================
+//Chapter 12 Example 9
+
+clc;clear all;
+
+//variable declaration
+R2 = 1000; //resistance of arm in Ω
+R3 = 1000; //resistance of arm in Ω
+R1 = 500; //resistance of arm in Ω
+L1 = 0.18; //inductance in H
+
+//calculations
+f = 5000/(2*(%pi)); //frequency in Hz
+w = 2*(%pi)*f;
+x = R1/((w^2)*L1); //R4*C4 be x
+z = ((w^2)*(x^2));
+a = (1+z);
+C4 = (L1*a)/(R2*R3);
+//from 1 and 2 equations
+//R4 = R4*C4/C4 = x/C4
+R4 = (x)/(C4); //resistance in Ω
+
+//result
+mprintf("resistance = %3.2f Ω",R4);
+