# Chapter 38 ELECTROMAGNETIC OSCILLATIONS¶

## Example 38.1 Current¶

In [1]:
from __future__ import division
import math
V_o=50 #in volts
L=10*10**-3
i_m=V_o*(math.sqrt(C/L))
print("Max current in amps ",i_m)

Max current in amps  0.5


## Example 38.2 Angular frequency¶

In [2]:
from __future__ import division
import math
L=10*(10**-3) #in henry
w=math.sqrt(1/(L*C))

Angular frequency in radians/sec= 10000.0


## Example 38.3 Angular frequency and time¶

In [3]:
from __future__ import division
L=10*(10**-3) #in henry
R=0.1 #in ohm
w=math.sqrt(1/(L*C))
t=(2*L*math.log(2))/R
print("Time in sec= %.5f"%t)

Angular frequency in radians/sec= 10000.0
Time in sec= 0.13863


## Example 38.5 Magnetic ﬁeld¶

In [4]:
import math
m_0=(4*math.pi*10**-7) #in weber
e_0=(8.9*10**-12)
R=5*10**-2 #meters
dEbydT=10**12
B=(0.5*m_0*e_0*R*dEbydT)
print("Magnetic field in weber/m**2= %.7f"%B)

Magnetic field in weber/m**2= 0.0000003


## Example 38.6 Calculation of current¶

In [5]:
import math
m_0=(4*math.pi*10**-7) #in weber
e_0=(8.9*10**-12)
R=5*10**-2 #meters
dEbydT=10**12
i_d=(e_0*math.pi*R*R*dEbydT)
print("Current in amp= %.7f"%i_d)

Current in amp= 0.0699004