N=800 # No.of turns
Phy_1=2000*10**-6 # Webers
Phy_2=1000*10**-6 # Webers
t=0.1 # seconds
e=N*(Phy_1-Phy_2)/t
print 'Emf induced in the coil = %.2f volts'%e
N=1000.0 # No.of turns
Phy_1=2000.0*10**-6 # Webers
#On reversal of current
Phy_2=2000.0*10**-6 # Webers
t=0.2 # seconds
e=N*(Phy_1-(-Phy_2))/t
print 'Average value of emf induced in the coil = %.2f volts'%e
N=300 # No.of turns
R=60 # resitance in ohms
Phy_1=2*10**-3 # Webers
Phy_2=3*10**-3 # Webers
t=0.2 # seconds
e=N*(Phy_2-Phy_1)/t
print '(1) Average emf induced in the coil = %.2f volts'%e
i=e/R
print '(2) Current through the coil = %.2f Amperes'%i
P=4 # no of poles
N=4*250 # No.of turns
Phy_1=40*P*10**-3 # Webers
Phy_2=5*P*10**-3 # Webers
t=0.1 # seconds
e=N*(Phy_1-Phy_2)/t
print 'average value of emf induced across the feild terminals = %.2f volts'%e