#importing modules
import math
from __future__ import division
#Variable declaration
t=1*10**-3; #thickness of crystal(m)
rho=2650; #density of quartz(kg/m**3)
Y=7.9*10**10; #young's modulus(N/m**2)
p=1;
#Calculation
f=(p/(2*t))*math.sqrt(Y/rho); #fundamental frequency(Hz)
#Result
print "fundamental frequency is",round(f/10**6,5),"*10**6 Hz"
#importing modules
import math
from __future__ import division
#Variable declaration
t=5*10**-3; #length of crystal(m)
Y=7.9*10**10; #young's modulus(N/m**2)
p1=1;
p2=2;
rho=2650; #density of quartz(kg/m**3)
#Calculation
f1=(p1/(2*t))*math.sqrt(Y/rho); #fundamental frequency(Hz)
f2=(p2/(2*t))*math.sqrt(Y/rho); #frequency of 1st overtone(Hz)
#Result
print "fundamental frequency is",round(f1/10**5,2),"*10**5 Hz"
print "frequency of 1st overtone is",round(f2/10**6,3),"*10**6 Hz"
#importing modules
import math
from __future__ import division
#Variable declaration
u=5000; #velocity of sound in steel(m/s)
f=50*10**3; #difference between frequencies(Hz)
#Calculation
d=u/(2*f); #thickness of steel plate(m)
#Result
print "thickness of steel plate is",d,"m"
#importing modules
import math
from __future__ import division
#Variable declaration
t=1; #assume
f1=(2.87*10**3)/t; #fundamental frequency(Hz)
f=1200*10**3; #frequency(Hz)
rho=2660; #density of quartz(kg/m**3)
#Calculation
Y=rho*(f1*2*t)**2; #young's modulus(N/m**2)
t1=(1/(2*f))*math.sqrt(Y/rho); #thickness of crystal(m)
#Result
print "young's modulus is",round(Y/10**10,3),"*10**10 N/m**2"
print "thickness of crystal is",round(t1*10**3,2),"*10**-3 m"
#importing modules
import math
from __future__ import division
#Variable declaration
f=7*10**6; #ultrasonic frequency(Hz)
theta=45; #transducer angle(degrees)
v=1.5; #blood velocity(m/s)
U=1500; #ultrasonic velocity(m/s)
#Calculation
theta=theta*(math.pi/180); #transducer angle(radian)
deltaf=2*f*v*math.cos(theta)/U; #audio frequency(Hz)
#Result
print "audio frequency is",round(deltaf/10**3),"kHz"