# find excitation voltage and electrode areas
import math
#Variable declaration
E=10**6 #electric field
l=10**-6 #thickness of LCD
V=E*l #excitation potential
I=0.1*10**-6 #current
rho=E/I #crystal resistivity
P=10*10**-6 #power consumption
A=(P/(V*I)) #area of electrodes
#Result
print("excitation potential:")
print("V = %.f V\n"%V)
print("crystal resistivity:")
print("rho = %.f * 10^-12 ohm-cm\n"%(rho*10**-12))
print("area of electrodes:")
print("A = %.f cm^2"%(A))
# find deviation factor
import math
#Variable declaration
fc=10**6 #carrier frequency
m=0.4 #modulation index
fs=100.0 #signal frequency
V=2.0 #(+/-)2V range
#Calculations
delfc1=m*fc #frequency deviation for FS(full scale)
#(+/-) 2V corresponds to delfc Hz deviation assuming linear shift, for (+/-)1V
delfc2=delfc1/V #frequency deviation for (+/-)1V range
sig=(delfc1/fs) #deviation factor
#Result
print("frequency deviation for FS:")
print("delfc1 = %.f * 10^5 Hz\n"%(delfc1/10**5))
print("frequency deviation for given range:")
print("delfc2 = %.f * 10^5 Hz\n"%(delfc2/10**5))
print("deviation factor:")
print("sig = %.f * 10^3"%(sig/10**3))
# find wavelength of radiation
import math
#Variable declaration
h=6.625*10**-34 #planck's const.
e=1.6*10**-19 #electron charge
c=2.998*10**8 #speed of light
E=2.02 #energy gap
#Calculations
lam=((h*c)/E) #wavelength of radiation(m/eV)
#1eV=16.017*10^-20J
lam=(lam/(16.017*10**-20)) #conversion in meter
#Result
print("wavelength of radiation:")
print("lam = %.4f * 10^-6 m"%(math.floor(lam*10**10)/10**4))
# thickness of LCD crystal
import math
#Variable declaration
V=1.3 #excitation voltage
Vgrad=10.0**5 #potential gradient
#Calculations
#10^5 V/mm*thickness in mm=excitation voltage
l=(V/Vgrad) #thickness of LCD
#Result
print("thickness of LCD:")
print("l = %.f micro-m"%(l*10**6))
# find current density
import math
#Variable declaration
rho=4.0*10**12 #resistivity of LCD
Vgrad=10.0**6 #potential gradient
#Calculations
j=(Vgrad/rho) #current density
#Result
print("current per cm^2:")
print("j = %.2f micro-A/cm^2"%(j*10**6))
# find magnetic flux in tape
import math
#Variable declaration
f=2*10**3 #frequency of signal
v=1.0 #velocity of tape
w=0.05*10**-3 #gap width
N=22.0 #no.of turns on head
V=31*10**-3 #rms voltage o/p
#Calculations
x=(math.pi*f*w)/v
x=x*(math.pi/180)
M=((V*w)/(2*v*N*math.sin(x)))
#Result
print("magnetic flux in tape:")
print("M = %.2f micro-Wb"%(M*10**6))
# channel accomodation
import math
#variable declartion
Br=576.0*10**3 #bit rate conversion
n=8.0 #resolution requirement per channel
fs=1000.0 #sampling rate
#Calculations
N=(Br/(fs*3*n)) #no. of channels
#Result
print("no. of channels accomodated:")
print("N = %.f "%N)
# sensor signal transmission
import math
#Variable declaration
Rsmax=1.0*10**3 #sensor resistance max.
Rsmin=100.0 #sensor resistance min.
Vs=5.0 #sensor voltage
#Calculations
Io=(Vs/Rsmax) #current source-> ohm's law
Vmin=Rsmin*Io #min. output voltage
#Result
print("current source:")
print("Io = %.f mA\n"%(Io*10**3))
print("min. output voltage:")
print("Vmin = %.1f V"%Vmin)
# ROM access time
import math
#Variable declaration
#ROM 22*5*7
N=5.0 #no. of gates in bitand plane
n=22.0 #no.of inputs
f=913.0 #refresh rate
#Calculations
#considering column display
ts=(1.0/(N*f*n)) #ROM access time
#Result
print("ROM access time:")
print("ts = %.6f ms"%(ts*1000))