Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function B= central_difference_10q(q)
%uses input q to solve for the system of equations using central difference
%method in 10 segments
delta=1/10; %segments of beam
E=70E9;
b=0.1;
h=0.01;
I=(b*(h^3))/12;
z=((delta.^4)*q)/(E*I);
A=[5,-4,1,0,0,0,0,0,0;
-4,6,-4,1,0,0,0,0,0;
1,-4,6,-4,1,0,0,0,0;
0,1,-4,6,-4,1,0,0,0;
0,0,1,-4,6,-4,1,0,0;
0,0,0,1,-4,6,-4,1,0;
0,0,0,0,1,-4,6,-4,1;
0,0,0,0,0,1,-4,6,-4;
0,0,0,0,0,0,1,-4,5];
Y=[z;z;z;z;z;z;z;z;z];
B=A\Y;