#importing modules
import math
#Variable declaration
Tc=3.7; #in kelvin
Hc_0=0.0306;
T=2
#Calculation
Hc_2k=Hc_0*(1-((T/Tc)**2));
Hc_2k=math.ceil(Hc_2k*10**5)/10**5; #rounding off to 5 decimals
#Result
print("the critical feild at 2K in tesla is",Hc_2k);
#importing modules
import math
#Variable declaration
T=4.2; #in kelvin
Tc=7.18; #in kelvin
Hc_0=6.5*10**4; #in amp per meter
D=10**-3
#Calculation
R=D/2; #radius is equal to half of diameter
Hc_T=Hc_0*(1-((T/Tc)**2));
Hc_T=math.ceil(Hc_T*10)/10; #rounding off to 1 decimals
Ic=2*math.pi*R*Hc_T #critical current is calculated by 2*pi*r*Hc(T)
Ic=math.ceil(Ic*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the critical feild in Tesla is",round(Hc_T));
print("the critical current in Amp is",Ic);
#importing modules
import math
#Variable declaration
lamda_T=75 #in nm
T=3.5
HgTc=4.12 #in K
#Calculation
lamda_o=lamda_T*math.sqrt(1-((T/HgTc)**4));
lamda_o=math.ceil(lamda_o*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the pentration depth at 0k is",lamda_o);
#importing modules
import math
#Variable declaration
lamda_T1=396 #pentration depth in armstrong
lamda_T2=1730 #pentration depth in armstrong
T1=3 #temperature in K
T2=7.1 #temperature in K
#Calculation
#lamda_T2**2=lamda_0**2*(((Tc**4-T2**4)/Tc**4)**-1)
#lamda_T1**2=lamda_0**2*(((Tc**4-T1**4)/Tc**4)**-1)
#dividing lamda_T2**2 by lamda_T1**2 = (Tc**4-T1**4)/(Tc**4-T2**4)
#let A=lamda_T2**2 and B=lamda_T1**2
A=lamda_T2**2
B=lamda_T1**2
C=A/B
C=math.ceil(C*10**4)/10**4; #rounding off to 4 decimals
X=T1**4
Y=T2**4
Y=math.ceil(Y*10**2)/10**2; #rounding off to 2 decimals
#C*((TC**4)-Y)=(Tc**4)-X
#C*(Tc**4)-(Tc**4)=C*Y-X
#(Tc**4)*(C-1)=(C*Y)-X
#let Tc**4 be D
#D*(C-1)=(C*Y)-X
D=((C*Y)-X)/(C-1)
D=math.ceil(D*10)/10; #rounding off to 1 decimals
Tc=D**(1/4)
Tc=math.ceil(Tc*10**4)/10**4; #rounding off to 4 decimals
#Result
print("the pentration depth at 0k is",Tc);
#importing modules
import math
#Variable declaration
Tc=7.2 #in K
Ho=6.5*10**3 #in amp per m
T=5 #in K
#Calculation
Hc=Ho*(1-((T/Tc)**2))
Hc=math.ceil(Hc*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the critical magnetic feild at 5K in amp per m is",Hc)
# answer given in the book is wrong
#importing modules
import math
#Variable declaration
Tc=3.5 #in K
Ho=3.2*10**3 #in amp per m
T=2.5 #in K
#Calculation
Hc=Ho*(1-((T/Tc)**2))
Hc=math.ceil(Hc*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the critical magnetic feild at 5K in amp per m is",Hc)
#answer in the book is wrong
#importing modules
import math
#Variable declaration
Hc=5*10**3 #in amp per m
Ho=2*10**4 #in amp per m
T=6 #in K
#Calculation
Tc=T/math.sqrt(1-(Hc/Ho))
Tc=math.ceil(Tc*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the critical magnetic feild at 5K in amp per m is",Tc)
#answer in the book is wrong
#importing modules
import math
#Variable declaration
Hc=2*10**3 #in amp per m
R=0.02 #in m
#Calculation
Ic=2*math.pi*R*Hc
Ic=math.ceil(Ic*10**2)/10**2; #rounding off to 2 decimals
#Result
print("the critical current is",Ic)
#answer in the book is wrong
#importing modules
import math
#Variable declaration
M1=199.5 #in a.m.u
T1=5 #in K
T2=5.1 #in K
#Calculation
M2=((T1/T2)**2)*M1
M2=math.ceil(M2*10**3)/10**3; #rounding off to 3 decimals
#Result
print("the isotopic mass of M2 is",M2)
import math
from __future__ import division
#Variable declaration
D=3*10**-3 #in meters
Tc=8 #in K
T=5 #in K
Ho=5*10**4
#Calculation
R=D/2
Hc=Ho*(1-((T/Tc)**2))
Ic=2*math.pi*R*Hc
Ic=math.ceil(Ic*10**3)/10**3; #rounding off to 3 decimals
#Result
print("critical magnetic feild in amp per m is",round(Hc));
print("critical current in amp is",Ic);
#answer in the book is wrong
#importing modules
import math
#Variable declaration
M1=199.5
M2=203.4
Tc1=4.185 #in K
#Calculation
Tc2=Tc1*math.sqrt(M1/M2)
Tc2=math.ceil(Tc2*10**3)/10**3; #rounding off to 3 decimals
#Result
print("the critical temperature is",Tc2)
#importing modules
import math
from __future__ import division
#Variable declaration
V=8.5*10**-6 #in volts
e=1.6*10**-19 #in C
h=6.626*10**-24
#Calculation
new=2*e*V/h
new=math.ceil(new*10**5)/10**5; #rounding off to 5 decimals
#Result
print("EM wave generated frequency in Hz is",new)
#Variable declaration
p1=1 #in mm
p2=6 #in mm
Tc1=5 #in K
#Calculation
Tc2=Tc1*(p2/p1);
#Result
print("the critical temperature in K is",round(Tc2))
#Variable declaration
Tc=8.7 #in K
Hc=6*10**5 #in A per m
Ho=3*10**6 #in A per m
#Calculation
T=Tc*(math.sqrt(1-(Hc/Ho)))
#Result
print(" maximum critical temperature in K is",T)
#answer given in the book is wrong