#example 15.1
#page no. 372
# Given that
import math
di=5.#in inch Diameter of the round billet
df=2.#in inch Diameter of the round billet after extrusion
# Sample Problem on page no. 372
print("\n # Calculation of force in Hot Extrusion# \n")
#As 70-30 Brass is given, so the value of the extrusion constant is 35000psi from the diagram given in the book
k=35000.#in psi
F=3.14*(di/2.)**2.*k*math.log((3.14*(di**2.))/(3.14*(df**2.)))
F1=F*4.448/(10**6)
print'%s %.6f %s' %("\n\n Extrusion force=",F1,"MN")