summaryrefslogtreecommitdiff
path: root/3871/CH13/EX13.4/Ex13_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH13/EX13.4/Ex13_4.sce')
-rw-r--r--3871/CH13/EX13.4/Ex13_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3871/CH13/EX13.4/Ex13_4.sce b/3871/CH13/EX13.4/Ex13_4.sce
new file mode 100644
index 000000000..8ec1e4a27
--- /dev/null
+++ b/3871/CH13/EX13.4/Ex13_4.sce
@@ -0,0 +1,20 @@
+//=====================================================================================
+//Chapter 13 example 4
+
+
+clc;clear all;
+
+//variable declaration
+T0 = 4; //time of swing in seconds
+Ig =0.001; //current in A
+lamda = 0;
+theta = 50; //steady deflection in scale divisions
+theta1 = 220; //maximum throw in scale division
+V =100; //potential of the condenser in V
+
+//calculations
+Q = (T0/(2*%pi))*(Ig/theta)*(1+(lamda/2))*theta1; //quantity of electricity discharged in uC
+C = Q/(V); //capacity of the condenser in F
+
+//result
+mprintf("capacity of the condenser = %3.2d uF",(C*10^6));