#example 2.1,chapter 2, page 63
# Given that
#True stress=100000*(True strain)**0.5
# Sample Problem on page no. 63
import math
print("\n # Calculation of Ultimate Tensile Strength # \n")
#from the data given
n=0.5
E=0.5
K=100000.
Truestress=K*((E)**n)
#let An(area of neck)/Ao=t
#from math.log(Ao/An)=n
print'%s %.3f %s' %("true Ultimate Tensile Strength =",Truestress,"psi \n")
t=math.exp(-n)
print'%s %.7f %s' %("t =",t,"\n")
UTS=Truestress*t#from the math.expression UTS= P/Ao where P(Maximum Load)=Truestress*An
print'%s %.3f %s' %("Ultimate Tensile Strength =",UTS,"psi")
#answer in the book is approximated to 42850 psi