blob: 8ec1e4a27dfb4d3e387371836df4a26bc34dc0dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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));
|