calcular los esfuerzos y el error relativo. 1 syms Lx Ly Txy i 2 lmax=(Lx+Ly ) /2 +((Lx−Ly ) ˆ2/2 + Txy ˆ 2 ) ˆ 0 . 5 3 tmax =((( Lx−Ly ) ˆ 1 / 2 ) ˆ2 + Txy ˆ 2 ) ˆ 0 . 5 4 tmin =((( Lx−Ly ) / 2 ) ˆ2 + Txy ˆ 2 ) ˆ 0 . 5 ; 5 lmin =(Lx+Ly ) /2 −((Lx−Ly ) ˆ2/2 + Txy ˆ 2 ) ˆ 0 . 5 ; 6 Lx=i n p u t ( ’ i n g r e s e lamda x = ’ ) 7 Ly=i n p u t ( ’ i n g r e s e lamda y = ’ ) 8 Txy=i n p u t ( ’ i n g r e s e txy = ’ ) 9 i=i n p u t ( ’ i n g r e s e e l a n g u l o = ’ ) 10 elmax=i n p u t ( ’ i n g r e s e Lmax e x p e r i m e n t a l ’ ) ; 11 e l m i n=i n p u t ( ’ i n g r e s e Lmin e x p e r i m e n t a l ’ ) ; 12 etmax=i n p u t ( ’ i n g r e s e Tmax e x p e r i m e n t a l ’ ) ; 13 etmin=i n p u t ( ’ i n g r e s e Tmax e x p e r i m e n t a l ’ ) ; 14 e l x p=i n p u t ( ’ i n g r e s e Lxp e x p e r i m e n t a l ’ ) ; 15 etxyp=i n p u t ( ’ i n g r e s e Txyp e x p e r i m e n t a l ’ ) ; 16 17 Lmax=(Lx+Ly ) /2 +((Lx−Ly ) ˆ2/2 + Txy ˆ 2 ) ˆ 0 . 5 ; 18 Lmin=(Lx+Ly ) /2 −((Lx−Ly ) ˆ2/2 + Txy ˆ 2 ) ˆ 0 . 5 ; 19 Tmax=((( Lx−Ly ) / 2 ) ˆ2 + Txy ˆ 2 ) ˆ 0 . 5 ; 20 Tmin=−(((Lx−Ly ) / 2 ) ˆ2 + Txy ˆ 2 ) ˆ 0 . 5 ; 21 Lxp=(Lx+Ly ) /2 + ( ( Lx−Ly ) ∗ c o s d ( 2 ∗ i ) ) /2 +Txy∗ sind (2∗ i ) ; 22 Txyp=((−Lx+Ly ) ∗ s i n d ( 2 ∗ i ) ) /2 + Txy∗ c o s d (2∗ i ) ; 23 erlamx =( abs (Lmax−elmax ) ∗ 1 0 0 ) / abs (Lmax) ; 24 e r l m i n =( abs ( Lmin−e l m i n ) ∗ 1 0 0 ) / abs ( Lmin ) ; 25 ertmax=( abs (Tmax−etmax ) ∗ 1 0 0 ) / abs (Tmax) ; 26 e r t m i n =( abs ( Tmin−etmin ) ∗ 1 0 0 ) / abs ( Tmin ) ; 27 e r l x p =( abs ( Lxp−e l x p ) ∗ 1 0 0 ) / abs ( Lxp ) ; 28 e r t x y p =( abs ( Txyp−etxyp ) ∗ 1 0 0 ) / abs ( Txyp ) ; 29 30 r=f p r i n t f ( ’ l o s r e s u l t a d o s son l o s s i g u i e n t e s \n Lmax = %f mPa Elmax %f mPa E r e l a t i v o = %f \n Lmin = %f mPa Elmin = %f mPa E r e l a t i v o = %f \n Tmax = %f mPa Etmax = %f mPa E r e l a t i v o = %f \n Tmin = %f mPa Etmin = %f mPa E r e l a t i v o = %f \n Lxp = %f mPa Elxp = %f mPa E r e l a t i v o = %f \n Txyp = %f mPa Etxp = %f mPa E r e l a t i v o = %f \n ’ ,Lmax , elmax , erlamx , Lmin , elmin , e r l m i n , Tmax , etmax ,