function S1=sig1(Sxx,Syy,Sxy) % function S1=sig1(SIGxx,SIGyy,SIGxy) % Calculates the most tensile 2-D principal stress magnitude % Input parameters % Sxx = sigma xx % Syy = sigma yy % Sxy = sigma xy % Output parameter % S1 = most tensile principal stress % Example % S1=sig1(4,-4,3) S1 = (Sxx+Syy)/2 + sqrt( ((Sxx-Syy)/2).^2 + Sxy.^2);