Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
double E,area,Iy,Iz,J,G,k[12][12];
int i,j;
/*
*/
k[ 1][ 1] = E*area/L;
k[ 1][ 7] = -k[1][1];
k[ 2][ 2] = 12.0*E*Iz/(L*L*L);
k[ 2][ 6] = 6.0*E*Iz/(L*L);
k[ 2][ 8] = -k[2][2];
k[ 2][12] = k[2][6];
k[ 3][ 3] = 12.0*E*Iy/(L*L*L);
k[ 3][ 5] = -6.0*E*Iy/(L*L);
k[ 3][ 9] = -k[3][3];
k[ 3][11] = k[3][5];
k[ 4][ 4] = G*J/L;
k[ 4][10] = -k[4][4];
k[ 5][ 5] = 4.0*E*Iy/L;
k[ 5][ 9] = 6.0*E*Iy/(L*L);
k[ 5][11] = 2.0*E*Iy/L;
k[ 6][ 6] = 4.0*E*Iz/L;
k[ 6][ 8] = -6.0*E*Iz/(L*L);
k[ 6][12] = 2.0*E*Iz/L;
k[ 7][ 7] = k[1][1];
k[ 8][ 8] = k[2][2];
k[ 8][12] = -k[2][6];
k[ 9][ 9] = k[3][3];
k[ 9][11] = k[5][9];
k[10][10] = k[4][4];
k[11][11] = k[5][5];
k[12][12] = k[6][6];
/*
*/
for(i=2;i<=12;i++)
for(j=1;j<ii;j++)
k[i][j] = k[j][i];